Function report | 
Source Code:kernel\trace\trace_events.c | 
Create Date:2022-07-28 12:18:51 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__ftrace_event_enable_disable
Proto:static int __ftrace_event_enable_disable(struct trace_event_file *file, int enable, int soft_disable)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct trace_event_file * | file | |
| int | enable | |
| int | soft_disable | 
| 365 | call = event_call | 
| 368 | ret = 0 | 
| 372 | Case enable == 0 | 
| 386 | If soft_disable Then | 
| 387 | If atomic_dec_return( & soft-mode reference counter ) > 0 Then Break | 
| 413 | Break | 
| 414 | Case enable == 1 | 
| 423 | If Not soft_disable Then lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers). | 
| 425 | Else | 
| 426 | If atomic_inc_return( & soft-mode reference counter ) > 1 Then Break | 
| 432 | bool cmd = TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., tgid = false | 
| 435 | If soft_disable Then Atomically set a bit in memory | 
| 438 | If trace_flags & TRACE_ITER_RECORD_CMD Then | 
| 444 | If trace_flags & TRACE_ITER_RECORD_TGID Then | 
| 450 | ret = reg(call, TRACE_REG_REGISTER, file) | 
| 451 | If ret Then | 
| 452 | If cmd Then tracing_stop_cmdline_record() | 
| 454 | If tgid Then tracing_stop_tgid_record() | 
| 456 | pr_info("event trace: Could not enable event %s\n", trace_event_name(call)) | 
| 458 | Break | 
| 465 | Break | 
| 477 | Return ret | 
| Name | Describe | 
|---|---|
| trace_event_enable_disable | |
| ftrace_event_enable_disable | 
| 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  |