diff options
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r-- | tools/perf/builtin-script.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 3c3f8d0e3064..d259e9aa3a71 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -130,6 +130,18 @@ static struct { | |||
130 | 130 | ||
131 | .invalid_fields = PERF_OUTPUT_TRACE, | 131 | .invalid_fields = PERF_OUTPUT_TRACE, |
132 | }, | 132 | }, |
133 | |||
134 | [PERF_TYPE_BREAKPOINT] = { | ||
135 | .user_set = false, | ||
136 | |||
137 | .fields = PERF_OUTPUT_COMM | PERF_OUTPUT_TID | | ||
138 | PERF_OUTPUT_CPU | PERF_OUTPUT_TIME | | ||
139 | PERF_OUTPUT_EVNAME | PERF_OUTPUT_IP | | ||
140 | PERF_OUTPUT_SYM | PERF_OUTPUT_DSO | | ||
141 | PERF_OUTPUT_PERIOD, | ||
142 | |||
143 | .invalid_fields = PERF_OUTPUT_TRACE, | ||
144 | }, | ||
133 | }; | 145 | }; |
134 | 146 | ||
135 | static bool output_set_by_user(void) | 147 | static bool output_set_by_user(void) |
@@ -1129,6 +1141,8 @@ static int parse_output_fields(const struct option *opt __maybe_unused, | |||
1129 | type = PERF_TYPE_TRACEPOINT; | 1141 | type = PERF_TYPE_TRACEPOINT; |
1130 | else if (!strcmp(str, "raw")) | 1142 | else if (!strcmp(str, "raw")) |
1131 | type = PERF_TYPE_RAW; | 1143 | type = PERF_TYPE_RAW; |
1144 | else if (!strcmp(str, "break")) | ||
1145 | type = PERF_TYPE_BREAKPOINT; | ||
1132 | else { | 1146 | else { |
1133 | fprintf(stderr, "Invalid event type in field string.\n"); | 1147 | fprintf(stderr, "Invalid event type in field string.\n"); |
1134 | rc = -EINVAL; | 1148 | rc = -EINVAL; |