| /tools/perf/util/ |
| A D | help-unknown-cmd.c | 43 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 D | help.c | 36 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 D | help.h | 14 } **names; member
|
| /tools/perf/ui/browsers/ |
| A D | res_sample.c | 34 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 D | scripts.c | 29 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 D | common.c | 72 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 D | hwtstamp_config.c | 22 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 D | evsel-roundtrip-name.c | 52 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 D | perf-evlist.txt | 6 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 D | db-export.txt | 23 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 D | perf-check.txt | 38 The feature names/macros are case-insensitive. 45 Supported feature names/macro:
|
| A D | perf-annotate.txt | 127 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 D | Makefile.am | 7 libusbip_la_SOURCES := names.c names.h usbip_host_driver.c usbip_host_driver.h \
|
| /tools/testing/selftests/bpf/benchs/ |
| A D | bench_htab_mem.c | 158 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 D | jit_disasm_helpers.c | 31 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 D | test_bpftool_synctypes.py | 187 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 D | vdso_test_getcpu.c | 26 const char **name = (const char **)&names[VDSO_NAMES]; in main()
|
| A D | vdso_test_gettimeofday.c | 27 const char **name = (const char **)&names[VDSO_NAMES]; in main()
|
| A D | vdso_config.h | 73 static const char *names[2][7] = { variable
|
| /tools/usb/usbip/ |
| A D | .gitignore | 25 libsrc/libusbip_la-names.lo
|
| /tools/power/pm-graph/config/ |
| A D | cgskip.txt | 8 # adding or removing function symbol names.
|
| /tools/firewire/ |
| A D | decode-fcp.c | 52 struct avc_enum *names; member
|
| /tools/virtio/virtio-trace/ |
| A D | README | 48 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 D | bpftool-feature.rst | 48 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 D | aio_simple.c | 161 static const char *const names[] = { in display_event() local 178 printf("Event %s\n", names[event->type]); in display_event()
|