函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 15:01:07
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:perf_event_set_output

函数原型:static int perf_event_set_output(struct perf_event *event, struct perf_event *output_event)

返回类型:int

参数:

类型参数名称
struct perf_event *event
struct perf_event *output_event
11010  struct ring_buffer * rb = NULL
11011  ret等于负EINVAL
11013  如果非output_event则转到:set
11017  如果event恒等于output_event则转到:out
11023  如果cpu不等于cpu则转到:out
11029  如果cpu恒等于负1且ctx不等于ctx则转到:out
11035  如果clock不等于clock则转到:out
11042  如果is_write_backward(output_event)不等于is_write_backward(event)则转到:out
11048  如果has_aux(event)且has_aux(output_event)且pmu不等于pmu则转到:out
11052  set :
11053  mutex_lock( & mmap_mutex)
11055  如果atomic_read( & mmap_count)则转到:unlock
11058  如果output_event
11060  rb等于ring_buffer_get(output_event)
11061  如果非rb则转到:unlock
11065  ring_buffer_attach(event, rb)
11067  ret等于0
11068  unlock :
11069  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
11071  out :
11072  返回:ret
调用者
名称描述
_perf_ioctl