Home
last modified time | relevance | path

Searched refs:sep (Results 1 – 25 of 29) sorted by relevance

12

/tools/perf/ui/tui/
Dutil.c85 const char *sep = strchr(t, '\n'); in ui_browser__input_window() local
87 if (sep == NULL) in ui_browser__input_window()
88 sep = strchr(t, '\0'); in ui_browser__input_window()
89 len = sep - t; in ui_browser__input_window()
93 if (*sep == '\0') in ui_browser__input_window()
95 t = sep + 1; in ui_browser__input_window()
175 const char *sep = strchr(t, '\n'); in __ui__info_window() local
178 if (sep == NULL) in __ui__info_window()
179 sep = strchr(t, '\0'); in __ui__info_window()
180 len = sep - t; in __ui__info_window()
[all …]
/tools/perf/util/
Dintlist.c92 char *sep; in intlist__parse_list() local
96 long value = strtol(s, &sep, 10); in intlist__parse_list()
98 if (*sep != ',' && *sep != '\0') in intlist__parse_list()
103 s = sep + 1; in intlist__parse_list()
104 } while (*sep != '\0'); in intlist__parse_list()
Dstrlist.c144 char *sep; in strlist__parse_list() local
147 while ((sep = strchr(s, ',')) != NULL) { in strlist__parse_list()
148 *sep = '\0'; in strlist__parse_list()
150 *sep = ','; in strlist__parse_list()
153 s = sep + 1; in strlist__parse_list()
Dpfm.c39 const char *sep; in parse_libpfm_events_option() local
54 sep = p ? str + (p - p_orig - 1) : ""; in parse_libpfm_events_option()
55 if (*sep == '{') { in parse_libpfm_events_option()
99 if (*sep == '}') { in parse_libpfm_events_option()
Dsrcline.c386 char *sep; in filename_split() local
388 sep = strchr(filename, '\n'); in filename_split()
389 if (sep) in filename_split()
390 *sep = '\0'; in filename_split()
395 sep = strchr(filename, ':'); in filename_split()
396 if (sep) { in filename_split()
397 *sep++ = '\0'; in filename_split()
398 *line_nr = strtoul(sep, NULL, 0); in filename_split()
Dsymbol.c624 char *sep, *endptr; in modules__parse() local
642 sep = strrchr(line, 'x'); in modules__parse()
643 if (sep == NULL) in modules__parse()
646 hex2u64(sep + 1, &start); in modules__parse()
648 sep = strchr(line, ' '); in modules__parse()
649 if (sep == NULL) in modules__parse()
652 *sep = '\0'; in modules__parse()
656 size = strtoul(sep + 1, &endptr, 0); in modules__parse()
Dbpf-loader.c245 char *sep, *line; in parse_prog_config_kvpair() local
255 while ((sep = strchr(line, ';'))) { in parse_prog_config_kvpair()
258 *sep = '\0'; in parse_prog_config_kvpair()
272 line = sep + 1; in parse_prog_config_kvpair()
Dsort.c66 char *sep = bf; in repsep_snprintf() local
69 sep = strchr(sep, *symbol_conf.field_sep); in repsep_snprintf()
70 if (sep == NULL) in repsep_snprintf()
72 *sep = '.'; in repsep_snprintf()
Dhist.h252 const char *sep; member
/tools/bpf/bpftool/
Djson_writer.c25 char sep; /* either nul or comma */ member
49 if (self->sep != '\0') in jsonw_eor()
50 putc(self->sep, self->out); in jsonw_eor()
51 self->sep = ','; in jsonw_eor()
97 self->sep = '\0'; in jsonw_new()
122 self->sep = '\0'; in jsonw_reset()
131 self->sep = '\0'; in jsonw_begin()
139 if (self->sep != '\0') in jsonw_end()
142 self->sep = ','; in jsonw_end()
151 self->sep = '\0'; in jsonw_name()
Dfeature.c298 char *sep; in read_next_kernel_config_option() local
304 sep = strchr(buf, '='); in read_next_kernel_config_option()
305 if (!sep) in read_next_kernel_config_option()
312 *sep = '\0'; in read_next_kernel_config_option()
313 if (!sep[1]) in read_next_kernel_config_option()
316 *value = sep + 1; in read_next_kernel_config_option()
Dmain.c180 void fprint_hex(FILE *f, void *arg, unsigned int n, const char *sep) in fprint_hex() argument
195 pfx = sep; in fprint_hex()
Dmain.h103 void fprint_hex(FILE *f, void *arg, unsigned int n, const char *sep);
/tools/perf/ui/stdio/
Dhist.c332 const char *sep = symbol_conf.field_sep ?: ";"; in __callchain__fprintf_folded() local
347 ret += fprintf(fp, "%s%s", first ? "" : sep, in __callchain__fprintf_folded()
417 const char *sep = symbol_conf.field_sep; in __hist_entry__snprintf() local
434 if (!sep || !first) { in __hist_entry__snprintf()
435 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in __hist_entry__snprintf()
462 const char *sep = symbol_conf.field_sep; in hist_entry__hierarchy_fprintf() local
484 if (!sep || !first) { in hist_entry__hierarchy_fprintf()
485 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in hist_entry__hierarchy_fprintf()
499 if (!sep) in hist_entry__hierarchy_fprintf()
523 printed += fprintf(fp, "%s%s", sep ?: " ", skip_spaces(buf)); in hist_entry__hierarchy_fprintf()
[all …]
/tools/perf/scripts/python/
Dstackcollapse.py113 sep = "-"
115 comm = comm + sep + str(param_dict['sample']['pid'])
116 sep = "/"
118 comm = comm + sep + str(param_dict['sample']['tid'])
Dexported-sql-viewer.py3873 sep = ""
3879 text += sep + ToCSValue(val)
3880 sep = ","
3888 text += pad + sep + val
3890 sep = " "
3893 sep = ""
3900 sep = ""
3902 text += sep + ToCSValue(str(i.data()))
3903 sep = ","
3910 text += pad + sep + val
[all …]
Dexport-to-sqlite.py98 print(datetime.datetime.today(), *args, sep=' ', **kw_args)
/tools/perf/arch/s390/util/
Dheader.c111 char *sep = strchr(cp, '='); in get_cpuid() local
114 sizeof(version) - vssize, "%s", sep + 1); in get_cpuid()
118 char *sep = strchr(cp, '='); in get_cpuid() local
121 sizeof(authorization) - atsize, "%s", sep + 1); in get_cpuid()
/tools/perf/
Dbuiltin-list.c66 char *sep, *s; in cmd_list() local
92 else if ((sep = strchr(argv[i], ':')) != NULL) { in cmd_list()
95 sep_idx = sep - argv[i]; in cmd_list()
Dbuiltin-trace.c595 char *tok = bf, *sep, *end; in strarray__strtoul_flags() local
602 sep = memchr(tok, '|', size); in strarray__strtoul_flags()
603 if (sep != NULL) { in strarray__strtoul_flags()
604 size -= sep - tok + 1; in strarray__strtoul_flags()
606 end = sep - 1; in strarray__strtoul_flags()
627 if (sep == NULL) in strarray__strtoul_flags()
629 tok = sep + 1; in strarray__strtoul_flags()
4578 char *sep = NULL, *lists[2] = { NULL, NULL, }; local
4593 if ((sep = strchr(s, ',')) != NULL)
4594 *sep = '\0';
[all …]
/tools/lib/perf/
Dcpumap.c106 char sep; in perf_cpu_map__read() local
108 sep = 0; in perf_cpu_map__read()
111 n = fscanf(file, "%u%c", &cpu, &sep); in perf_cpu_map__read()
140 if (n == 2 && sep == '-') in perf_cpu_map__read()
144 if (n == 1 || sep == '\n') in perf_cpu_map__read()
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/
Dmodify_srcu.awk98 function update_fieldsep(sep, p) {
100 sep_tmp = sep;
134 last_fs = sep;
/tools/power/cpupower/utils/helpers/
Dbitmask.c105 static const char *nexttoken(const char *q, int sep) in nexttoken() argument
108 q = strchr(q, sep); in nexttoken()
/tools/testing/selftests/net/
Dnettest.c1436 char *str, *dev, *sep; in convert_addr() local
1479 sep = strchr(str, '/'); in convert_addr()
1480 if (sep) { in convert_addr()
1481 *sep = '\0'; in convert_addr()
1482 sep++; in convert_addr()
1483 if (str_to_uint(sep, 1, pfx_len_max, in convert_addr()
/tools/perf/pmu-events/
Djevents.c103 static void addfield(char *map, char **dst, const char *sep, in addfield() argument
106 unsigned int len = strlen(a) + 1 + strlen(sep); in addfield()
121 strcat(*dst, sep); in addfield()

12