/kernel/ |
D | stop_machine.c | 46 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 …]
|
D | kallsyms.c | 287 int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *, in kallsyms_on_each_symbol() 298 ret = fn(data, namebuf, NULL, kallsyms_sym_address(i)); in kallsyms_on_each_symbol() 306 int kallsyms_on_each_match_symbol(int (*fn)(void *, unsigned long), in kallsyms_on_each_match_symbol() 317 ret = fn(data, kallsyms_sym_address(get_symbol_seq(i))); in kallsyms_on_each_match_symbol()
|
D | workqueue.c | 3364 int execute_in_process_context(work_func_t fn, struct execute_work *ew) in execute_in_process_context() argument 3367 fn(&ew->work); in execute_in_process_context() 3371 INIT_WORK(&ew->work, fn); in execute_in_process_context() 4682 work_func_t *fn = NULL; in print_worker_info() local 4702 copy_from_kernel_nofault(&fn, &worker->current_func, sizeof(fn)); in print_worker_info() 4708 if (fn || name[0] || desc[0]) { in print_worker_info() 4709 printk("%sWorkqueue: %s %ps", log_lvl, name, fn); in print_worker_info() 5183 long (*fn)(void *); member 5192 wfc->ret = wfc->fn(wfc->arg); in work_for_cpu_fn() 5206 long work_on_cpu(int cpu, long (*fn)(void *), void *arg) in work_on_cpu() [all …]
|
D | fork.c | 2700 .fn = &idle_dummy, in fork_idle() 2721 struct task_struct *create_io_thread(int (*fn)(void *), void *arg, int node) in create_io_thread() 2729 .fn = fn, in create_io_thread() 2837 pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags) in kernel_thread() 2843 .fn = fn, in kernel_thread() 2854 pid_t user_mode_thread(int (*fn)(void *), void *arg, unsigned long flags) in user_mode_thread() 2860 .fn = fn, in user_mode_thread()
|
D | torture.c | 928 int _torture_create_kthread(int (*fn)(void *arg), void *arg, char *s, char *m, in _torture_create_kthread() 934 *tp = kthread_create(fn, arg, "%s", s); in _torture_create_kthread()
|
D | kprobes.c | 2091 struct freelist_node *fn; in NOKPROBE_SYMBOL() local 2093 fn = freelist_try_get(&rp->freelist); in NOKPROBE_SYMBOL() 2094 if (!fn) { in NOKPROBE_SYMBOL() 2099 ri = container_of(fn, struct kretprobe_instance, freelist); in NOKPROBE_SYMBOL()
|
D | signal.c | 3023 return restart->fn(restart); in SYSCALL_DEFINE0()
|
/kernel/gcov/ |
D | clang.c | 227 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/ |
D | tracing_map.c | 170 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()
|
D | rethook.c | 171 struct freelist_node *fn; in rethook_try_get() local 186 fn = freelist_try_get(&rh->pool); in rethook_try_get() 187 if (!fn) in rethook_try_get() 190 return container_of(fn, struct rethook_node, freelist); in rethook_try_get()
|
D | trace_events_filter.c | 1243 enum filter_pred_fn fn = FILTER_PRED_FN_NOP; in select_comparison_fn() local 1252 return fn; in select_comparison_fn() 1255 return fn; in select_comparison_fn() 1261 fn = FILTER_PRED_FN_64; in select_comparison_fn() 1263 fn = FILTER_PRED_FN_S64; in select_comparison_fn() 1265 fn = FILTER_PRED_FN_U64; in select_comparison_fn() 1269 fn = FILTER_PRED_FN_32; in select_comparison_fn() 1271 fn = FILTER_PRED_FN_S32; in select_comparison_fn() 1273 fn = FILTER_PRED_FN_U32; in select_comparison_fn() 1277 fn = FILTER_PRED_FN_16; in select_comparison_fn() [all …]
|
D | bpf_trace.c | 1911 const struct bpf_func_proto *fn; in tracing_prog_func_proto() local 1967 fn = raw_tp_prog_func_proto(func_id, prog); in tracing_prog_func_proto() 1968 if (!fn && prog->expected_attach_type == BPF_TRACE_ITER) in tracing_prog_func_proto() 1969 fn = bpf_iter_get_func_proto(func_id, prog); in tracing_prog_func_proto() 1970 return fn; in tracing_prog_func_proto()
|
D | trace_events_hist.c | 604 action_fn_t fn; member 3687 data->fn = ontrack_action; in action_parse() 3709 data->fn = ontrack_action; in action_parse() 3730 data->fn = ontrack_action; in action_parse() 3732 data->fn = action_trace; in action_parse() 5170 data->fn(hist_data, elt, buffer, rec, rbe, key, data, var_ref_vals); in hist_trigger_actions()
|
/kernel/locking/ |
D | test-ww_mutex.c | 583 void (*fn)(struct work_struct *work); in stress() local 585 fn = NULL; in stress() 589 fn = stress_inorder_work; in stress() 593 fn = stress_reorder_work; in stress() 597 fn = stress_one_work; in stress() 601 if (!fn) in stress() 606 INIT_WORK(&stress->work, fn); in stress()
|
/kernel/time/ |
D | timer.c | 652 #define TIMER_HINT(fn, container, timr, hintfn) \ argument 654 .function = fn, \ 673 void (**fn)(void) = addr + timer_hints[i].offset; in timer_debug_hint() local 675 return *fn; in timer_debug_hint() 1455 void (*fn)(struct timer_list *), in call_timer_fn() 1480 fn(timer); in call_timer_fn() 1487 fn, count, preempt_count()); in call_timer_fn() 1509 void (*fn)(struct timer_list *); in expire_timers() local 1516 fn = timer->function; in expire_timers() 1520 call_timer_fn(timer, fn, baseclk); in expire_timers() [all …]
|
D | posix-stubs.c | 150 current->restart_block.fn = do_no_restart_syscall; in SYSCALL_DEFINE4() 244 current->restart_block.fn = do_no_restart_syscall; in SYSCALL_DEFINE4()
|
D | hrtimer.c | 1647 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()
|
D | posix-timers.c | 1304 current->restart_block.fn = do_no_restart_syscall; in SYSCALL_DEFINE4() 1332 current->restart_block.fn = do_no_restart_syscall; in SYSCALL_DEFINE4()
|
/kernel/kcsan/ |
D | kcsan_test.c | 148 void *fn; /* Function pointer to expected function of top frame. */ member 182 if (r->access[1].fn) { in __report_matches() 187 scnprintf(tmp[0], sizeof(tmp[0]), "%pS", r->access[0].fn); in __report_matches() 188 scnprintf(tmp[1], sizeof(tmp[1]), "%pS", r->access[1].fn); in __report_matches() 191 cmp < 0 ? r->access[0].fn : r->access[1].fn, in __report_matches() 192 cmp < 0 ? r->access[1].fn : r->access[0].fn); in __report_matches() 194 scnprintf(cur, end - cur, "%pS", r->access[0].fn); in __report_matches() 204 if (!r->access[1].fn) in __report_matches() 232 if (!r->access[1].fn) { in __report_matches()
|
/kernel/bpf/ |
D | verifier.c | 6153 const struct bpf_func_proto *fn) in check_func_arg() argument 6157 enum bpf_arg_type arg_type = fn->arg_type[arg]; in check_func_arg() 6198 arg_btf_id = fn->arg_btf_id[arg]; in check_func_arg() 6337 fn->arg_size[arg], false, in check_func_arg() 6745 static bool check_raw_mode_ok(const struct bpf_func_proto *fn) in check_raw_mode_ok() argument 6749 if (fn->arg1_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok() 6751 if (fn->arg2_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok() 6753 if (fn->arg3_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok() 6755 if (fn->arg4_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok() 6757 if (fn->arg5_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok() [all …]
|
D | bpf_iter.c | 376 const struct bpf_func_proto *fn = NULL; in bpf_iter_get_func_proto() local 385 fn = reg_info->get_func_proto(func_id, prog); in bpf_iter_get_func_proto() 391 return fn; in bpf_iter_get_func_proto()
|
D | syscall.c | 4483 #define BPF_DO_BATCH(fn) \ argument 4485 if (!fn) { \ 4489 err = fn(map, attr, uattr); \
|
/kernel/module/ |
D | kallsyms.c | 497 int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *, in module_kallsyms_on_each_symbol() 523 ret = fn(data, kallsyms_symbol_name(kallsyms, i), in module_kallsyms_on_each_symbol()
|
/kernel/futex/ |
D | waitwake.c | 712 restart->fn = do_no_restart_syscall; in futex_wait_restart()
|