函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_event_mux_interval_ms_store

函数原型:static ssize_t perf_event_mux_interval_ms_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)

返回类型:ssize_t

参数:

类型参数名称
struct device *dev
struct device_attribute *attr
const char *buf
size_tcount
10181  pmu等于dev_get_drvdata(dev)
10184  ret等于kstrtoint - convert a string to an int*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign or a minus sign.
10185  如果ret则返回:ret
10188  如果timer小于1则返回:负EINVAL
10192  如果timer恒等于hrtimer_interval_ms则返回:count
10195  mutex_lock( & mux_interval_mutex)
10196  hrtimer_interval_ms等于timer
10199  cpus_read_lock()
10200  遍历在线CPU(cpu)
10202  cpuctx等于per_cpu_ptr(pmu_cpu_context, cpu)
10203  hrtimer_interval等于ns_to_ktime(NSEC_PER_MSEC * timer)
10205  pu_function_call - call a function on the cpu*@func: the function to be called*@info: the function call argument* Calls the function @func on the remote cpu.* returns: @func return value or -ENXIO when the cpu is offline
10208  cpus_read_unlock()
10209  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.
10211  返回:count