Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:34:37 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:The following implement mutual exclusion of events on "exclusive" pmus* (PERF_PMU_CAP_EXCLUSIVE)
Proto:static int exclusive_event_init(struct perf_event *event)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_event * | event |
4510 | If Not is_exclusive_pmu(pmu) Then Return 0 |
4526 | If attach_state & PERF_ATTACH_TASK Then |
4527 | If Not atomic_inc_unless_negative( & < 0: cpu; > 0: tsk ) Then Return -EBUSY |
4529 | Else |
4530 | If Not atomic_dec_unless_positive( & < 0: cpu; > 0: tsk ) Then Return -EBUSY |
4534 | Return 0 |
Name | Describe |
---|---|
perf_event_alloc | Allocate and initialize an event structure |
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 |