Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 25) sorted by relevance

/kernel/
Dstop_machine.c46 cpu_stop_fn_t fn; member
63 printk("%sStopper: %pS <- %pS\n", log_lvl, stopper->fn, (void *)stopper->caller); in print_stop_info()
139 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument
142 struct cpu_stop_work work = { .fn = fn, .arg = arg, .done = &done, .caller = _RET_IP_ }; in stop_one_cpu()
172 cpu_stop_fn_t fn; member
241 err = msdata->fn(msdata->data); in multi_cpu_stop()
335 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg) in stop_two_cpus() argument
342 .fn = fn, in stop_two_cpus()
349 .fn = multi_cpu_stop, in stop_two_cpus()
385 bool stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait() argument
[all …]
Dcfi.c198 update_shadow_fn fn) in update_shadow() argument
216 fn(next, mod, min_addr & PAGE_MASK, max_addr & PAGE_MASK); in update_shadow()
257 cfi_check_fn fn; in find_shadow_check_fn() local
260 fn = ptr_to_check_fn(rcu_dereference_sched(cfi_shadow), ptr); in find_shadow_check_fn()
263 return fn; in find_shadow_check_fn()
277 cfi_check_fn fn = NULL; in find_module_check_fn() local
283 fn = mod->cfi_check; in find_module_check_fn()
286 return fn; in find_module_check_fn()
291 cfi_check_fn fn = NULL; in find_check_fn() local
310 fn = find_shadow_check_fn(ptr); in find_check_fn()
[all …]
Dworkqueue.c3382 int execute_in_process_context(work_func_t fn, struct execute_work *ew) in execute_in_process_context() argument
3385 fn(&ew->work); in execute_in_process_context()
3389 INIT_WORK(&ew->work, fn); in execute_in_process_context()
4698 work_func_t *fn = NULL; in print_worker_info() local
4718 copy_from_kernel_nofault(&fn, &worker->current_func, sizeof(fn)); in print_worker_info()
4724 if (fn || name[0] || desc[0]) { in print_worker_info()
4725 printk("%sWorkqueue: %s %ps", log_lvl, name, fn); in print_worker_info()
5216 long (*fn)(void *); member
5225 wfc->ret = wfc->fn(wfc->arg); in work_for_cpu_fn()
5239 long work_on_cpu(int cpu, long (*fn)(void *), void *arg) in work_on_cpu()
[all …]
Dtorture.c928 int _torture_create_kthread(int (*fn)(void *arg), void *arg, char *s, char *m, in _torture_create_kthread()
934 *tp = kthread_run(fn, arg, "%s", s); in _torture_create_kthread()
Dkallsyms.c211 int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *, in kallsyms_on_each_symbol()
222 ret = fn(data, namebuf, NULL, kallsyms_sym_address(i)); in kallsyms_on_each_symbol()
Dkprobes.c1942 struct freelist_node *fn; in NOKPROBE_SYMBOL() local
1944 fn = freelist_try_get(&rp->freelist); in NOKPROBE_SYMBOL()
1945 if (!fn) { in NOKPROBE_SYMBOL()
1950 ri = container_of(fn, struct kretprobe_instance, freelist); in NOKPROBE_SYMBOL()
Dfork.c2595 struct task_struct *create_io_thread(int (*fn)(void *), void *arg, int node) in create_io_thread()
2603 .stack = (unsigned long)fn, in create_io_thread()
2711 pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags) in kernel_thread()
2717 .stack = (unsigned long)fn, in kernel_thread()
Dmodule.c4552 int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *, in module_kallsyms_on_each_symbol()
4573 ret = fn(data, kallsyms_symbol_name(kallsyms, i), in module_kallsyms_on_each_symbol()
4872 void android_debug_for_each_module(int (*fn)(const char *mod_name, void *mod_addr, void *data), in android_debug_for_each_module()
4878 if (fn(module->name, module->core_layout.base, data)) in android_debug_for_each_module()
Dsignal.c3034 return restart->fn(restart); in SYSCALL_DEFINE0()
/kernel/gcov/
Dclang.c227 struct gcov_fn_info *fn; in gcov_info_reset() local
229 list_for_each_entry(fn, &info->functions, head) in gcov_info_reset()
230 memset(fn->counters, 0, in gcov_info_reset()
231 sizeof(fn->counters[0]) * fn->num_counters); in gcov_info_reset()
288 static struct gcov_fn_info *gcov_fn_info_dup(struct gcov_fn_info *fn) in gcov_fn_info_dup() argument
291 struct gcov_fn_info *fn_dup = kmemdup(fn, sizeof(*fn), in gcov_fn_info_dup()
297 cv_size = fn->num_counters * sizeof(fn->counters[0]); in gcov_fn_info_dup()
304 memcpy(fn_dup->counters, fn->counters, cv_size); in gcov_fn_info_dup()
318 struct gcov_fn_info *fn; in gcov_info_dup() local
329 list_for_each_entry(fn, &info->functions, head) { in gcov_info_dup()
[all …]
/kernel/trace/
Dtrace_events_filter.c983 int match = pred->fn(pred, rec); in filter_match_preds()
1169 filter_pred_fn_t fn = NULL; in select_comparison_fn() local
1187 fn = filter_pred_64; in select_comparison_fn()
1189 fn = pred_funcs_s64[pred_func_index]; in select_comparison_fn()
1191 fn = pred_funcs_u64[pred_func_index]; in select_comparison_fn()
1195 fn = filter_pred_32; in select_comparison_fn()
1197 fn = pred_funcs_s32[pred_func_index]; in select_comparison_fn()
1199 fn = pred_funcs_u32[pred_func_index]; in select_comparison_fn()
1203 fn = filter_pred_16; in select_comparison_fn()
1205 fn = pred_funcs_s16[pred_func_index]; in select_comparison_fn()
[all …]
Dtracing_map.c170 tracing_map_cmp_fn_t fn = tracing_map_cmp_none; in tracing_map_cmp_num() local
175 fn = tracing_map_cmp_s64; in tracing_map_cmp_num()
177 fn = tracing_map_cmp_u64; in tracing_map_cmp_num()
181 fn = tracing_map_cmp_s32; in tracing_map_cmp_num()
183 fn = tracing_map_cmp_u32; in tracing_map_cmp_num()
187 fn = tracing_map_cmp_s16; in tracing_map_cmp_num()
189 fn = tracing_map_cmp_u16; in tracing_map_cmp_num()
193 fn = tracing_map_cmp_s8; in tracing_map_cmp_num()
195 fn = tracing_map_cmp_u8; in tracing_map_cmp_num()
199 return fn; in tracing_map_cmp_num()
Dtrace_events_hist.c126 hist_field_fn_t fn; member
239 u64 val = operand->fn(operand, elt, buffer, rbe, event); in hist_field_log2()
253 u64 val = operand->fn(operand, elt, buffer, rbe, event); in hist_field_bucket()
274 u64 val1 = operand1->fn(operand1, elt, buffer, rbe, event); in hist_field_plus()
275 u64 val2 = operand2->fn(operand2, elt, buffer, rbe, event); in hist_field_plus()
289 u64 val1 = operand1->fn(operand1, elt, buffer, rbe, event); in hist_field_minus()
290 u64 val2 = operand2->fn(operand2, elt, buffer, rbe, event); in hist_field_minus()
304 u64 val1 = operand1->fn(operand1, elt, buffer, rbe, event); in hist_field_div()
305 u64 val2 = operand2->fn(operand2, elt, buffer, rbe, event); in hist_field_div()
327 u64 val1 = operand1->fn(operand1, elt, buffer, rbe, event); in div_by_power_of_two()
[all …]
Dbpf_trace.c1524 const struct bpf_func_proto *fn; in tracing_prog_func_proto() local
1566 fn = raw_tp_prog_func_proto(func_id, prog); in tracing_prog_func_proto()
1567 if (!fn && prog->expected_attach_type == BPF_TRACE_ITER) in tracing_prog_func_proto()
1568 fn = bpf_iter_get_func_proto(func_id, prog); in tracing_prog_func_proto()
1569 return fn; in tracing_prog_func_proto()
Dtrace.h1466 filter_pred_fn_t fn; member
/kernel/kcsan/
Dkcsan_test.c140 void *fn; /* Function pointer to expected function of top frame. */ member
174 if (r->access[1].fn) { in report_matches()
179 scnprintf(tmp[0], sizeof(tmp[0]), "%pS", r->access[0].fn); in report_matches()
180 scnprintf(tmp[1], sizeof(tmp[1]), "%pS", r->access[1].fn); in report_matches()
183 cmp < 0 ? r->access[0].fn : r->access[1].fn, in report_matches()
184 cmp < 0 ? r->access[1].fn : r->access[0].fn); in report_matches()
186 scnprintf(cur, end - cur, "%pS", r->access[0].fn); in report_matches()
196 if (!r->access[1].fn) in report_matches()
222 if (!r->access[1].fn) { in report_matches()
/kernel/locking/
Dtest-ww_mutex.c543 void (*fn)(struct work_struct *work); in stress() local
545 fn = NULL; in stress()
549 fn = stress_inorder_work; in stress()
553 fn = stress_reorder_work; in stress()
557 fn = stress_one_work; in stress()
561 if (!fn) in stress()
566 INIT_WORK(&stress->work, fn); in stress()
/kernel/time/
Dposix-stubs.c149 current->restart_block.fn = do_no_restart_syscall; in SYSCALL_DEFINE4()
243 current->restart_block.fn = do_no_restart_syscall; in SYSCALL_DEFINE4()
Dtimer.c1402 void (*fn)(struct timer_list *), in call_timer_fn()
1427 fn(timer); in call_timer_fn()
1434 fn, count, preempt_count()); in call_timer_fn()
1456 void (*fn)(struct timer_list *); in expire_timers() local
1463 fn = timer->function; in expire_timers()
1467 call_timer_fn(timer, fn, baseclk); in expire_timers()
1472 call_timer_fn(timer, fn, baseclk); in expire_timers()
Dhrtimer.c1647 enum hrtimer_restart (*fn)(struct hrtimer *); in __run_hrtimer() local
1666 fn = timer->function; in __run_hrtimer()
1685 restart = fn(timer); in __run_hrtimer()
2129 current->restart_block.fn = do_no_restart_syscall; in SYSCALL_DEFINE2()
2151 current->restart_block.fn = do_no_restart_syscall; in SYSCALL_DEFINE2()
Dposix-timers.c1304 current->restart_block.fn = do_no_restart_syscall; in SYSCALL_DEFINE4()
1332 current->restart_block.fn = do_no_restart_syscall; in SYSCALL_DEFINE4()
/kernel/bpf/
Dverifier.c5277 const struct bpf_func_proto *fn) in check_func_arg() argument
5281 enum bpf_arg_type arg_type = fn->arg_type[arg]; in check_func_arg()
5320 err = check_reg_type(env, regno, arg_type, fn->arg_btf_id[arg]); in check_func_arg()
5779 static bool check_raw_mode_ok(const struct bpf_func_proto *fn) in check_raw_mode_ok() argument
5783 if (fn->arg1_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok()
5785 if (fn->arg2_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok()
5787 if (fn->arg3_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok()
5789 if (fn->arg4_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok()
5791 if (fn->arg5_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok()
5810 static bool check_arg_pair_ok(const struct bpf_func_proto *fn) in check_arg_pair_ok() argument
[all …]
Dbpf_iter.c367 const struct bpf_func_proto *fn = NULL; in bpf_iter_get_func_proto() local
376 fn = reg_info->get_func_proto(func_id, prog); in bpf_iter_get_func_proto()
382 return fn; in bpf_iter_get_func_proto()
Dsyscall.c4173 #define BPF_DO_BATCH(fn) \ argument
4175 if (!fn) { \
4179 err = fn(map, attr, uattr); \
/kernel/futex/
Dcore.c3024 restart->fn = do_no_restart_syscall; in futex_wait_restart()