Home
last modified time | relevance | path

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

12

/tools/perf/util/
Dsmt.c23 char fn[256]; in smt_on() local
25 snprintf(fn, sizeof fn, in smt_on()
27 if (access(fn, F_OK) == -1) { in smt_on()
28 snprintf(fn, sizeof fn, in smt_on()
32 if (sysfs__read_str(fn, &str, &strlen) < 0) in smt_on()
Dsrccode.c27 char *fn; member
91 zfree(&sf->fn); in free_srcfile()
96 static struct srcfile *find_srcfile(char *fn) in find_srcfile() argument
102 unsigned hval = shash((unsigned char *)fn) % SRC_HTAB_SZ; in find_srcfile()
105 if (!strcmp(fn, h->fn)) { in find_srcfile()
121 fd = open(fn, O_RDONLY); in find_srcfile()
123 pr_debug("cannot open source file %s\n", fn); in find_srcfile()
131 h->fn = strdup(fn); in find_srcfile()
132 if (!h->fn) in find_srcfile()
140 pr_debug("cannot mmap source file %s\n", fn); in find_srcfile()
[all …]
Drecord.c18 static int perf_do_probe_api(setup_probe_fn_t fn, int cpu, const char *str) in perf_do_probe_api() argument
48 fn(evsel); in perf_do_probe_api()
64 static bool perf_probe_api(setup_probe_fn_t fn) in perf_probe_api() argument
77 ret = perf_do_probe_api(fn, cpu, try[i++]); in perf_probe_api()
Dconfig.c144 static int get_value(config_fn_t fn, void *data, char *name, unsigned int len) in get_value() argument
172 return fn(name, value, data); in get_value()
231 static int perf_parse_file(config_fn_t fn, void *data) in perf_parse_file() argument
288 if (get_value(fn, data, var, baselen+1) < 0) { in perf_parse_file()
468 static int perf_config_from_file(config_fn_t fn, const char *filename, void *data) in perf_config_from_file() argument
479 ret = perf_parse_file(fn, data); in perf_config_from_file()
725 int perf_config(config_fn_t fn, void *data) in perf_config() argument
741 ret = fn(key, value, data); in perf_config()
Dsrccode.h18 char *find_sourceline(char *fn, unsigned line, int *lenp);
Dconfig.h30 int perf_config(config_fn_t fn, void *);
/tools/usb/usbip/src/
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/perf/bench/
Dmem-functions.c63 } fn; member
229 memcpy_t fn = r->fn.memcpy; in do_memcpy_cycles() local
239 fn(dst, src, size); in do_memcpy_cycles()
243 fn(dst, src, size); in do_memcpy_cycles()
252 memcpy_t fn = r->fn.memcpy; in do_memcpy_gettimeofday() local
259 fn(dst, src, size); in do_memcpy_gettimeofday()
263 fn(dst, src, size); in do_memcpy_gettimeofday()
274 .fn.memcpy = memcpy },
277 # define MEMCPY_FN(_fn, _name, _desc) {.name = _name, .desc = _desc, .fn.memcpy = _fn},
306 memset_t fn = r->fn.memset; in do_memset_cycles() local
[all …]
Dmem-memcpy-arch.h5 #define MEMCPY_FN(fn, name, desc) \ argument
6 void *fn(void *, const void *, size_t);
Dmem-memset-arch.h5 #define MEMSET_FN(fn, name, desc) \ argument
6 void *fn(void *, int, size_t);
/tools/lib/traceevent/plugins/
Dplugin_mac80211.c57 #define SF(fn) tep_print_num_field(s, fn ":%d", event, fn, record, 0) argument
58 #define SFX(fn) tep_print_num_field(s, fn ":%#x", event, fn, record, 0) argument
/tools/perf/pmu-events/
Djson.c44 static char *mapfile(const char *fn, size_t *size) in mapfile() argument
50 int fd = open(fn, O_RDONLY); in mapfile()
52 if (fd < 0 && verbose > 0 && fn) { in mapfile()
53 pr_err("Error opening events file '%s': %s\n", fn, in mapfile()
83 jsmntok_t *parse_json(const char *fn, char **map, size_t *size, int *len) in parse_json() argument
90 *map = mapfile(fn, size); in parse_json()
102 pr_err("%s: json error %s\n", fn, jsmn_strerror(res)); in parse_json()
Djevents.h5 int json_events(const char *fn,
Djson.h7 jsmntok_t *parse_json(const char *fn, char **map, size_t *size, int *len);
/tools/perf/
Dbuiltin-bench.c34 bench_fn_t fn; member
170 static int run_bench(const char *coll_name, const char *bench_name, bench_fn_t fn, in run_bench() argument
187 ret = fn(argc, argv); in run_bench()
208 if (!bench->fn) in run_collection()
214 run_bench(coll->name, bench->name, bench->fn, 1, argv); in run_collection()
286 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1); in cmd_bench()
Dbuiltin-data.c17 data_cmd_fn_t fn; member
123 return cmd->fn(argc, argv); in cmd_data()
/tools/perf/lib/
Dcore.c33 void libperf_init(libperf_print_fn_t fn) in libperf_init() argument
36 __libperf_pr = fn; in libperf_init()
/tools/testing/selftests/cgroup/
Dcgroup_util.h34 int (*fn)(const char *cgroup, void *arg),
39 int (*fn)(const char *cgroup, void *arg),
Dcgroup_util.c292 int (*fn)(const char *cgroup, void *arg), in cg_run()
306 exit(fn(cgroup, arg)); in cg_run()
317 int (*fn)(const char *cgroup, void *arg), in cg_run_nowait()
329 exit(fn(cgroup, arg)); in cg_run_nowait()
/tools/objtool/
Dobjtool.c28 int (*fn)(int, const char **); member
96 ret = p->fn(argc, argv); in handle_internal_command()
/tools/perf/lib/include/perf/
Dcore.h20 LIBPERF_API void libperf_init(libperf_print_fn_t fn);
/tools/testing/selftests/powerpc/benchmarks/
Dcontext_switch.c73 static void start_thread_on(void *(*fn)(void *), void *arg, unsigned long cpu) in start_thread_on()
97 rc = pthread_create(&tid, &attr, fn, arg); in start_thread_on()
105 static void start_process_on(void *(*fn)(void *), void *arg, unsigned long cpu) in start_process_on()
127 fn(arg); in start_process_on()
410 static void (*start_fn)(void *(*fn)(void *), void *arg, unsigned long cpu); in main()
Dfork.c46 static void start_process_on(void *(*fn)(void *), void *arg, int cpu) in start_process_on()
61 fn(arg); in start_process_on()
/tools/perf/jvmti/
Dlibjvmti.c177 char fn[PATH_MAX]; in get_source_filename() local
198 copy_class_filename(class_sign, file_name, fn, PATH_MAX); in get_source_filename()
199 len = strlen(fn); in get_source_filename()
206 strcpy(*buffer, fn); in get_source_filename()
250 char fn[PATH_MAX]; in compiled_method_load_cb() local
305 copy_class_filename(class_sign, file_name, fn, PATH_MAX); in compiled_method_load_cb()
/tools/testing/selftests/
Dkselftest_harness.h173 .fn = &test_name, .termsig = _signal, \
313 .fn = &wrapper_##fixture_name##_##test_name, \
637 void (*fn)(struct __test_metadata *); member
712 t->fn(t); in __run_test()

12