/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
H A D | cfg.c | 65 struct func_node *new_func, *func; in cfg_append_func() local 75 new_func = calloc(1, sizeof(*new_func)); in cfg_append_func() 76 if (!new_func) { in cfg_append_func() 80 new_func->start = insn; in cfg_append_func() 81 new_func->idx = cfg->func_num; in cfg_append_func() 82 list_add(&new_func->l, &func->l); in cfg_append_func() 85 return new_func; in cfg_append_func()
|
/kernel/linux/linux-6.6/tools/bpf/bpftool/ |
H A D | cfg.c | 65 struct func_node *new_func, *func; in cfg_append_func() local 75 new_func = calloc(1, sizeof(*new_func)); in cfg_append_func() 76 if (!new_func) { in cfg_append_func() 80 new_func->start = insn; in cfg_append_func() 81 new_func->idx = cfg->func_num; in cfg_append_func() 82 list_add(&new_func->l, &func->l); in cfg_append_func() 85 return new_func; in cfg_append_func()
|
/kernel/linux/linux-5.10/samples/livepatch/ |
H A D | livepatch-shadow-fix1.c | 139 .new_func = livepatch_fix1_dummy_alloc, 143 .new_func = livepatch_fix1_dummy_free,
|
H A D | livepatch-shadow-fix2.c | 98 .new_func = livepatch_fix2_dummy_check, 102 .new_func = livepatch_fix2_dummy_free,
|
H A D | livepatch-sample.c | 42 .new_func = livepatch_cmdline_proc_show,
|
H A D | livepatch-callbacks-demo.c | 144 .new_func = patched_work_func,
|
/kernel/linux/linux-6.6/samples/livepatch/ |
H A D | livepatch-shadow-fix1.c | 139 .new_func = livepatch_fix1_dummy_alloc, 143 .new_func = livepatch_fix1_dummy_free,
|
H A D | livepatch-shadow-fix2.c | 98 .new_func = livepatch_fix2_dummy_check, 102 .new_func = livepatch_fix2_dummy_free,
|
H A D | livepatch-sample.c | 42 .new_func = livepatch_cmdline_proc_show,
|
H A D | livepatch-callbacks-demo.c | 144 .new_func = patched_work_func,
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | livepatch.h | 29 * @new_func: pointer to the patched function code 60 void *new_func; member 187 func->old_name || func->new_func || func->old_sympos; \
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | livepatch.h | 28 * @new_func: pointer to the patched function code 59 void *new_func; member 186 func->old_name || func->new_func || func->old_sympos; \
|
/kernel/linux/linux-5.10/lib/livepatch/ |
H A D | test_klp_atomic_replace.c | 25 .new_func = livepatch_meminfo_proc_show,
|
H A D | test_klp_livepatch.c | 21 .new_func = livepatch_cmdline_proc_show,
|
H A D | test_klp_callbacks_demo.c | 67 .new_func = patched_work_func,
|
/kernel/linux/linux-6.6/lib/livepatch/ |
H A D | test_klp_atomic_replace.c | 25 .new_func = livepatch_meminfo_proc_show,
|
H A D | test_klp_livepatch.c | 21 .new_func = livepatch_cmdline_proc_show,
|
H A D | test_klp_callbacks_demo.c | 67 .new_func = patched_work_func,
|
/kernel/linux/linux-5.10/kernel/livepatch/ |
H A D | transition.c | 208 func_addr = (unsigned long)func->new_func; in klp_check_stack_func() 226 func_addr = (unsigned long)prev->new_func; in klp_check_stack_func()
|
H A D | core.c | 498 * func->new_func is same as func->old_func. These addresses are in klp_alloc_func_nop() 625 func->new_func = NULL; in klp_free_object_loaded() 732 if (!func->new_func && !func->nop) in klp_init_func() 810 func->new_func = func->old_func; in klp_init_object_loaded() 812 ret = kallsyms_lookup_size_offset((unsigned long)func->new_func, in klp_init_object_loaded()
|
H A D | patch.c | 116 klp_arch_set_pc(regs, (unsigned long)func->new_func); in klp_ftrace_handler()
|
/kernel/linux/linux-6.6/kernel/livepatch/ |
H A D | transition.c | 226 func_addr = (unsigned long)func->new_func; in klp_check_stack_func() 244 func_addr = (unsigned long)prev->new_func; in klp_check_stack_func()
|
H A D | core.c | 532 * func->new_func is same as func->old_func. These addresses are in klp_alloc_func_nop() 660 func->new_func = NULL; in klp_free_object_loaded() 767 if (!func->new_func && !func->nop) in klp_init_func() 858 func->new_func = func->old_func; in klp_init_object_loaded() 860 ret = kallsyms_lookup_size_offset((unsigned long)func->new_func, in klp_init_object_loaded()
|
H A D | patch.c | 121 ftrace_regs_set_instruction_pointer(fregs, (unsigned long)func->new_func); in klp_ftrace_handler()
|