RFC Perf persistent events
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 13 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | perf: Add persistent eventsinclude/ kernel/ | +9 | 2 replies | |
| 2/3 | perf: Add persistent event facilitiesinclude/ kernel/ kernel/ +2 more | +175 | 5 replies | |
| 3/3 | MCE: Enable persistent eventarch/ | +25 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/3] Perf persistent events
From: Borislav Petkov <[email protected]>
Yeah,
here's a refresh of the persistent events deal, accessing those is much cleaner now. Here's how:
So kernel code initializes and enables the event at its convenience (during boot, whenever) and userspace goes and says:
sys_perf_event_open(pattr,...)
with pattr.persistent = 1. Userspace gets the persistent buffer file descriptor to read from. Without that, we get a normal perf file descriptor for the duration of the tracing.
This saves all the diddling of trying to hand down file descriptors through debugfs or whatever. Instead, current perf code simply can use it.
This is still RFC but things are starting to fall into place slowly. As always, any and all comments/suggestions are welcome.
Borislav Petkov (3):
perf: Add persistent events
perf: Add persistent event facilities
MCE: Enable persistent event
arch/x86/kernel/cpu/mcheck/mce.c | 25 +++++++ include/linux/perf_event.h | 14 +++- include/uapi/linux/perf_event.h | 3 +- kernel/events/Makefile | 2 +- kernel/events/core.c | 27 +++++--- kernel/events/internal.h | 4 ++ kernel/events/persistent.c | 141 +++++++++++++++++++++++++++++++++++++++ 7 files changed, 202 insertions(+), 14 deletions(-) create mode 100644 kernel/events/persistent.c
Signature · 1 line
1.8.1.3.535.ga923c31