函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace.c Create Date:2022-07-27 13:04:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:tracing_generic_entry_update

函数原型:void tracing_generic_entry_update(struct trace_entry *entry, unsigned short type, unsigned long flags, int pc)

返回类型:void

参数:

类型参数名称
struct trace_entry *entry
unsigned shorttype
unsigned longflags
intpc
2427  tsk等于当前进程
2429  preempt_count等于pc按位与0xff
2430  pid等于如果tsk进程ID否则0
2431  type等于type
2432  flags等于TRACE_FLAG_IRQS_NOSUPPORT按位或如果pc按位与NMI_MASKTRACE_FLAG_NMI否则0按位或如果pc按位与HARDIRQ_MASKTRACE_FLAG_HARDIRQ否则0按位或如果pc按位与SOFTIRQ_OFFSETTRACE_FLAG_SOFTIRQ否则0按位或如果tif_need_resched()则TRACE_FLAG_NEED_RESCHED否则0按位或如果test_preempt_need_resched()则TRACE_FLAG_PREEMPT_RESCHED否则0
调用者
名称描述
trace_event_setup
perf_trace_buf_update
parse_entryCaller is responsible to free the *pentry.