Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:40:02
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:perf_event_mux_interval_ms_store

Proto:static ssize_t perf_event_mux_interval_ms_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)

Type:ssize_t

Parameter:

TypeParameterName
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  If ret Then Return ret
10188  If timer < 1 Then Return -EINVAL
10192  If timer == hrtimer_interval_ms Then Return count
10195  mutex_lock( & mux_interval_mutex)
10196  hrtimer_interval_ms = timer
10199  cpus_read_lock()
10200  for_each_online_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  Return count