Function report |
Source Code:kernel\trace\trace_irqsoff.c |
Create Date:2022-07-28 12:09:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:check_critical_timing
Proto:static void check_critical_timing(struct trace_array *tr, struct trace_array_cpu *data, unsigned long parent_ip, int cpu)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct trace_array * | tr | |
struct trace_array_cpu * | data | |
unsigned long | parent_ip | |
int | cpu |
327 | T0 = preempt_timestamp |
328 | T1 = ftrace_now(cpu) |
331 | local_save_flags(flags) |
333 | pc = We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users* that think a non-zero value indicates we cannot preempt. |
335 | If Not Should this new latency be reported/recorded? Then Go to out |
338 | raw_spin_lock_irqsave( & max_trace_lock, flags) |
341 | If Not Should this new latency be reported/recorded? Then Go to out_unlock |
344 | __trace_function(tr, CALLER_ADDR0, parent_ip, flags, pc) |
346 | __trace_stack(tr, flags, 5, pc) |
351 | critical_end = parent_ip |
353 | If Value is more likely to compile time(!is_tracing_stopped()) Then |
354 | max_latency = delta |
355 | update_max_tr_single(tr, current process, cpu) |
360 | out_unlock : |
363 | out : |
365 | preempt_timestamp = ftrace_now(cpu) |
366 | __trace_function(tr, CALLER_ADDR0, parent_ip, flags, pc) |
Name | Describe |
---|---|
stop_critical_timing |
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 |