Home
last modified time | relevance | path

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

12345

/tools/testing/selftests/vDSO/
A Dvdso_call.h12 #define LOADARGS_1(fn, __arg1) do { \ argument
13 _r0 = fn; \
17 #define LOADARGS_2(fn, __arg1, __arg2) do { \ argument
18 _r0 = fn; \
23 #define LOADARGS_3(fn, __arg1, __arg2, __arg3) do { \ argument
24 _r0 = fn; \
30 #define LOADARGS_5(fn, __arg1, __arg2, __arg3, __arg4, __arg5) do { \ argument
31 _r0 = fn; \
39 #define VDSO_CALL(fn, nr, args...) ({ \ argument
49 LOADARGS_##nr(fn, args); \
[all …]
/tools/include/linux/
A Dinit.h29 #define __setup_param(str, unique_id, fn, early) \ argument
35 { __setup_str_##unique_id, fn, early }
37 #define __setup(str, fn) \ argument
38 __setup_param(str, fn, fn, 0)
40 #define early_param(str, fn) \ argument
41 __setup_param(str, fn, fn, 1)
/tools/perf/util/
A Dsrccode.c28 char *fn; member
84 zfree(&sf->fn); in free_srcfile()
89 static struct srcfile *find_srcfile(char *fn) in find_srcfile() argument
95 size_t hval = str_hash(fn) % SRC_HTAB_SZ; in find_srcfile()
98 if (!strcmp(fn, h->fn)) { in find_srcfile()
113 fd = open(fn, O_RDONLY); in find_srcfile()
115 pr_debug("cannot open source file %s\n", fn); in find_srcfile()
123 h->fn = strdup(fn); in find_srcfile()
124 if (!h->fn) in find_srcfile()
149 zfree(&h->fn); in find_srcfile()
[all …]
A Dperf_api_probe.c14 static int perf_do_probe_api(setup_probe_fn_t fn, struct perf_cpu cpu, const char *str) in perf_do_probe_api() argument
44 fn(evsel); in perf_do_probe_api()
60 static bool perf_probe_api(setup_probe_fn_t fn) in perf_probe_api() argument
74 ret = perf_do_probe_api(fn, cpu, try[i++]); in perf_probe_api()
A Dconfig.h31 int perf_config(config_fn_t fn, void *);
35 config_fn_t fn, void *data);
A Dconfig.c162 static int get_value(config_fn_t fn, void *data, char *name, unsigned int len) in get_value() argument
190 return fn(name, value, data); in get_value()
249 static int perf_parse_file(config_fn_t fn, void *data) in perf_parse_file() argument
306 if (get_value(fn, data, var, baselen+1) < 0) { in perf_parse_file()
525 static int perf_config_from_file(config_fn_t fn, const char *filename, void *data) in perf_config_from_file() argument
536 ret = perf_parse_file(fn, data); in perf_config_from_file()
816 config_fn_t fn, void *data) in perf_config_set() argument
829 ret = fn(key, value, data); in perf_config_set()
845 int perf_config(config_fn_t fn, void *data) in perf_config() argument
850 return perf_config_set(config_set, fn, data); in perf_config()
/tools/perf/bench/
A Dmem-functions.c63 } fn; member
235 fn(dst, src, size); in memcpy_prefault()
241 memcpy_t fn = r->fn.memcpy; in do_memcpy_cycles() local
248 fn(dst, src, size); in do_memcpy_cycles()
257 memcpy_t fn = r->fn.memcpy; in do_memcpy_gettimeofday() local
307 memset_t fn = r->fn.memset; in do_memset_cycles() local
314 fn(dst, -1, size); in do_memset_cycles()
318 fn(dst, i, size); in do_memset_cycles()
327 memset_t fn = r->fn.memset; in do_memset_gettimeofday() local
334 fn(dst, -1, size); in do_memset_gettimeofday()
[all …]
A Dmem-memcpy-arch.h5 #define MEMCPY_FN(fn, name, desc) \ argument
6 void *fn(void *, const void *, size_t);
A Dmem-memset-arch.h5 #define MEMSET_FN(fn, name, desc) \ argument
6 void *fn(void *, int, size_t);
/tools/lib/bpf/
A Dbpf_core_read.h341 #define ___apply(fn, n) ___concat(fn, n) argument
403 #define ___rd_first(fn, src, a) ___read(fn, &__t, ___type(src), src, a); argument
406 #define ___rd_p1(fn, ...) const void *__t; ___rd_first(fn, __VA_ARGS__) argument
407 #define ___rd_p2(fn, ...) ___rd_p1(fn, ___nolast(__VA_ARGS__)) ___rd_last(fn, __VA_ARGS__) argument
408 #define ___rd_p3(fn, ...) ___rd_p2(fn, ___nolast(__VA_ARGS__)) ___rd_last(fn, __VA_ARGS__) argument
409 #define ___rd_p4(fn, ...) ___rd_p3(fn, ___nolast(__VA_ARGS__)) ___rd_last(fn, __VA_ARGS__) argument
410 #define ___rd_p5(fn, ...) ___rd_p4(fn, ___nolast(__VA_ARGS__)) ___rd_last(fn, __VA_ARGS__) argument
411 #define ___rd_p6(fn, ...) ___rd_p5(fn, ___nolast(__VA_ARGS__)) ___rd_last(fn, __VA_ARGS__) argument
412 #define ___rd_p7(fn, ...) ___rd_p6(fn, ___nolast(__VA_ARGS__)) ___rd_last(fn, __VA_ARGS__) argument
413 #define ___rd_p8(fn, ...) ___rd_p7(fn, ___nolast(__VA_ARGS__)) ___rd_last(fn, __VA_ARGS__) argument
[all …]
/tools/perf/pmu-events/
A Dpmu-events.h95 pmu_event_iter_fn fn,
107 pmu_event_iter_fn fn,
112 int pmu_metrics_table__for_each_metric(const struct pmu_metrics_table *table, pmu_metric_iter_fn fn,
124 pmu_metric_iter_fn fn,
131 int pmu_for_each_core_event(pmu_event_iter_fn fn, void *data);
132 int pmu_for_each_core_metric(pmu_metric_iter_fn fn, void *data);
136 int pmu_for_each_sys_event(pmu_event_iter_fn fn, void *data);
137 int pmu_for_each_sys_metric(pmu_metric_iter_fn fn, void *data);
A Dempty-pmu-events.c409 ret = fn(&pe, table, data); in pmu_events_table__for_each_event_pmu()
454 return fn ? fn(&pe, table, data) : 0; in pmu_events_table__find_event_pmu()
461 pmu_event_iter_fn fn, in pmu_events_table__for_each_event() argument
482 pmu_event_iter_fn fn, in pmu_events_table__find_event() argument
529 ret = fn(&pm, table, data); in pmu_metrics_table__for_each_metric_pmu()
574 return fn ? fn(&pm, table, data) : 0; in pmu_metrics_table__find_metric_pmu()
580 pmu_metric_iter_fn fn, in pmu_metrics_table__for_each_metric() argument
596 pmu_metric_iter_fn fn, in pmu_metrics_table__find_metric() argument
740 int pmu_for_each_core_event(pmu_event_iter_fn fn, void *data) in pmu_for_each_core_event() argument
778 int pmu_for_each_sys_event(pmu_event_iter_fn fn, void *data) in pmu_for_each_sys_event() argument
[all …]
/tools/usb/usbip/src/
A Dusbip.c36 int (*fn)(int argc, char *argv[]); member
44 .fn = usbip_help,
50 .fn = usbip_version,
56 .fn = usbip_attach,
62 .fn = usbip_detach,
68 .fn = usbip_list,
74 .fn = usbip_bind,
80 .fn = usbip_unbind,
86 .fn = usbip_port_show,
130 return cmd->fn(argc, argv); in run_command()
/tools/testing/selftests/rcutorture/bin/
A Dkvm-get-cpus-script.sh72 function dumpcpustate( i, fn)
77 if (fn != "" && gotcpus()) {
78 print "curnode = " curnode ";" > fn;
81 print "curcpu[" i "] = " curcpu[i] ";" >> fn;
84 if (fn != "")
85 print "# No CPU state to dump." > fn;
/tools/testing/selftests/mm/
A Dcow.c180 child_fn fn, bool xfail) in do_test_cow_in_parent() argument
806 fn(mem, pagesize, false); in do_run_with_base_page()
982 fn(mem, size, false); in do_run_with_thp()
1077 fn(mem, hugetlbsize, true); in run_with_hugetlb()
1084 test_fn fn; member
1560 fn(mem, smem, pagesize); in run_with_zeropage()
1628 fn(mem, smem, pmdsize); in run_with_huge_zeropage()
1674 fn(mem, smem, pagesize); in run_with_memfd()
1730 fn(mem, smem, pagesize); in run_with_tmpfile()
1784 fn(mem, smem, hugetlbsize); in run_with_memfd_hugetlb()
[all …]
A Dgup_longterm.c302 static void run_with_memfd(test_fn fn, const char *desc) in run_with_memfd() argument
315 fn(fd, pagesize); in run_with_memfd()
319 static void run_with_tmpfile(test_fn fn, const char *desc) in run_with_tmpfile() argument
337 fn(fd, pagesize); in run_with_tmpfile()
360 fn(fd, pagesize); in run_with_local_tmpfile()
384 fn(fd, hugetlbsize); in run_with_memfd_hugetlb()
390 test_fn fn; member
494 run_with_memfd(test_case->fn, test_case->desc); in run_test_case()
495 run_with_tmpfile(test_case->fn, test_case->desc); in run_test_case()
496 run_with_local_tmpfile(test_case->fn, test_case->desc); in run_test_case()
[all …]
/tools/testing/selftests/kvm/
A Dguest_print_test.c41 #define TYPE(fn, ext, fmt_t, T) TYPE_##ext, argument
49 #define BUILD_TYPE_STRINGS_AND_HELPER(fn, ext, fmt_t, T) \ argument
52 static void fn(struct kvm_vcpu *vcpu, T a, T b) \
64 #define TYPE(fn, ext, fmt_t, T) \ argument
65 BUILD_TYPE_STRINGS_AND_HELPER(fn, ext, fmt_t, T)
73 #define TYPE(fn, ext, fmt_t, T) \ in guest_code() argument
/tools/perf/
A Dbuiltin-bench.c36 bench_fn_t fn; member
212 static int run_bench(const char *coll_name, const char *bench_name, bench_fn_t fn, in run_bench() argument
229 ret = fn(argc, argv); in run_bench()
250 if (!bench->fn) in run_collection()
255 run_bench(coll->name, bench->name, bench->fn, 1, argv); in run_collection()
330 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1); in cmd_bench()
A Dbuiltin-data.c16 data_cmd_fn_t fn; member
119 return cmd->fn(argc, argv); in cmd_data()
/tools/lib/perf/
A Dcore.c34 void libperf_init(libperf_print_fn_t fn) in libperf_init() argument
37 __libperf_pr = fn; in libperf_init()
/tools/testing/selftests/alsa/
A Dconf.c242 char fn[128]; in assign_card_configs() local
246 snprintf(fn, sizeof(fn), "%s/class/sound/card%d", SYSFS_ROOT, card); in assign_card_configs()
247 if (access(fn, R_OK) == 0) in assign_card_configs()
248 assign_card_config(card, fn); in assign_card_configs()
305 const char *fn = "conf.d"; in conf_load() local
309 n = scandir(fn, &namelist, filename_filter, alphasort); in conf_load()
313 size_t sl = strlen(fn) + strlen(namelist[j]->d_name) + 2; in conf_load()
317 sprintf(filename, "%s/%s", fn, namelist[j]->d_name); in conf_load()
/tools/testing/selftests/riscv/hwprobe/
A Dcbo.c22 #define MK_CBO(fn) le32_bswap((uint32_t)(fn) << 20 | 10 << 15 | 2 << 12 | 0 << 7 | 15) argument
39 #define cbo_insn(base, fn) \ argument
45 : : "r" (base), "i" (fn), "i" (MK_CBO(fn)) : "a0", "a1", "memory"); \
/tools/perf/tests/shell/coresight/thread_loop/
A Dthread_loop.c47 static pthread_t new_thr(void *(*fn) (void *arg), void *arg) in new_thr()
53 pthread_create(&t, &attr, fn, arg); in new_thr()
/tools/perf/tests/shell/coresight/memcpy_thread/
A Dmemcpy_thread.c32 static pthread_t new_thr(void *(*fn) (void *arg), void *arg) in new_thr()
38 pthread_create(&t, &attr, fn, arg); in new_thr()
/tools/perf/tests/shell/coresight/unroll_loop_thread/
A Dunroll_loop_thread.c41 static pthread_t new_thr(void *(*fn) (void *arg), void *arg) in new_thr()
47 pthread_create(&t, &attr, fn, arg); in new_thr()

Completed in 37 milliseconds

12345