Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| struct device * | dev | |
| struct device_attribute * | attr | |
| const char * | buf | |
| size_t | count |
| 10181 | pmu = dev_get_drvdata(dev) |
| 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) |
| 10208 | cpus_read_unlock() |
| 10211 | Return count |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |