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
+1
View File
@@ -407,6 +407,7 @@ typedef struct {
bool variable_stack_depth;
// variable number of samples per hit;
// cf. debug_profiler_update
bool profile_kernel; // sample kernel stack frames
} debug_nub_start_profiler;
typedef struct {