Lines Matching +defs:func +defs:write
71 remote_function_f func;
96 tfc->ret = tfc->func(tfc->info);
102 * @func: the function to be called
105 * Calls the function @func when the task is currently running. This might
110 * returns @func return value or -ESRCH or -ENXIO when the process isn't running
113 task_function_call(struct task_struct *p, remote_function_f func, void *info)
117 .func = func,
141 * @func: the function to be called
144 * Calls the function @func on the remote cpu.
146 * returns: @func return value or -ENXIO when the cpu is offline
148 static int cpu_function_call(int cpu, remote_function_f func, void *info)
152 .func = func,
277 event_f func;
320 efs->func(event, cpuctx, ctx, efs->data);
327 static void event_function_call(struct perf_event *event, event_f func, void *data)
334 .func = func,
374 func(event, NULL, ctx, data);
384 static void event_function_local(struct perf_event *event, event_f func, void *data)
423 func(event, cpuctx, ctx, data);
531 static int perf_event_max_sample_rate_handler(const struct ctl_table *table, int write,
537 * If throttling is disabled don't allow the write:
539 if (write && (perf_cpu == 100 || perf_cpu == 0))
542 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos);
543 if (ret || !write)
553 static int perf_cpu_time_max_percent_handler(const struct ctl_table *table, int write,
556 int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos);
558 if (ret || !write)
2825 * Order event::oncpu write to happen before the ACTIVE state is
3495 int (*func)(struct perf_event *, struct perf_event_attr *);
3504 func = perf_event_modify_breakpoint;
3520 err = func(event, attr);
3525 err = func(child, attr);
4016 int (*func)(struct perf_event *, void *),
4072 ret = func(*evt, data);
6493 void (*func)(struct perf_event *))
6500 func(event);
6502 func(child);
6507 void (*func)(struct perf_event *))
6516 perf_event_for_each_child(event, func);
6518 perf_event_for_each_child(sibling, func);
6617 void (*func)(struct perf_event *);
6625 func = _perf_event_enable;
6628 func = _perf_event_disable;
6631 func = _perf_event_reset;
6720 perf_event_for_each(event, func);
6722 perf_event_for_each_child(event, func);
7000 #define get_mapped(event, func) \
7006 f = pmu->func; \
7220 /* Map readonly, perf_mmap_pfn_mkwrite() called on write fault. */
10338 struct bpf_prog *subprog = prog->aux->func[i];