profiler: Actually support profiling user stack frames only.

The "-k" argument (which never did anything before) is now inverted
compared to what it used to be, i.e. now specifying it will profile
kernel frames, too, whereas by default only user frames will be
sampled.
This commit is contained in:
Augustin Cavalier
2024-07-16 20:37:40 -04:00
parent 6d5c99effe
commit 7eb6aafc30
8 changed files with 31 additions and 8 deletions
@@ -21,6 +21,7 @@ struct system_profiler_parameters {
// sampling
bigtime_t interval; // interval at which to take samples
uint32 stack_depth; // maximum stack depth to sample
bool profile_kernel; // sample kernel stack frames
};