Home
last modified time | relevance | path

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

1234567891011

/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dcpumask_common.h31 struct bpf_cpumask *bpf_cpumask_create(void) __ksym __weak;
32 void bpf_cpumask_release(struct bpf_cpumask *cpumask) __ksym __weak;
33 struct bpf_cpumask *bpf_cpumask_acquire(struct bpf_cpumask *cpumask) __ksym __weak;
34 u32 bpf_cpumask_first(const struct cpumask *cpumask) __ksym __weak;
35 u32 bpf_cpumask_first_zero(const struct cpumask *cpumask) __ksym __weak;
37 const struct cpumask *src2) __ksym __weak;
38 void bpf_cpumask_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym __weak;
39 void bpf_cpumask_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym __weak;
40 bool bpf_cpumask_test_cpu(u32 cpu, const struct cpumask *cpumask) __ksym __weak;
41 bool bpf_cpumask_test_and_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym __weak;
[all …]
Dverifier_global_subprogs.c111 __weak int subprog_nullable_ptr_bad(int *p) in subprog_nullable_ptr_bad()
130 __noinline __weak int subprog_user_anon_mem(user_struct_t *t) in subprog_user_anon_mem()
155 __noinline __weak int subprog_nonnull_ptr_good(int *p1 __arg_nonnull, int *p2 __arg_nonnull) in subprog_nonnull_ptr_good()
174 __weak int subprog_ctx_tag(void *ctx __arg_ctx) in subprog_ctx_tag()
179 __weak int raw_tp_canonical(struct bpf_raw_tracepoint_args *ctx __arg_ctx) in raw_tp_canonical()
184 __weak int raw_tp_u64_array(u64 *ctx __arg_ctx) in raw_tp_u64_array()
212 __weak int tp_whatever(struct whatever *ctx __arg_ctx) in tp_whatever()
224 __weak int kprobe_subprog_pt_regs(struct pt_regs *ctx __arg_ctx) in kprobe_subprog_pt_regs()
229 __weak int kprobe_subprog_typedef(bpf_user_pt_regs_t *ctx __arg_ctx) in kprobe_subprog_typedef()
243 __weak int perf_subprog_regs( in perf_subprog_regs()
[all …]
Dtest_core_extern.c14 extern int LINUX_UNKNOWN_VIRTUAL_EXTERN __kconfig __weak;
16 extern enum libbpf_tristate CONFIG_TRISTATE __kconfig __weak;
17 extern bool CONFIG_BOOL __kconfig __weak;
18 extern char CONFIG_CHAR __kconfig __weak;
19 extern uint16_t CONFIG_USHORT __kconfig __weak;
20 extern int CONFIG_INT __kconfig __weak;
21 extern uint64_t CONFIG_ULONG __kconfig __weak;
22 extern const char CONFIG_STR[8] __kconfig __weak;
23 extern uint64_t CONFIG_MISSING __kconfig __weak;
Dtest_ksyms_weak.c21 extern const struct rq runqueues __ksym __weak; /* typed */
22 extern const void bpf_prog_active __ksym __weak; /* typeless */
23 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym __weak;
24 void bpf_testmod_test_mod_kfunc(int i) __ksym __weak;
30 extern const void bpf_link_fops1 __ksym __weak;
33 extern const int bpf_link_fops2 __ksym __weak;
34 void invalid_kfunc(void) __ksym __weak;
Dtest_global_func_ctx_args.c17 __weak int kprobe_typedef_ctx_subprog(bpf_user_pt_regs_t *ctx) in kprobe_typedef_ctx_subprog()
48 __weak int kprobe_struct_ctx_subprog(pt_regs_struct_t *ctx) in kprobe_struct_ctx_subprog()
65 __weak int kprobe_workaround_ctx_subprog(struct bpf_user_pt_regs_t *ctx) in kprobe_workaround_ctx_subprog()
81 __weak int raw_tp_ctx_subprog(struct bpf_raw_tracepoint_args *ctx) in raw_tp_ctx_subprog()
97 __weak int raw_tp_writable_ctx_subprog(struct bpf_raw_tracepoint_args *ctx) in raw_tp_writable_ctx_subprog()
113 __weak int perf_event_ctx_subprog(struct bpf_perf_event_data *ctx) in perf_event_ctx_subprog()
128 __weak int subprog_ctx_tag(void *ctx __arg_ctx) in subprog_ctx_tag()
135 __weak int subprog_multi_ctx_tags(void *ctx1 __arg_ctx, in subprog_multi_ctx_tags()
Dverifier_global_ptr_args.c12 extern struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym __weak;
13 extern void bpf_task_release(struct task_struct *p) __ksym __weak;
15 __weak int subprog_trusted_task_nullable(struct task_struct *task __arg_trusted __arg_nullable) in subprog_trusted_task_nullable()
22 __weak int subprog_trusted_task_nullable_extra_layer(struct task_struct *task __arg_trusted __arg_n… in subprog_trusted_task_nullable_extra_layer()
59 __weak int subprog_trusted_task_nonnull(struct task_struct *task __arg_trusted) in subprog_trusted_task_nonnull()
107 __weak int subprog_nullable_task_flavor( in subprog_nullable_task_flavor()
129 __weak int subprog_nonnull_task_flavor(struct task_struct___local *task __arg_trusted) in subprog_nonnull_task_flavor()
147 __weak int subprog_trusted_destroy(struct task_struct *task __arg_trusted) in subprog_trusted_destroy()
162 __weak int subprog_trusted_acq_rel(struct task_struct *task __arg_trusted) in subprog_trusted_acq_rel()
Dlinked_vars1.c10 extern bool CONFIG_BPF_SYSCALL __kconfig __weak;
11 extern const void bpf_link_fops __ksym __weak;
17 int input_bss_weak __weak; variable
19 int input_data_weak __weak = 10; variable
20 const volatile int input_rodata_weak __weak = 100; variable
Dlinked_vars2.c17 int input_bss_weak __weak; variable
19 int input_data_weak __weak = 20; variable
20 const volatile int input_rodata_weak __weak = 200; variable
Dlinked_funcs2.c11 const volatile int my_tid __weak; variable
12 long syscall_id __weak; variable
47 __weak int set_output_weak(int x) in set_output_weak()
Dlinked_funcs1.c11 const volatile __u32 my_tid __weak; variable
12 long syscall_id __weak; variable
47 __weak int set_output_weak(int x) in set_output_weak()
Dtask_kfunc_success.c21 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym __weak;
23 struct task_struct *bpf_task_acquire___one(struct task_struct *task) __ksym __weak;
25 struct task_struct *bpf_task_acquire___two(struct task_struct *p, void *ctx) __ksym __weak;
27 struct task_struct *bpf_task_acquire___three(void *ctx) __ksym __weak;
29 void invalid_kfunc(void) __ksym __weak;
30 void bpf_testmod_test_mod_kfunc(int i) __ksym __weak;
/linux-6.12.1/tools/testing/selftests/bpf/
Dbpf_kfuncs.h12 struct bpf_dynptr *ptr__uninit) __ksym __weak;
20 struct bpf_dynptr *ptr__uninit) __ksym __weak;
29 void *buffer, __u32 buffer__szk) __ksym __weak;
38 void *buffer, __u32 buffer__szk) __ksym __weak;
40 extern int bpf_dynptr_adjust(const struct bpf_dynptr *ptr, __u32 start, __u32 end) __ksym __weak;
41 extern bool bpf_dynptr_is_null(const struct bpf_dynptr *ptr) __ksym __weak;
42 extern bool bpf_dynptr_is_rdonly(const struct bpf_dynptr *ptr) __ksym __weak;
43 extern __u32 bpf_dynptr_size(const struct bpf_dynptr *ptr) __ksym __weak;
44 …n int bpf_dynptr_clone(const struct bpf_dynptr *ptr, struct bpf_dynptr *clone__init) __ksym __weak;
66 extern void *bpf_rdonly_cast(const void *obj, __u32 btf_id) __ksym __weak;
[all …]
Dbpf_experimental.h483 void bpf_preempt_disable(void) __weak __ksym;
484 void bpf_preempt_enable(void) __weak __ksym;
562 struct cgroup_subsys_state *css, unsigned int flags) __weak __ksym;
563 extern struct task_struct *bpf_iter_css_task_next(struct bpf_iter_css_task *it) __weak __ksym;
564 extern void bpf_iter_css_task_destroy(struct bpf_iter_css_task *it) __weak __ksym;
568 struct task_struct *task, unsigned int flags) __weak __ksym;
569 extern struct task_struct *bpf_iter_task_next(struct bpf_iter_task *it) __weak __ksym;
570 extern void bpf_iter_task_destroy(struct bpf_iter_task *it) __weak __ksym;
574 struct cgroup_subsys_state *start, unsigned int flags) __weak __ksym;
575 extern struct cgroup_subsys_state *bpf_iter_css_next(struct bpf_iter_css *it) __weak __ksym;
[all …]
/linux-6.12.1/lib/
Dclz_ctz.c17 int __weak __ctzsi2(int val);
18 int __weak __ctzsi2(int val) in __ctzsi2()
24 int __weak __clzsi2(int val);
25 int __weak __clzsi2(int val) in __clzsi2()
31 int __weak __clzdi2(u64 val);
32 int __weak __clzdi2(u64 val) in __clzdi2()
38 int __weak __ctzdi2(u64 val);
39 int __weak __ctzdi2(u64 val) in __ctzdi2()
/linux-6.12.1/tools/perf/util/
Diostat.c7 __weak int iostat_prepare(struct evlist *evlist __maybe_unused, in iostat_prepare()
13 __weak int iostat_parse(const struct option *opt __maybe_unused, in iostat_parse()
21 __weak void iostat_list(struct evlist *evlist __maybe_unused, in iostat_list()
26 __weak void iostat_release(struct evlist *evlist __maybe_unused) in iostat_release()
30 __weak void iostat_print_header_prefix(struct perf_stat_config *config __maybe_unused) in iostat_print_header_prefix()
34 __weak void iostat_print_metric(struct perf_stat_config *config __maybe_unused, in iostat_print_metric()
40 __weak void iostat_prefix(struct evlist *evlist __maybe_unused, in iostat_prefix()
47 __weak void iostat_print_counters(struct evlist *evlist __maybe_unused, in iostat_print_counters()
Dperf_regs.c8 int __weak arch_sdt_arg_parse_op(char *old_op __maybe_unused, in arch_sdt_arg_parse_op()
14 uint64_t __weak arch__intr_reg_mask(void) in arch__intr_reg_mask()
19 uint64_t __weak arch__user_reg_mask(void) in arch__user_reg_mask()
28 const struct sample_reg * __weak arch__sample_reg_masks(void) in arch__sample_reg_masks()
/linux-6.12.1/tools/bpf/bpftool/
Dmain.h118 __weak int build_obj_refs_table(struct hashmap **table,
120 __weak void delete_obj_refs_table(struct hashmap *table);
121 __weak void emit_obj_refs_json(struct hashmap *table, __u32 id,
123 __weak void emit_obj_refs_plain(struct hashmap *table, __u32 id,
155 int do_prog(int argc, char **arg) __weak;
156 int do_map(int argc, char **arg) __weak;
157 int do_link(int argc, char **arg) __weak;
158 int do_event_pipe(int argc, char **argv) __weak;
159 int do_cgroup(int argc, char **arg) __weak;
160 int do_perf(int argc, char **arg) __weak;
[all …]
/linux-6.12.1/arch/sh/include/asm/
Dcacheflush.h107 void __weak l2_cache_init(void);
109 void __weak j2_cache_init(void);
110 void __weak sh2_cache_init(void);
111 void __weak sh2a_cache_init(void);
112 void __weak sh3_cache_init(void);
113 void __weak shx3_cache_init(void);
114 void __weak sh4_cache_init(void);
115 void __weak sh7705_cache_init(void);
117 void __weak sh4__flush_region_init(void);
/linux-6.12.1/tools/sched_ext/include/scx/
Dcommon.bpf.h44 …id scx_bpf_dispatch_from_dsq_set_slice(struct bpf_iter_scx_dsq *it__iter, u64 slice) __ksym __weak;
45 …id scx_bpf_dispatch_from_dsq_set_vtime(struct bpf_iter_scx_dsq *it__iter, u64 vtime) __ksym __weak;
46 …struct bpf_iter_scx_dsq *it__iter, struct task_struct *p, u64 dsq_id, u64 enq_flags) __ksym __weak;
47 …struct bpf_iter_scx_dsq *it__iter, struct task_struct *p, u64 dsq_id, u64 enq_flags) __ksym __weak;
52 int bpf_iter_scx_dsq_new(struct bpf_iter_scx_dsq *it, u64 dsq_id, u64 flags) __ksym __weak;
53 struct task_struct *bpf_iter_scx_dsq_next(struct bpf_iter_scx_dsq *it) __ksym __weak;
54 void bpf_iter_scx_dsq_destroy(struct bpf_iter_scx_dsq *it) __ksym __weak;
55 … scx_bpf_exit_bstr(s64 exit_code, char *fmt, unsigned long long *data, u32 data__sz) __ksym __weak;
57 void scx_bpf_dump_bstr(char *fmt, unsigned long long *data, u32 data_len) __ksym __weak;
58 u32 scx_bpf_cpuperf_cap(s32 cpu) __ksym __weak;
[all …]
/linux-6.12.1/drivers/hv/
Dhv_common.c43 bool __weak hv_root_partition;
46 bool __weak hv_nested;
49 struct ms_hyperv_info __weak ms_hyperv;
595 bool __weak hv_is_isolation_supported(void) in hv_is_isolation_supported()
601 bool __weak hv_isolation_type_snp(void) in hv_isolation_type_snp()
607 bool __weak hv_isolation_type_tdx(void) in hv_isolation_type_tdx()
613 void __weak hv_setup_vmbus_handler(void (*handler)(void)) in hv_setup_vmbus_handler()
618 void __weak hv_remove_vmbus_handler(void) in hv_remove_vmbus_handler()
623 void __weak hv_setup_kexec_handler(void (*handler)(void)) in hv_setup_kexec_handler()
628 void __weak hv_remove_kexec_handler(void) in hv_remove_kexec_handler()
[all …]
/linux-6.12.1/arch/xtensa/kernel/
Dplatform.c25 void __weak __init platform_init(bp_tag_t *first) in platform_init()
29 void __weak __init platform_setup(char **cmd) in platform_setup()
33 void __weak platform_idle(void) in platform_idle()
39 void __weak platform_calibrate_ccount(void) in platform_calibrate_ccount()
/linux-6.12.1/arch/mips/loongson2ef/common/
Dpm.c59 void __weak setup_wakeup_events(void) in setup_wakeup_events()
66 int __weak wakeup_loongson(void) in wakeup_loongson()
114 void __weak mach_suspend(void) in mach_suspend()
118 void __weak mach_resume(void) in mach_resume()
/linux-6.12.1/drivers/pci/msi/
Dlegacy.c10 int __weak arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc) in arch_setup_msi_irq()
15 void __weak arch_teardown_msi_irq(unsigned int irq) in arch_teardown_msi_irq()
19 int __weak arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in arch_setup_msi_irqs()
40 void __weak arch_teardown_msi_irqs(struct pci_dev *dev) in arch_teardown_msi_irqs()
/linux-6.12.1/kernel/bpf/
Dcore.c1029 u64 __weak bpf_jit_alloc_exec_limit(void) in bpf_jit_alloc_exec_limit()
1065 void *__weak bpf_jit_alloc_exec(unsigned long size) in bpf_jit_alloc_exec()
1070 void __weak bpf_jit_free_exec(void *addr) in bpf_jit_free_exec()
1236 void __weak bpf_jit_free(struct bpf_prog *fp) in bpf_jit_free()
2863 const struct bpf_func_proto bpf_map_lookup_elem_proto __weak; variable
2864 const struct bpf_func_proto bpf_map_update_elem_proto __weak; variable
2865 const struct bpf_func_proto bpf_map_delete_elem_proto __weak; variable
2866 const struct bpf_func_proto bpf_map_push_elem_proto __weak; variable
2867 const struct bpf_func_proto bpf_map_pop_elem_proto __weak; variable
2868 const struct bpf_func_proto bpf_map_peek_elem_proto __weak; variable
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Duretprobe_stack.c18 __weak int target_4(void) in target_4()
28 __weak int target_3(void) in target_3()
37 __weak int target_2(void) in target_2()
46 __weak int target_1(int depth) in target_1()
126 __weak void test_uretprobe_stack(void) in test_uretprobe_stack()

1234567891011