]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kperf/task_samplers.h
xnu-4903.241.1.tar.gz
[apple/xnu.git] / osfmk / kperf / task_samplers.h
index ebebeb5522949af22136fcc6742679492cf30470..d47b15bca2390649b6f05fa43a243bc5a373fdc5 100644 (file)
@@ -30,6 +30,7 @@
 #define KPERF_TASK_SAMPLERS_H
 
 #include <kperf/context.h>
+#include <kern/task.h>
 
 struct kperf_task_snapshot {
        uint64_t kptksn_flags;
@@ -46,9 +47,11 @@ struct kperf_task_snapshot {
 #define KPERF_TASK_FLAG_WQ_FLAGS_VALID          (1U << 4)
 #define KPERF_TASK_FLAG_WQ_EXCEEDED_TOTAL       (1U << 5)
 #define KPERF_TASK_FLAG_WQ_EXCEEDED_CONSTRAINED (1U << 6)
+#define KPERF_TASK_FLAG_DIRTY_TRACKED           (1U << 7)
+#define KPERF_TASK_ALLOW_IDLE_EXIT              (1U << 8)
 
-void kperf_task_snapshot_sample(struct kperf_task_snapshot *tksn,
-                                struct kperf_context *ctx);
+void kperf_task_snapshot_sample(task_t task, struct kperf_task_snapshot *tksn);
 void kperf_task_snapshot_log(struct kperf_task_snapshot *tksn);
+void kperf_task_info_log(struct kperf_context *ctx);
 
 #endif /* !defined(KPERF_TASK_SAMPLERS_H) */