Home
last modified time | relevance | path

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

12345

/tools/bpf/bpftool/
Dcfg.c48 #define func_prev(func) list_prev_entry(func, l) argument
49 #define func_next(func) list_next_entry(func, l) argument
52 #define entry_bb(func) func_first_bb(func) argument
53 #define exit_bb(func) func_last_bb(func) argument
58 #define func_first_bb(func) \ argument
59 list_first_entry(&func->bbs, struct bb_node, l)
60 #define func_last_bb(func) \ argument
61 list_last_entry(&func->bbs, struct bb_node, l)
65 struct func_node *new_func, *func; in cfg_append_func() local
67 list_for_each_entry(func, &cfg->funcs, l) { in cfg_append_func()
[all …]
/tools/testing/selftests/hyp-trace/
Dhyp-trace-test76 local func="$2"
80 [ -z "$func" -o $i -eq $num ] || eval $func
96 local func=$2
108 write_events $nr_events $func
262 echo 1 > events/hypervisor/func/enable
284 local func="__kvm_nvhe_handle___pkvm_selftest_event"
293 grep -qE "func *$func" $tmp || \
294 log_and_die "Couldn't find 'func' event with arg '$func'"
295 grep -q "func_ret $func" $tmp || \
296 log_and_die "Couldn't find 'func_ret' event with arg '$func'"
[all …]
/tools/testing/selftests/bpf/progs/
Dexhandler_kern.c23 void *func; in BPF_PROG() local
39 func = work->func; in BPF_PROG()
47 barrier_var(func); in BPF_PROG()
48 if (func) in BPF_PROG()
Dtest_core_read_macros.c12 void (*func)(struct callback_head___shuffled *head); member
44 k_probe_out = (long)BPF_PROBE_READ(&k_probe_in, next, next, func); in handler()
45 k_core_out = (long)BPF_CORE_READ(&k_core_in, next, next, func); in handler()
46 u_probe_out = (long)BPF_PROBE_READ_USER(u_probe_in, next, next, func); in handler()
47 u_core_out = (long)BPF_CORE_READ_USER(u_core_in, next, next, func); in handler()
Dkfree_skb.c21 void (*func)(struct callback_head *head); member
65 void *func; in BPF_PROG() local
79 func = ptr->func; in BPF_PROG()
94 bpf_printk("rcuhead.next %llx func %llx\n", ptr, func); in BPF_PROG()
/tools/arch/x86/kcpuid/
Dkcpuid.c133 struct cpuid_func *func; in cpuid_store() local
144 func = &range->funcs[f & 0xffff]; in cpuid_store()
146 if (!func->leafs) { in cpuid_store()
147 func->leafs = malloc(sizeof(struct subleaf)); in cpuid_store()
148 if (!func->leafs) in cpuid_store()
151 func->nr = 1; in cpuid_store()
153 s = func->nr; in cpuid_store()
154 func->leafs = realloc(func->leafs, (s + 1) * sizeof(*leaf)); in cpuid_store()
155 if (!func->leafs) in cpuid_store()
158 func->nr++; in cpuid_store()
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dcore_read_macros.c8 void (*func)(struct callback_head *head); member
18 void (*func)(struct callback_head *head); member
38 bss->k_probe_in.func = (void *)(long)0x1234; in test_core_read_macros()
39 bss->k_core_in.func = (void *)(long)0xabcd; in test_core_read_macros()
42 u_probe_in.func = (void *)(long)0x5678; in test_core_read_macros()
46 u_core_in.func = (void *)(long)0xdbca; in test_core_read_macros()
Dlookup_key.c22 char *func; in libbpf_print_cb() local
27 func = va_arg(args, char *); in libbpf_print_cb()
29 if (strcmp(func, "bpf_lookup_user_key") && strcmp(func, "bpf_key_put") && in libbpf_print_cb()
30 strcmp(func, "bpf_lookup_system_key")) in libbpf_print_cb()
Dresolve_btfids.c44 BTF_ID(func, func)
54 BTF_ID(func, func) in BTF_ID()
62 BTF_ID(func, func) in BTF_ID()
/tools/testing/selftests/ftrace/test.d/ftrace/
Dfunc_traceonoff_triggers.tc52 func="schedule"
59 func=".schedule"
64 echo "$func:traceoff" > set_ftrace_filter
108 echo "!$func:traceoff" >> set_ftrace_filter
120 echo "$func:traceon" > set_ftrace_filter
138 echo "!$func:traceon" >> set_ftrace_filter
156 echo "$func:traceoff:3" > set_ftrace_filter
164 echo "!$func:traceoff:0" > set_ftrace_filter
/tools/power/cpupower/utils/helpers/
Dpci.c27 int slot, int func, int vendor, int dev) in pci_acc_init() argument
40 filter_nb_link.func = func; in pci_acc_init()
58 int func) in pci_slot_func_init() argument
60 return pci_acc_init(pacc, 0, 0, slot, func, -1, -1); in pci_slot_func_init()
/tools/include/linux/
Dstatic_call_types.h37 #define DECLARE_STATIC_CALL(name, func) \ argument
39 extern typeof(func) STATIC_CALL_TRAMP(name);
62 void *func; member
77 void *func; member
95 void *func; member
99 ((typeof(STATIC_CALL_TRAMP(name))*)(STATIC_CALL_KEY(name).func))
/tools/testing/selftests/bpf/bpf_testmod/
Dbpf_testmod.c465 uprobe_ret_handler(struct uprobe_consumer *self, unsigned long func, in uprobe_ret_handler() argument
574 BTF_ID_FLAGS(func, bpf_iter_testmod_seq_new, KF_ITER_NEW)
575 BTF_ID_FLAGS(func, bpf_iter_testmod_seq_next, KF_ITER_NEXT | KF_RET_NULL)
576 BTF_ID_FLAGS(func, bpf_iter_testmod_seq_destroy, KF_ITER_DESTROY)
577 BTF_ID_FLAGS(func, bpf_iter_testmod_seq_value)
578 BTF_ID_FLAGS(func, bpf_kfunc_common_test)
579 BTF_ID_FLAGS(func, bpf_kfunc_dynptr_test)
580 BTF_ID_FLAGS(func, bpf_kfunc_nested_acquire_nonzero_offset_test, KF_ACQUIRE)
581 BTF_ID_FLAGS(func, bpf_kfunc_nested_acquire_zero_offset_test, KF_ACQUIRE)
582 BTF_ID_FLAGS(func, bpf_kfunc_nested_release_test, KF_RELEASE)
[all …]
/tools/objtool/
Dcheck.c68 struct symbol *func = insn_func(insn); in next_insn_same_func() local
70 if (!func) in next_insn_same_func()
73 if (next && insn_func(next) == func) in next_insn_same_func()
77 if (func == func->cfunc) in next_insn_same_func()
81 return find_insn(file, func->cfunc->sec, func->cfunc->offset); in next_insn_same_func()
113 #define func_for_each_insn(file, func, insn) \ argument
114 for (insn = find_insn(file, func->sec, func->offset); \
197 static bool is_rust_noreturn(const struct symbol *func) in is_rust_noreturn() argument
202 if (strncmp(func->name, "_R", 2)) in is_rust_noreturn()
211 return str_ends_with(func->name, "_4core5sliceSp15copy_from_slice17len_mismatch_fail") || in is_rust_noreturn()
[all …]
Dobjtool.c115 void objtool_pv_add(struct objtool_file *f, int idx, struct symbol *func) in objtool_pv_add() argument
129 if (!strcmp(func->name, "_paravirt_nop") || in objtool_pv_add()
130 !strcmp(func->name, "_paravirt_ident_64")) in objtool_pv_add()
134 if (!list_empty(&func->pv_target)) in objtool_pv_add()
137 list_add(&func->pv_target, &f->pv_ops[idx].targets); in objtool_pv_add()
/tools/testing/ktest/examples/bootconfigs/
Dboottrace.bconf12 fields = "unsigned long func", "u64 lat"
14 keys = func.sym,lat
20 keys = func;
24 keys = func
28 trace = initcall_latency, func, $lat
/tools/lib/api/
Ddebug-internal.h7 #define __pr(func, fmt, ...) \ argument
9 if ((func)) \
10 (func)("libapi: " fmt, ##__VA_ARGS__); \
/tools/net/sunrpc/xdrgen/
Dxdrgen68 definitions_parser.set_defaults(func=definitions.subcmd)
93 declarations_parser.set_defaults(func=declarations.subcmd)
97 linter_parser.set_defaults(func=lint.subcmd)
122 source_parser.set_defaults(func=source.subcmd)
125 return args.func(args)
/tools/testing/memblock/tests/
Dcommon.h153 static inline void run_top_down(int (*func)()) in run_top_down() argument
157 func(); in run_top_down()
161 static inline void run_bottom_up(int (*func)()) in run_bottom_up() argument
165 func(); in run_bottom_up()
/tools/testing/selftests/cgroup/
Dwith_stress.sh67 func=stress_$OPTARG
68 if [ "x$(type -t $func)" != "xfunction" ] ; then
72 stresses+=($func)
/tools/testing/selftests/timens/
Dlog.h10 #define pr_p(func, fmt, ...) func(fmt ": %m", ##__VA_ARGS__) argument
/tools/testing/selftests/filesystems/overlayfs/
Dlog.h10 #define pr_p(func, fmt, ...) func(fmt ": %m", ##__VA_ARGS__) argument
/tools/testing/shared/linux/
Dradix-tree.h11 void (*func)(struct rcu_head *head)) in trace_call_rcu()
16 call_rcu(head, func); in trace_call_rcu()
/tools/bpf/bpftool/Documentation/
Dbpftool-perf.rst56 pid 21711 fd 5: prog_id 5 kprobe func __x64_sys_write offset 0
57 pid 21765 fd 5: prog_id 7 kretprobe func __x64_sys_nanosleep offset 0
66 [{"pid":21711,"fd":5,"prog_id":5,"fd_type":"kprobe","func":"__x64_sys_write","offset":0}, \
67 … {"pid":21765,"fd":5,"prog_id":7,"fd_type":"kretprobe","func":"__x64_sys_nanosleep","offset":0}, \
/tools/testing/selftests/openat2/
Dhelpers.h66 #define E_func(func, ...) \ argument
69 if (func(__VA_ARGS__) < 0) \
71 __FILE__, __LINE__, #func, errno); \

12345