Home
last modified time | relevance | path

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

/tools/usb/usbip/src/
Dusbip.c48 int (*fn)(int argc, char *argv[]); member
56 .fn = usbip_help,
62 .fn = usbip_version,
68 .fn = usbip_attach,
74 .fn = usbip_detach,
80 .fn = usbip_list,
86 .fn = usbip_bind,
92 .fn = usbip_unbind,
98 .fn = usbip_port_show,
142 return cmd->fn(argc, argv); in run_command()
/tools/perf/bench/
Dmem-functions.c58 } fn; member
213 memcpy_t fn = r->fn.memcpy; in do_memcpy_cycles() local
222 fn(dst, src, size); in do_memcpy_cycles()
226 fn(dst, src, size); in do_memcpy_cycles()
237 memcpy_t fn = r->fn.memcpy; in do_memcpy_gettimeofday() local
247 fn(dst, src, size); in do_memcpy_gettimeofday()
251 fn(dst, src, size); in do_memcpy_gettimeofday()
265 .fn.memcpy = memcpy },
268 # define MEMCPY_FN(_fn, _name, _desc) {.name = _name, .desc = _desc, .fn.memcpy = _fn},
303 memset_t fn = r->fn.memset; in do_memset_cycles() local
[all …]
Dmem-memset-arch.h4 #define MEMSET_FN(fn, name, desc) \ argument
5 extern void *fn(void *, int, size_t);
Dmem-memcpy-arch.h4 #define MEMCPY_FN(fn, name, desc) \ argument
5 extern void *fn(void *, const void *, size_t);
/tools/lib/traceevent/
Dplugin_mac80211.c56 #define SF(fn) pevent_print_num_field(s, fn ":%d", event, fn, record, 0) argument
57 #define SFX(fn) pevent_print_num_field(s, fn ":%#x", event, fn, record, 0) argument
/tools/perf/util/
Dconfig.c128 static int get_value(config_fn_t fn, void *data, char *name, unsigned int len) in get_value() argument
156 return fn(name, value, data); in get_value()
215 static int perf_parse_file(config_fn_t fn, void *data) in perf_parse_file() argument
272 if (get_value(fn, data, var, baselen+1) < 0) { in perf_parse_file()
419 static int perf_config_from_file(config_fn_t fn, const char *filename, void *data) in perf_config_from_file() argument
430 ret = perf_parse_file(fn, data); in perf_config_from_file()
461 int perf_config(config_fn_t fn, void *data) in perf_config() argument
468 return perf_config_from_file(fn, config_exclusive_filename, data); in perf_config()
470 ret += perf_config_from_file(fn, perf_etc_perfconfig(), in perf_config()
498 ret += perf_config_from_file(fn, user_config, data); in perf_config()
Drecord.c11 static int perf_do_probe_api(setup_probe_fn_t fn, int cpu, const char *str) in perf_do_probe_api() argument
41 fn(evsel); in perf_do_probe_api()
57 static bool perf_probe_api(setup_probe_fn_t fn) in perf_probe_api() argument
70 ret = perf_do_probe_api(fn, cpu, try[i++]); in perf_probe_api()
Dcache.h24 extern int perf_config(config_fn_t fn, void *);
Dmachine.h226 int (*fn)(struct thread *thread, void *p),
229 int (*fn)(struct thread *thread, void *p),
Dsession.h99 bool (fn)(struct dso *dso, int parm), int parm);
Dauxtrace.c1150 struct perf_tool *tool, process_auxtrace_t fn, in __auxtrace_mmap__read() argument
1239 if (fn(tool, &ev, data1, len1, data2, len2)) in __auxtrace_mmap__read()
1259 struct perf_tool *tool, process_auxtrace_t fn) in auxtrace_mmap__read() argument
1261 return __auxtrace_mmap__read(mm, itr, tool, fn, false, 0); in auxtrace_mmap__read()
1266 struct perf_tool *tool, process_auxtrace_t fn, in auxtrace_mmap__read_snapshot() argument
1269 return __auxtrace_mmap__read(mm, itr, tool, fn, true, snapshot_size); in auxtrace_mmap__read_snapshot()
Dauxtrace.h385 struct perf_tool *tool, process_auxtrace_t fn);
389 struct perf_tool *tool, process_auxtrace_t fn,
Dmachine.c1899 int (*fn)(struct thread *thread, void *p), in machine__for_each_thread()
1908 rc = fn(thread, priv); in machine__for_each_thread()
1914 rc = fn(thread, priv); in machine__for_each_thread()
1922 int (*fn)(struct thread *thread, void *p), in machines__for_each_thread()
1928 rc = machine__for_each_thread(&machines->host, fn, priv); in machines__for_each_thread()
1935 rc = machine__for_each_thread(machine, fn, priv); in machines__for_each_thread()
/tools/perf/
Dbuiltin-bench.c33 bench_fn_t fn; member
157 static int run_bench(const char *coll_name, const char *bench_name, bench_fn_t fn, in run_bench() argument
174 ret = fn(argc, argv, prefix); in run_bench()
195 if (!bench->fn) in run_collection()
201 run_bench(coll->name, bench->name, bench->fn, 1, argv, NULL); in run_collection()
273 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1, prefix); in cmd_bench()
Dbuiltin-data.c13 data_cmd_fn_t fn; member
116 return cmd->fn(argc, argv, prefix); in cmd_data()
Dperf.c35 int (*fn)(int, const char **, const char *); member
386 status = p->fn(argc, argv, prefix); in run_builtin()
/tools/perf/tests/
Dbp_signal.c60 static int bp_event(void *fn, int setup_signal) in bp_event() argument
71 pe.bp_addr = (unsigned long) fn; in bp_event()
/tools/testing/selftests/seccomp/
Dtest_harness.h222 fn: &test_name, termsig: _signal }; \
284 fn: &wrapper_##fixture_name##_##test_name, \
397 void (*fn)(struct __test_metadata *); member
465 t->fn(t); in __run_test()
/tools/perf/ui/browsers/
Dhists.c1443 int (*fn)(struct hist_browser *browser, struct popup_action *act); member
1490 act->fn = do_annotate; in add_annotate_opt()
1532 act->fn = do_zoom_thread; in add_thread_opt()
1574 act->fn = do_zoom_dso; in add_dso_opt()
1597 act->fn = do_browse_map; in add_map_opt()
1640 act->fn = do_run_script; in add_script_opt()
1667 act->fn = do_switch_data; in add_switch_opt()
1685 act->fn = do_exit_browser; in add_exit_opt()
1720 act->fn = do_zoom_socket; in add_socket_opt()
2084 key = act->fn(browser, act); in perf_evsel__hists_browse()
/tools/perf/ui/
Dhist.c11 #define hpp__call_print_fn(hpp, fn, fmt, ...) \ argument
13 int __ret = fn(hpp, fmt, ##__VA_ARGS__); \