Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tracing_generic_entry_update

Proto:void tracing_generic_entry_update(struct trace_entry *entry, unsigned short type, unsigned long flags, int pc)

Type:void

Parameter:

TypeParameterName
struct trace_entry *entry
unsigned shorttype
unsigned longflags
intpc
2427  tsk = current process
2429  preempt_count = pc & 0xff
2430  pid = If tsk Then process id Else 0
2431  type = type
2432  flags = TRACE_FLAG_IRQS_NOSUPPORT | If pc & NMI_MASK Then TRACE_FLAG_NMI Else 0 | If pc & HARDIRQ_MASK Then TRACE_FLAG_HARDIRQ Else 0 | If pc & SOFTIRQ_OFFSET Then TRACE_FLAG_SOFTIRQ Else 0 | If tif_need_resched() Then TRACE_FLAG_NEED_RESCHED Else 0 | If test_preempt_need_resched() Then TRACE_FLAG_PREEMPT_RESCHED Else 0
Caller
NameDescribe
trace_event_setup
perf_trace_buf_update
parse_entryCaller is responsible to free the *pentry.