Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_event_perf.c Create Date:2022-07-28 12:23:25
Last Modify:2020-03-17 20:20:33 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:perf_trace_add

Proto:int perf_trace_add(struct perf_event *p_event, int flags)

Type:int

Parameter:

TypeParameterName
struct perf_event *p_event
intflags
357  tp_event = tp_event
359  If Not (flags & start the counter when adding ) Then state = PERF_HES_STOPPED
367  If Not reg(tp_event, TRACE_REG_PERF_ADD, p_event) Then
368  __percpu * pcpu_list
371  pcpu_list = perf_events
372  If WARN_ON_ONCE(!pcpu_list) Then Return -EINVAL
375  list = this_cpu_ptr(pcpu_list)
376  adds the specified element to the specified hlist
379  Return 0