]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kperf/sample.h
xnu-6153.41.3.tar.gz
[apple/xnu.git] / osfmk / kperf / sample.h
index 9af5ba5b55d67255e0d8d365a680a7b3bab64b10..941ae53e8746f1e87d34e3deaa521dcd46947d9b 100644 (file)
 #include "kperf_kpc.h"
 #include "meminfo.h"
 
+/*
+ * For data that must be sampled in a fault-able context.
+ */
+struct kperf_usample {
+       struct kperf_thread_dispatch th_dispatch;
+       struct kp_ucallstack ucallstack;
+       struct kperf_thread_info th_info;
+};
+
 struct kperf_sample {
        struct kperf_thread_info       th_info;
        struct kperf_thread_scheduling th_scheduling;
        struct kperf_thread_snapshot   th_snapshot;
-       struct kperf_thread_dispatch   th_dispatch;
 
        struct kperf_task_snapshot tk_snapshot;
 
        struct kp_kcallstack kcallstack;
-       struct kp_ucallstack ucallstack;
        struct meminfo     meminfo;
 
+       struct kperf_usample usample;
+
 #if KPC
        struct kpcdata    kpcdata;
 #endif /* KPC */