Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:38:47 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:We directly increment event->count and keep a second value in* is kept in the range [-sample_period, 0] so that we can use the* sign as trigger.
Proto:u64 perf_swevent_set_period(struct perf_event *event)
Type:u64
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_event * | event | >hw.period_left to count intervals. This period event |
8478 | period = last_period |
8482 | last_period = sample_period |
8484 | again : |
8485 | old = val = local64_read( & period_left) |
8486 | If val < 0 Then Return 0 |
8492 | If local64_cmpxchg( & period_left, old, val) != old Then Go to again |
8495 | Return nr |
Name | Describe |
---|---|
perf_swevent_overflow | |
perf_swevent_add | |
hw_breakpoint_add |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |