Lines Matching refs:str

59 	const char *str;  member
62 {.str = "comm", .field = PERF_OUTPUT_COMM},
63 {.str = "tid", .field = PERF_OUTPUT_TID},
64 {.str = "pid", .field = PERF_OUTPUT_PID},
65 {.str = "time", .field = PERF_OUTPUT_TIME},
66 {.str = "cpu", .field = PERF_OUTPUT_CPU},
67 {.str = "event", .field = PERF_OUTPUT_EVNAME},
68 {.str = "trace", .field = PERF_OUTPUT_TRACE},
69 {.str = "ip", .field = PERF_OUTPUT_IP},
70 {.str = "sym", .field = PERF_OUTPUT_SYM},
71 {.str = "dso", .field = PERF_OUTPUT_DSO},
72 {.str = "addr", .field = PERF_OUTPUT_ADDR},
73 {.str = "symoff", .field = PERF_OUTPUT_SYMOFFSET},
74 {.str = "srcline", .field = PERF_OUTPUT_SRCLINE},
75 {.str = "period", .field = PERF_OUTPUT_PERIOD},
76 {.str = "iregs", .field = PERF_OUTPUT_IREGS},
77 {.str = "brstack", .field = PERF_OUTPUT_BRSTACK},
78 {.str = "brstacksym", .field = PERF_OUTPUT_BRSTACKSYM},
148 const char *str = ""; in output_field2str() local
152 str = all_output_options[i].str; in output_field2str()
156 return str; in output_field2str()
576 char str[33]; in print_sample_flags() local
581 str[pos++] = chars[i]; in print_sample_flags()
585 str[pos++] = '?'; in print_sample_flags()
587 str[pos] = 0; in print_sample_flags()
588 printf(" %-4s ", str); in print_sample_flags()
1085 const char *str, int unset __maybe_unused) in parse_scriptname() argument
1091 if (strcmp(str, "lang") == 0) { in parse_scriptname()
1096 script = strchr(str, ':'); in parse_scriptname()
1098 len = script - str; in parse_scriptname()
1103 strncpy(spec, str, len); in parse_scriptname()
1112 script = str; in parse_scriptname()
1137 char *str = strdup(arg); in parse_output_fields() local
1140 if (!str) in parse_output_fields()
1147 tok = strchr(str, ':'); in parse_output_fields()
1151 if (!strcmp(str, "hw")) in parse_output_fields()
1153 else if (!strcmp(str, "sw")) in parse_output_fields()
1155 else if (!strcmp(str, "trace")) in parse_output_fields()
1157 else if (!strcmp(str, "raw")) in parse_output_fields()
1174 tok = str; in parse_output_fields()
1175 if (strlen(str) == 0) { in parse_output_fields()
1194 if (strcmp(tok, all_output_options[i].str) == 0) in parse_output_fields()
1214 all_output_options[i].str, event_type(j)); in parse_output_fields()
1221 all_output_options[i].str, event_type(type)); in parse_output_fields()
1238 free(str); in parse_output_fields()
1338 static const char *ends_with(const char *str, const char *suffix) in ends_with() argument
1341 const char *p = str; in ends_with()
1343 if (strlen(str) > suffix_len) { in ends_with()
1344 p = str + strlen(str) - suffix_len; in ends_with()
1395 char *script_root, *str; in get_script_root() local
1401 str = (char *)ends_with(script_root, suffix); in get_script_root()
1402 if (!str) { in get_script_root()
1407 *str = '\0'; in get_script_root()