--- Gnu-Mach/kern/pc_sample.h 2020/09/02 04:36:57 1.1 +++ Gnu-Mach/kern/pc_sample.h 2020/09/02 04:52:04 1.1.1.4 @@ -25,10 +25,6 @@ */ /* * HISTORY - * $Log: pc_sample.h,v $ - * Revision 1.1 2020/09/02 04:36:57 root - * Initial revision - * * Revision 1.1.1.1 1997/02/25 21:28:25 thomas * Initial source * @@ -53,7 +49,7 @@ #include #include #include -#include +#include /* * Control structure for sampling, included in @@ -75,22 +71,24 @@ typedef struct sample_control sample_con extern void take_pc_sample( thread_t thread, sample_control_t *cp, - sampled_pc_flavor_t flavor); + sampled_pc_flavor_t flavor, + boolean_t usermode, + vm_offset_t pc); /* * Macro to do quick flavor check for sampling, * on both threads and tasks. */ -#define take_pc_sample_macro(thread, flavor) \ +#define take_pc_sample_macro(thread, flavor, usermode, pc) \ MACRO_BEGIN \ task_t task; \ \ if ((thread)->pc_sample.sampletypes & (flavor)) \ - take_pc_sample((thread), &(thread)->pc_sample, (flavor)); \ + take_pc_sample((thread), &(thread)->pc_sample, (flavor), usermode, pc); \ \ task = (thread)->task; \ if (task->pc_sample.sampletypes & (flavor)) \ - take_pc_sample((thread), &task->pc_sample, (flavor)); \ + take_pc_sample((thread), &task->pc_sample, (flavor), usermode, pc); \ MACRO_END #endif /* _KERN_PC_SAMPLE_H_ */