/kernel/bpf/ |
D | bpf_lsm.c | 32 #define LSM_HOOK(RET, DEFAULT, NAME, ...) BTF_ID(func, bpf_lsm_##NAME) 71 .func = bpf_bprm_opts_set, 92 .func = bpf_ima_inode_hash, 133 BTF_ID(func, bpf_lsm_bpf) in BTF_ID() argument 134 BTF_ID(func, bpf_lsm_bpf_map) in BTF_ID() 135 BTF_ID(func, bpf_lsm_bpf_map_alloc_security) in BTF_ID() 136 BTF_ID(func, bpf_lsm_bpf_map_free_security) in BTF_ID() 137 BTF_ID(func, bpf_lsm_bpf_prog) in BTF_ID() 138 BTF_ID(func, bpf_lsm_bprm_check_security) in BTF_ID() 139 BTF_ID(func, bpf_lsm_bprm_committed_creds) in BTF_ID() [all …]
|
D | helpers.c | 37 .func = bpf_map_lookup_elem, 53 .func = bpf_map_update_elem, 70 .func = bpf_map_delete_elem, 84 .func = bpf_map_push_elem, 99 .func = bpf_map_pop_elem, 112 .func = bpf_map_peek_elem, 120 .func = bpf_user_rnd_u32, 131 .func = bpf_get_smp_processor_id, 142 .func = bpf_get_numa_node_id, 154 .func = bpf_ktime_get_ns, [all …]
|
D | trampoline.c | 97 mod = __module_text_address((unsigned long) tr->func.addr); in bpf_trampoline_module_get() 125 void *ip = tr->func.addr; in unregister_fentry() 128 if (tr->func.ftrace_managed) in unregister_fentry() 140 void *ip = tr->func.addr; in modify_fentry() 143 if (tr->func.ftrace_managed) in modify_fentry() 153 void *ip = tr->func.addr; in register_fentry() 159 tr->func.ftrace_managed = ret; in register_fentry() 164 if (tr->func.ftrace_managed) in register_fentry() 367 &tr->func.model, flags, tprogs, in bpf_trampoline_update() 368 tr->func.addr); in bpf_trampoline_update() [all …]
|
/kernel/livepatch/ |
D | patch.c | 28 struct klp_func *func; in klp_find_ops() local 31 func = list_first_entry(&ops->func_stack, struct klp_func, in klp_find_ops() 33 if (func->old_func == old_func) in klp_find_ops() 46 struct klp_func *func; in klp_ftrace_handler() local 61 func = list_first_or_null_rcu(&ops->func_stack, struct klp_func, in klp_ftrace_handler() 69 if (WARN_ON_ONCE(!func)) in klp_ftrace_handler() 85 if (unlikely(func->transition)) { in klp_ftrace_handler() 105 func = list_entry_rcu(func->stack_node.next, in klp_ftrace_handler() 108 if (&func->stack_node == &ops->func_stack) in klp_ftrace_handler() 117 if (func->nop) in klp_ftrace_handler() [all …]
|
D | core.c | 89 struct klp_func *func; in klp_find_func() local 91 klp_for_each_func(obj, func) { in klp_find_func() 92 if ((strcmp(old_func->old_name, func->old_name) == 0) && in klp_find_func() 93 (old_func->old_sympos == func->old_sympos)) { in klp_find_func() 94 return func; in klp_find_func() 441 struct klp_func *func); 468 static void klp_free_func_nop(struct klp_func *func) in klp_free_func_nop() argument 470 kfree(func->old_name); in klp_free_func_nop() 471 kfree(func); in klp_free_func_nop() 477 struct klp_func *func; in klp_alloc_func_nop() local [all …]
|
D | transition.c | 73 struct klp_func *func; in klp_complete_transition() local 103 klp_for_each_func(obj, func) in klp_complete_transition() 104 func->transition = false; in klp_complete_transition() 194 static int klp_check_stack_func(struct klp_func *func, unsigned long *entries, in klp_check_stack_func() argument 209 func_addr = (unsigned long)func->new_func; in klp_check_stack_func() 210 func_size = func->new_size; in klp_check_stack_func() 216 ops = klp_find_ops(func->old_func); in klp_check_stack_func() 220 func_addr = (unsigned long)func->old_func; in klp_check_stack_func() 221 func_size = func->old_size; in klp_check_stack_func() 226 prev = list_next_entry(func, stack_node); in klp_check_stack_func() [all …]
|
/kernel/ |
D | tracepoint.c | 175 for (i = 0; funcs[i].func; i++) in debug_print_probes() 176 printk(KERN_DEBUG "Probe %d : %p\n", i, funcs[i].func); in debug_print_probes() 188 if (WARN_ON(!tp_func->func)) in func_add() 195 for (iter_probes = 0; old[iter_probes].func; iter_probes++) { in func_add() 196 if (old[iter_probes].func == tp_stub_func) in func_add() 198 if (old[iter_probes].func == tp_func->func && in func_add() 210 for (iter_probes = 0; old[iter_probes].func; iter_probes++) { in func_add() 211 if (old[iter_probes].func == tp_stub_func) in func_add() 226 new[nr_probes].func = NULL; in func_add() 245 if (tp_func->func) { in func_remove() [all …]
|
D | async.c | 72 async_func_t func; member 124 entry->func, task_pid_nr(current)); in async_run_entry_fn() 127 entry->func(entry->data, entry->cookie); in async_run_entry_fn() 130 (long long)entry->cookie, entry->func, in async_run_entry_fn() 148 static async_cookie_t __async_schedule_node_domain(async_func_t func, in __async_schedule_node_domain() argument 159 entry->func = func; in __async_schedule_node_domain() 198 async_cookie_t async_schedule_node_domain(async_func_t func, void *data, in async_schedule_node_domain() argument 219 func(data, newcookie); in async_schedule_node_domain() 223 return __async_schedule_node_domain(func, data, node, domain, entry); in async_schedule_node_domain() 240 async_cookie_t async_schedule_node(async_func_t func, void *data, int node) in async_schedule_node() argument [all …]
|
D | up.c | 12 int smp_call_function_single(int cpu, void (*func) (void *info), void *info, in smp_call_function_single() 21 func(info); in smp_call_function_single() 33 csd->func(csd->info); in smp_call_function_single_async() 43 void on_each_cpu_cond_mask(smp_cond_func_t cond_func, smp_call_func_t func, in on_each_cpu_cond_mask() argument 51 func(info); in on_each_cpu_cond_mask() 58 int smp_call_on_cpu(unsigned int cpu, int (*func)(void *), void *par, bool phys) in smp_call_on_cpu() 67 ret = func(par); in smp_call_on_cpu()
|
D | smp.c | 221 __this_cpu_write(cur_csd_func, csd->func); in __csd_lock_record() 358 cpu, csd->func, csd->info); in csd_lock_wait_toolong() 507 smp_call_func_t func = csd->func; in generic_exec_single() local 518 func(info); in generic_exec_single() 596 csd->func); in flush_smp_call_function_queue() 618 smp_call_func_t func = csd->func; in flush_smp_call_function_queue() local 628 func(info); in flush_smp_call_function_queue() 658 smp_call_func_t func = csd->func; in flush_smp_call_function_queue() local 663 func(info); in flush_smp_call_function_queue() 709 int smp_call_function_single(int cpu, smp_call_func_t func, void *info, in smp_call_function_single() argument [all …]
|
D | static_call_inline.c | 123 void __static_call_update(struct static_call_key *key, void *tramp, void *func) in __static_call_update() argument 131 if (key->func == func) in __static_call_update() 134 key->func = func; in __static_call_update() 136 arch_static_call_transform(NULL, tramp, func, false); in __static_call_update() 198 arch_static_call_transform(site_addr, NULL, func, in __static_call_update() 275 arch_static_call_transform(site_addr, NULL, key->func, in __static_call_init() 517 int (*func)(int); member 533 if (scd->func) in test_static_call_init() 534 static_call_update(sc_selftest, scd->func); in test_static_call_init()
|
D | task_work.c | 103 return cb->func == data; in task_work_func_match() 118 task_work_cancel(struct task_struct *task, task_work_func_t func) in task_work_cancel() argument 120 return task_work_cancel_match(task, task_work_func_match, func); in task_work_cancel() 164 work->func(work); in task_work_run()
|
/kernel/trace/ |
D | trace_functions.c | 65 ops->func = function_trace_call; in ftrace_allocate_ftrace_ops() 134 ftrace_func_t func; in function_trace_init() local 143 func = select_trace_function(func_flags.val); in function_trace_init() 144 if (!func) in function_trace_init() 150 ftrace_init_array_ops(tr, func); in function_trace_init() 376 { TRACER_OPT(func-no-repeats, TRACE_FUNC_OPT_NO_REPEATS) }, 403 ftrace_func_t func; in func_set_flag() local 415 func = select_trace_function(new_flags); in func_set_flag() 416 if (!func) in func_set_flag() 420 if (tr->ops->func == func) in func_set_flag() [all …]
|
D | bpf_trace.c | 144 .func = bpf_override_return, 170 .func = bpf_probe_read_user, 207 .func = bpf_probe_read_user_str, 233 .func = bpf_probe_read_kernel, 268 .func = bpf_probe_read_kernel_str, 288 .func = bpf_probe_read_compat, 307 .func = bpf_probe_read_compat_str, 344 .func = bpf_probe_write_user, 391 .func = bpf_trace_printk, 441 .func = bpf_seq_printf, [all …]
|
D | fgraph.c | 59 ftrace_push_return_trace(unsigned long ret, unsigned long func, in ftrace_push_return_trace() argument 88 current->ret_stack[index].func = func; in ftrace_push_return_trace() 113 int function_graph_enter(unsigned long ret, unsigned long func, in function_graph_enter() argument 127 trace.func = func; in function_graph_enter() 130 if (ftrace_push_return_trace(ret, func, frame_pointer, retp)) in function_graph_enter() 183 (void *)current->ret_stack[index].func, in ftrace_pop_return_trace() 191 trace->func = current->ret_stack[index].func; in ftrace_pop_return_trace() 336 .func = ftrace_stub, 448 if (!ftrace_ops_test(&global_ops, trace->func, NULL)) in ftrace_graph_entry_test()
|
D | ftrace.c | 82 .func = ftrace_stub, 181 ftrace_func_t func; in update_ftrace_function() local 193 func = ftrace_stub; in update_ftrace_function() 202 func = ftrace_ops_get_list_func(ftrace_ops_list); in update_ftrace_function() 207 func = ftrace_ops_list_func; in update_ftrace_function() 213 if (ftrace_trace_function == func) in update_ftrace_function() 220 if (func == ftrace_ops_list_func) { in update_ftrace_function() 221 ftrace_trace_function = func; in update_ftrace_function() 255 ftrace_trace_function = func; in update_ftrace_function() 332 ops->saved_func = ops->func; in __register_ftrace_function() [all …]
|
D | trace_event_perf.c | 250 char *func = NULL; in perf_kprobe_init() local 254 func = kzalloc(KSYM_NAME_LEN, GFP_KERNEL); in perf_kprobe_init() 255 if (!func) in perf_kprobe_init() 258 func, u64_to_user_ptr(p_event->attr.kprobe_func), in perf_kprobe_init() 265 if (func[0] == '\0') { in perf_kprobe_init() 266 kfree(func); in perf_kprobe_init() 267 func = NULL; in perf_kprobe_init() 272 func, (void *)(unsigned long)(p_event->attr.kprobe_addr), in perf_kprobe_init() 285 kfree(func); in perf_kprobe_init() 488 ops->func = perf_ftrace_function_call; in perf_ftrace_function_register()
|
D | trace_events_trigger.c | 71 data->ops->func(data, buffer, rec, event); in event_triggers_call() 81 data->ops->func(data, buffer, rec, event); in event_triggers_call() 109 data->ops->func(data, NULL, NULL, NULL); in event_triggers_post_call() 249 ret = p->func(p, file, buff, command, next); in trigger_process_regex() 1067 .func = traceon_trigger, 1074 .func = traceon_count_trigger, 1081 .func = traceoff_trigger, 1088 .func = traceoff_count_trigger, 1113 .func = event_trigger_callback, 1124 .func = event_trigger_callback, [all …]
|
D | trace_selftest.c | 152 .func = trace_selftest_test_probe1_func, 156 .func = trace_selftest_test_probe2_func, 160 .func = trace_selftest_test_probe3_func, 256 dyn_ops->func = trace_selftest_test_dyn_func; in trace_selftest_ops() 324 int (*func)(void)) in trace_selftest_startup_dynamic_tracing() 339 func(); in trace_selftest_startup_dynamic_tracing() 373 func(); in trace_selftest_startup_dynamic_tracing() 447 .func = trace_selftest_test_recursion_func, 452 .func = trace_selftest_test_recursion_safe_func, 538 # define trace_selftest_startup_dynamic_tracing(trace, tr, func) ({ 0; }) argument [all …]
|
D | trace_entries.h | 81 __field_packed( unsigned long, graph_ent, func ) 85 F_printk("--> %ps (%d)", (void *)__entry->func, __entry->depth) 95 __field_packed( unsigned long, ret, func ) 103 (void *)__entry->func, __entry->depth, 302 __array( char, func, TRACE_FUNC_SIZE+1 ) 310 __entry->func, __entry->file, __entry->correct,
|
/kernel/rcu/ |
D | tiny.c | 88 unsigned long offset = (unsigned long)head->func; in rcu_reclaim_tiny() 99 f = head->func; in rcu_reclaim_tiny() 100 WRITE_ONCE(head->func, (rcu_callback_t)0L); in rcu_reclaim_tiny() 163 void call_rcu(struct rcu_head *head, rcu_callback_t func) in call_rcu() argument 168 head->func = func; in call_rcu()
|
D | tasks.h | 152 static void call_rcu_tasks_generic(struct rcu_head *rhp, rcu_callback_t func, in call_rcu_tasks_generic() argument 159 rhp->func = func; in call_rcu_tasks_generic() 234 list->func(list); in rcu_tasks_kthread() 544 void call_rcu_tasks(struct rcu_head *rhp, rcu_callback_t func); 565 void call_rcu_tasks(struct rcu_head *rhp, rcu_callback_t func) in call_rcu_tasks() argument 567 call_rcu_tasks_generic(rhp, func, &rcu_tasks); in call_rcu_tasks() 696 void call_rcu_tasks_rude(struct rcu_head *rhp, rcu_callback_t func); 718 void call_rcu_tasks_rude(struct rcu_head *rhp, rcu_callback_t func) in call_rcu_tasks_rude() argument 720 call_rcu_tasks_generic(rhp, func, &rcu_tasks_rude); in call_rcu_tasks_rude() 864 void call_rcu_tasks_trace(struct rcu_head *rhp, rcu_callback_t func); [all …]
|
/kernel/debug/kdb/ |
D | kdb_main.c | 767 if (kp->func == kdb_exec_defcmd) { in kdb_defcmd() 790 mp->func = kdb_exec_defcmd; in kdb_defcmd() 1098 result = (*tp->func)(argc-1, (const char **)argv); in kdb_parse() 2691 cmd->name, cmd->func, cmd->help); in kdb_register() 2729 .func = kdb_md, 2736 .func = kdb_md, 2742 .func = kdb_md, 2748 .func = kdb_md, 2754 .func = kdb_mm, 2760 .func = kdb_go, [all …]
|
D | kdb_bp.c | 527 .func = kdb_bp, 533 .func = kdb_bp, 539 .func = kdb_bc, 545 .func = kdb_bc, 551 .func = kdb_bc, 557 .func = kdb_ss, 567 .func = kdb_bp,
|
/kernel/sched/ |
D | cpufreq.c | 34 void (*func)(struct update_util_data *data, u64 time, in cpufreq_add_update_util_hook() 37 if (WARN_ON(!data || !func)) in cpufreq_add_update_util_hook() 43 data->func = func; in cpufreq_add_update_util_hook()
|