Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_output.c Create Date:2022-07-28 12:04:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:race_print_lat_fmt - print the irq, preempt and lockdep fields*@s: trace seq struct to write to*@entry: The trace entry field from the ring buffer* Prints the generic fields of irqs off, in hard or softirq, preempt* count.

Proto:int trace_print_lat_fmt(struct trace_seq *s, struct trace_entry *entry)

Type:int

Parameter:

TypeParameterName
struct trace_seq *s
struct trace_entry *entry
449  nmi = flags & TRACE_FLAG_NMI
450  hardirq = flags & TRACE_FLAG_HARDIRQ
451  softirq = flags & TRACE_FLAG_SOFTIRQ
453  irqs_off = If If flags & TRACE_FLAG_IRQS_OFF Then 'd' Else flags & TRACE_FLAG_IRQS_NOSUPPORT Then 'X' Else '.'
460  Case & == TRACE_FLAG_NEED_RESCHED | TRACE_FLAG_PREEMPT_RESCHED
461  need_resched = 'N'
462  Break
463  Case & == TRACE_FLAG_NEED_RESCHED
464  need_resched = 'n'
465  Break
466  Case & == TRACE_FLAG_PREEMPT_RESCHED
467  need_resched = 'p'
468  Break
469  Default
470  need_resched = '.'
471  Break
474  hardsoft_irq = If If If If If nmi && hardirq Then 'Z' Else nmi Then 'z' Else hardirq && softirq Then 'H' Else hardirq Then 'h' Else softirq Then 's' Else '.'
482  Currently only defined when tracing is enabled.
485  If preempt_count Then Currently only defined when tracing is enabled.
487  Else trace_seq_putc(s, '.')
490  Return Not race_seq_has_overflowed - return true if the trace_seq took too much*@s: trace sequence descriptor* Returns true if too much data was added to the trace_seq and it is* now full and will not take anymore.
Caller
NameDescribe
lat_print_generic
trace_print_context
print_graph_lat_fmt