Home
last modified time | relevance | path

Searched refs:names (Results 1 – 25 of 51) sorted by relevance

123

/tools/perf/util/
Dhelp-unknown-cmd.c43 tmp = realloc(cmds->names, cmds->alloc * sizeof(*cmds->names)); in add_cmd_list()
46 cmds->names = tmp; in add_cmd_list()
49 cmds->names[cmds->cnt++] = old->names[i]; in add_cmd_list()
50 zfree(&old->names); in add_cmd_list()
71 qsort(main_cmds.names, main_cmds.cnt, in help_unknown_cmd()
72 sizeof(main_cmds.names), cmdname_compare); in help_unknown_cmd()
78 main_cmds.names[i]->len = in help_unknown_cmd()
79 levenshtein(cmd, main_cmds.names[i]->name, 0, 2, 1, 4); in help_unknown_cmd()
81 qsort(main_cmds.names, main_cmds.cnt, in help_unknown_cmd()
82 sizeof(*main_cmds.names), levenshtein_compare); in help_unknown_cmd()
[all …]
Dmap_groups.h19 struct rb_root names; member
Dmap.c577 maps->names = RB_ROOT; in maps__init()
610 struct rb_root *root = &maps->names; in __maps__purge_names()
933 struct rb_node **p = &maps->names.rb_node; in __maps__insert_name()
948 rb_insert_color(&map->rb_node_name, &maps->names); in __maps__insert_name()
965 rb_erase_init(&map->rb_node_name, &maps->names); in __maps__remove()
/tools/lib/subcmd/
Dhelp.c24 ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc); in add_cmdname()
25 cmds->names[cmds->cnt++] = ent; in add_cmdname()
33 zfree(&cmds->names[i]); in clean_cmdnames()
34 zfree(&cmds->names); in clean_cmdnames()
54 if (!strcmp(cmds->names[i]->name, cmds->names[i-1]->name)) in uniq()
55 zfree(&cmds->names[i - 1]); in uniq()
58 if (cmds->names[i]) { in uniq()
62 cmds->names[j++] = cmds->names[i]; in uniq()
67 cmds->names[j++] = NULL; in uniq()
77 cmp = strcmp(cmds->names[ci]->name, excludes->names[ei]->name); in exclude_cmds()
[all …]
Dhelp.h14 } **names; member
/tools/perf/ui/browsers/
Dres_sample.c34 char **names; in res_sample_browse() local
44 names = calloc(num_res, sizeof(char *)); in res_sample_browse()
45 if (!names) in res_sample_browse()
51 if (asprintf(&names[i], "%s: CPU %d tid %d", tbuf, in res_sample_browse()
54 zfree(&names[i]); in res_sample_browse()
55 free(names); in res_sample_browse()
59 choice = ui__popup_menu(num_res, names); in res_sample_browse()
61 zfree(&names[i]); in res_sample_browse()
62 free(names); in res_sample_browse()
Dscripts.c27 const char **names; member
52 c->names[c->index] = name; in add_script_option()
70 c->names[c->index] = strdup(var + 7); in scripts_config()
71 if (!c->names[c->index]) in scripts_config()
88 char *buf, *paths[SCRIPT_MAX_NO], *names[SCRIPT_MAX_NO]; in list_scripts() local
95 .names = (const char **)names, in list_scripts()
121 names[i] = buf + (i - max_std) * (SCRIPT_NAMELEN + SCRIPT_FULLPATH_LEN); in list_scripts()
122 paths[i] = names[i] + SCRIPT_NAMELEN; in list_scripts()
125 num = find_scripts(names + max_std, paths + max_std, SCRIPT_MAX_NO - max_std, in list_scripts()
129 choice = ui__popup_menu(num + max_std, (char * const *)names); in list_scripts()
/tools/perf/tests/
Devsel-roundtrip-name.c67 static int __perf_evsel__name_array_test(const char *names[], int nr_names) in __perf_evsel__name_array_test() argument
77 err = parse_events(evlist, names[i], NULL); in __perf_evsel__name_array_test()
80 names[i], err); in __perf_evsel__name_array_test()
87 if (strcmp(perf_evsel__name(evsel), names[evsel->idx])) { in __perf_evsel__name_array_test()
89 pr_debug("%s != %s\n", perf_evsel__name(evsel), names[evsel->idx]); in __perf_evsel__name_array_test()
98 #define perf_evsel__name_array_test(names) \ argument
99 __perf_evsel__name_array_test(names, ARRAY_SIZE(names))
/tools/testing/selftests/networking/timestamping/
Dhwtstamp_config.c20 lookup_value(const char **names, int size, const char *name) in lookup_value() argument
25 if (names[value] && strcasecmp(names[value], name) == 0) in lookup_value()
32 lookup_name(const char **names, int size, int value) in lookup_name() argument
34 return (value >= 0 && value < size) ? names[value] : NULL; in lookup_name()
37 static void list_names(FILE *f, const char **names, int size) in list_names() argument
42 if (names[value]) in list_names()
43 fprintf(f, " %s\n", names[value]); in list_names()
/tools/perf/Documentation/
Dperf-evlist.txt6 perf-evlist - List the event names in a perf.data file
15 This command displays the names of events sampled in a perf.data file.
40 Show tracepoint field names.
Ddb-export.txt23 used so long as the names and meanings (and to some extent data types) remain
27 so long as the new names are unique.
/tools/usb/usbip/libsrc/
DMakefile.am7 libusbip_la_SOURCES := names.c names.h usbip_host_driver.c usbip_host_driver.h \
/tools/bpf/bpftool/
Dcommon.c261 static const char * const names[] = { in get_fd_type_name() local
267 if (type < 0 || type >= ARRAY_SIZE(names) || !names[type]) in get_fd_type_name()
268 return names[BPF_OBJ_UNKNOWN]; in get_fd_type_name()
270 return names[type]; in get_fd_type_name()
Dbtf.c580 static const char * const names[] = { in build_btf_type_table() local
608 p_err("can't get next %s: %s%s", names[type], in build_btf_type_table()
629 p_err("can't get %s by id (%u): %s", names[type], id, in build_btf_type_table()
639 p_err("can't get %s info: %s", names[type], in build_btf_type_table()
/tools/usb/usbip/
D.gitignore24 libsrc/libusbip_la-names.lo
/tools/bpf/bpftool/Documentation/
Dbpftool-feature.rst40 as a prefix to the names of the macros: this can be used to
41 avoid conflicts on macro names when including the output of
/tools/power/pm-graph/config/
Dcgskip.txt8 # adding or removing function symbol names.
Dcustom-timeline-functions.cfg97 # enclose the arg names.
162 # enclose the arg names.
/tools/firewire/
Ddecode-fcp.c52 struct avc_enum *names; member
/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c143 static const char *const names[] = { in display_event() local
160 printf("Event %s\n", names[event->type]); in display_event()
/tools/virtio/virtio-trace/
DREADME48 For example, if a guest use three CPUs, the names are
82 Here, chardev names are restricted to trace-path-cpuX and agent-ctl-path. For
83 example, if a guest use three CPUs, chardev names should be trace-path-cpu0,
/tools/testing/selftests/kexec/
Dtest_kexec_file_load.sh85 line=$(getfattr -n security.ima -e hex --absolute-names $KERNEL_IMAGE 2>&1)
/tools/usb/ffs-aio-example/multibuff/device_app/
Daio_multibuff.c155 static const char *const names[] = { in display_event() local
172 printf("Event %s\n", names[event->type]); in display_event()
/tools/testing/selftests/media_tests/
Dregression_test.txt36 test with possible device names. If we start with /dev/media0 for example,
/tools/testing/selftests/filesystems/incfs/
Dincfs_test.c902 } names[] = { in iterate_directory() local
958 for (i = 0; i < sizeof(names) / sizeof(*names); ++i) in iterate_directory()
959 if (!strcmp(dirent->d_name, names[i].name)) { in iterate_directory()
960 if (names[i].root_only && !root) { in iterate_directory()
966 if (names[i].found) { in iterate_directory()
972 names[i].found = true; in iterate_directory()
981 for (i = 0; i < sizeof(names) / sizeof(*names); ++i) { in iterate_directory()
982 if (!names[i].found) in iterate_directory()
983 if (root || !names[i].root_only) { in iterate_directory()

123