Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_proc_update_handler

Proto:int perf_proc_update_handler(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos)

Type:int

Parameter:

TypeParameterName
struct ctl_table *table
intwrite
void __user *buffer
size_t *lenp
loff_t *ppos
441  perf_cpu = sysctl_perf_cpu_time_max_percent
445  If write && ( perf_cpu == 100 || perf_cpu == 0 ) Then Return -EINVAL
448  ret = read a vector of integers with min/max values
449  If ret || Not write Then Return ret
452  max_samples_per_tick = DIV_ROUND_UP(sysctl_perf_event_sample_rate, HZ)
453  perf_sample_period_ns = NSEC_PER_SEC / sysctl_perf_event_sample_rate
454  update_perf_cpu_limits()
456  Return 0