Home
last modified time | relevance | path

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

123

/tools/perf/util/
A 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()
70 qsort(main_cmds->names, main_cmds->cnt, in help_unknown_cmd()
71 sizeof(main_cmds->names), cmdname_compare); in help_unknown_cmd()
77 main_cmds->names[i]->len = in help_unknown_cmd()
78 levenshtein(cmd, main_cmds->names[i]->name, in help_unknown_cmd()
84 qsort(main_cmds->names, main_cmds->cnt, in help_unknown_cmd()
87 best_similarity = main_cmds->names[0]->len; in help_unknown_cmd()
[all …]
/tools/lib/subcmd/
A Dhelp.c36 zfree(&cmds->names[i]); in clean_cmdnames()
37 zfree(&cmds->names); in clean_cmdnames()
57 if (!strcmp(cmds->names[i]->name, cmds->names[i-1]->name)) in uniq()
61 if (cmds->names[i]) { in uniq()
65 cmds->names[j++] = cmds->names[i]; in uniq()
70 cmds->names[j++] = NULL; in uniq()
80 cmp = strcmp(cmds->names[ci]->name, excludes->names[ei]->name); in exclude_cmds()
86 cmds->names[cj++] = cmds->names[ci]; in exclude_cmds()
90 zfree(&cmds->names[ci]); in exclude_cmds()
99 cmds->names[cj++] = cmds->names[ci]; in exclude_cmds()
[all …]
A Dhelp.h14 } **names; member
/tools/perf/ui/browsers/
A 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, NULL); in res_sample_browse()
61 zfree(&names[i]); in res_sample_browse()
62 free(names); in res_sample_browse()
A Dscripts.c29 const char **names; member
54 c->names[c->index] = name; in add_script_option()
72 c->names[c->index] = strdup(var + 7); in scripts_config()
73 if (!c->names[c->index]) in scripts_config()
261 char *buf, *paths[SCRIPT_MAX_NO], *names[SCRIPT_MAX_NO]; in list_scripts() local
268 .names = (const char **)names, in list_scripts()
294 names[i] = buf + (i - max_std) * (SCRIPT_NAMELEN + SCRIPT_FULLPATH_LEN); in list_scripts()
295 paths[i] = names[i] + SCRIPT_NAMELEN; in list_scripts()
298 num = find_scripts(names + max_std, paths + max_std, SCRIPT_MAX_NO - max_std, in list_scripts()
302 choice = ui__popup_menu(num + max_std, (char * const *)names, NULL); in list_scripts()
/tools/testing/selftests/lsm/
A Dcommon.c72 char *names = calloc(sysconf(_SC_PAGESIZE), 1); in attr_lsm_count() local
75 if (!names) in attr_lsm_count()
78 if (read_sysfs_lsms(names, sysconf(_SC_PAGESIZE))) in attr_lsm_count()
81 if (strstr(names, "selinux")) in attr_lsm_count()
83 if (strstr(names, "smack")) in attr_lsm_count()
85 if (strstr(names, "apparmor")) in attr_lsm_count()
/tools/testing/selftests/net/
A Dhwtstamp_config.c22 lookup_value(const char **names, int size, const char *name) in lookup_value() argument
27 if (names[value] && strcasecmp(names[value], name) == 0) in lookup_value()
34 lookup_name(const char **names, int size, int value) in lookup_name() argument
36 return (value >= 0 && value < size) ? names[value] : NULL; in lookup_name()
39 static void list_names(FILE *f, const char **names, int size) in list_names() argument
44 if (names[value]) in list_names()
45 fprintf(f, " %s\n", names[value]); in list_names()
/tools/perf/tests/
A Devsel-roundtrip-name.c52 static int perf_evsel__name_array_test(const char *const names[], int nr_names) in perf_evsel__name_array_test() argument
65 err = parse_event(evlist, names[i]); in perf_evsel__name_array_test()
68 names[i], err); in perf_evsel__name_array_test()
74 if (!evsel__name_is(evsel, names[i])) { in perf_evsel__name_array_test()
75 pr_debug("%s != %s\n", evsel__name(evsel), names[i]); in perf_evsel__name_array_test()
/tools/perf/Documentation/
A 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.
A 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.
A Dperf-check.txt38 The feature names/macros are case-insensitive.
45 Supported feature names/macro:
A Dperf-annotate.txt127 Remove first N entries from source file path names in executables
138 Demangle symbol names to human readable form. It's enabled by default,
142 Demangle kernel symbol names to human readable form (for C++ kernels).
/tools/usb/usbip/libsrc/
A DMakefile.am7 libusbip_la_SOURCES := names.c names.h usbip_host_driver.c usbip_host_driver.h \
/tools/testing/selftests/bpf/benchs/
A Dbench_htab_mem.c158 const char **names; in htab_mem_setup() local
187 names = ctx.uc->progs; in htab_mem_setup()
188 while (*names) { in htab_mem_setup()
191 prog = bpf_object__find_program_by_name(ctx.skel->obj, *names); in htab_mem_setup()
193 fprintf(stderr, "no such program %s\n", *names); in htab_mem_setup()
197 names++; in htab_mem_setup()
/tools/testing/selftests/bpf/
A Djit_disasm_helpers.c31 char names[MAX_LOCAL_LABELS][LOCAL_LABEL_LEN]; member
55 return labels->names[i]; in lookup_symbol()
133 snprintf(labels.names[i], sizeof(labels.names[i]), "L%d", i % MAX_LOCAL_LABELS); in disasm_one_func()
148 label = labels.names[label_pc - labels.pcs]; in disasm_one_func()
A Dtest_bpftool_synctypes.py187 def make_enum_map(self, names, enum_prefix): argument
200 for name in names:
404 names = self.get_enum('bpf_map_type')
405 return self.make_enum_map(names, 'BPF_MAP_TYPE_')
409 names = self.get_enum('bpf_attach_type')
410 self.attach_types = self.make_enum_map(names, 'BPF_')
/tools/testing/selftests/vDSO/
A Dvdso_test_getcpu.c26 const char **name = (const char **)&names[VDSO_NAMES]; in main()
A Dvdso_test_gettimeofday.c27 const char **name = (const char **)&names[VDSO_NAMES]; in main()
A Dvdso_config.h73 static const char *names[2][7] = { variable
/tools/usb/usbip/
A D.gitignore25 libsrc/libusbip_la-names.lo
/tools/power/pm-graph/config/
A Dcgskip.txt8 # adding or removing function symbol names.
/tools/firewire/
A Ddecode-fcp.c52 struct avc_enum *names; member
/tools/virtio/virtio-trace/
A 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/bpf/bpftool/Documentation/
A Dbpftool-feature.rst48 to the names of the macros: this can be used to avoid conflicts on macro
49 names when including the output of this command as a header file.
/tools/usb/ffs-aio-example/simple/device_app/
A Daio_simple.c161 static const char *const names[] = { in display_event() local
178 printf("Event %s\n", names[event->type]); in display_event()

Completed in 27 milliseconds

123