Lines Matching refs:str

50 	const char *str;  member
53 {.str = "comm", .field = PERF_OUTPUT_COMM},
54 {.str = "tid", .field = PERF_OUTPUT_TID},
55 {.str = "pid", .field = PERF_OUTPUT_PID},
56 {.str = "time", .field = PERF_OUTPUT_TIME},
57 {.str = "cpu", .field = PERF_OUTPUT_CPU},
58 {.str = "event", .field = PERF_OUTPUT_EVNAME},
59 {.str = "trace", .field = PERF_OUTPUT_TRACE},
60 {.str = "ip", .field = PERF_OUTPUT_IP},
61 {.str = "sym", .field = PERF_OUTPUT_SYM},
62 {.str = "dso", .field = PERF_OUTPUT_DSO},
63 {.str = "addr", .field = PERF_OUTPUT_ADDR},
64 {.str = "symoff", .field = PERF_OUTPUT_SYMOFFSET},
65 {.str = "srcline", .field = PERF_OUTPUT_SRCLINE},
66 {.str = "period", .field = PERF_OUTPUT_PERIOD},
136 const char *str = ""; in output_field2str() local
140 str = all_output_options[i].str; in output_field2str()
144 return str; in output_field2str()
895 const char *str, int unset __maybe_unused) in parse_scriptname() argument
901 if (strcmp(str, "lang") == 0) { in parse_scriptname()
906 script = strchr(str, ':'); in parse_scriptname()
908 len = script - str; in parse_scriptname()
913 strncpy(spec, str, len); in parse_scriptname()
922 script = str; in parse_scriptname()
947 char *str = strdup(arg); in parse_output_fields() local
950 if (!str) in parse_output_fields()
957 tok = strchr(str, ':'); in parse_output_fields()
961 if (!strcmp(str, "hw")) in parse_output_fields()
963 else if (!strcmp(str, "sw")) in parse_output_fields()
965 else if (!strcmp(str, "trace")) in parse_output_fields()
967 else if (!strcmp(str, "raw")) in parse_output_fields()
984 tok = str; in parse_output_fields()
985 if (strlen(str) == 0) { in parse_output_fields()
1005 if (strcmp(tok, all_output_options[i].str) == 0) in parse_output_fields()
1021 all_output_options[i].str, event_type(j)); in parse_output_fields()
1028 all_output_options[i].str, event_type(type)); in parse_output_fields()
1047 free(str); in parse_output_fields()
1147 static const char *ends_with(const char *str, const char *suffix) in ends_with() argument
1150 const char *p = str; in ends_with()
1152 if (strlen(str) > suffix_len) { in ends_with()
1153 p = str + strlen(str) - suffix_len; in ends_with()
1204 char *script_root, *str; in get_script_root() local
1210 str = (char *)ends_with(script_root, suffix); in get_script_root()
1211 if (!str) { in get_script_root()
1216 *str = '\0'; in get_script_root()