-
Notifications
You must be signed in to change notification settings - Fork 2
Show multiple user PF's in the output #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,15 @@ | ||
| #pragma once | ||
|
|
||
|
|
||
| #define MAX_LBR_ENTRIES 32 | ||
| #define MAX_USER_PF_ENTRIES 16 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 16 is fine if the ring buffer is for a single thread, but I fear that with dozens of threads, there might be too many PF, so any interesting one might be rotated out by the time we land in |
||
|
|
||
| #define TRACE_PF_CR2 | ||
|
|
||
| struct page_fault_info_t { | ||
| u64 cr2; | ||
| u64 err; | ||
| u64 tai; | ||
| }; | ||
|
|
||
| struct user_regs_t { | ||
| u64 rip; | ||
|
|
@@ -25,7 +33,6 @@ struct user_regs_t { | |
| u64 trapno; | ||
| u64 err; | ||
| u64 cr2; | ||
| u64 cr2_fault; | ||
| }; | ||
|
|
||
| // WARNING: this is for the SENDING process (e.g. pid) of the signal! | ||
|
|
@@ -45,4 +52,7 @@ struct event_t { | |
| struct perf_branch_entry lbr[MAX_LBR_ENTRIES]; | ||
|
|
||
| u64 tai; // time atomic international | ||
|
|
||
| u32 pf_count; | ||
| struct page_fault_info_t pf[MAX_USER_PF_ENTRIES]; | ||
| }; | ||
Uh oh!
There was an error while loading. Please reload this page.