blob: 5184959e0615b7e79e38058cac0594a55a3b6fc4 [file] [log] [blame]
Ingo Molnar8ad8db32009-05-26 11:10:09 +02001
2#include "../perf.h"
3#include "util.h"
4#include "parse-options.h"
5#include "parse-events.h"
6#include "exec_cmd.h"
Arnaldo Carvalho de Meloa0055ae2009-06-01 17:50:19 -03007#include "string.h"
Ingo Molnar8ad8db32009-05-26 11:10:09 +02008
Ingo Molnar8326f442009-06-05 20:22:46 +02009extern char *strcasestr(const char *haystack, const char *needle);
10
Ingo Molnara21ca2c2009-06-06 09:58:57 +020011int nr_counters;
Ingo Molnar8ad8db32009-05-26 11:10:09 +020012
Ingo Molnara21ca2c2009-06-06 09:58:57 +020013struct perf_counter_attr attrs[MAX_COUNTERS];
Ingo Molnar8ad8db32009-05-26 11:10:09 +020014
15struct event_symbol {
Paul Mackerras9cffa8d2009-06-19 22:21:42 +100016 u8 type;
17 u64 config;
Ingo Molnara21ca2c2009-06-06 09:58:57 +020018 char *symbol;
Jaswinder Singh Rajput74d5b582009-06-22 16:44:28 +053019 char *alias;
Ingo Molnar8ad8db32009-05-26 11:10:09 +020020};
21
Jaswinder Singh Rajput51e26842009-06-22 16:43:14 +053022#define CHW(x) .type = PERF_TYPE_HARDWARE, .config = PERF_COUNT_HW_##x
23#define CSW(x) .type = PERF_TYPE_SOFTWARE, .config = PERF_COUNT_SW_##x
Ingo Molnar8ad8db32009-05-26 11:10:09 +020024
Ingo Molnara21ca2c2009-06-06 09:58:57 +020025static struct event_symbol event_symbols[] = {
Jaswinder Singh Rajput74d5b582009-06-22 16:44:28 +053026 { CHW(CPU_CYCLES), "cpu-cycles", "cycles" },
27 { CHW(INSTRUCTIONS), "instructions", "" },
28 { CHW(CACHE_REFERENCES), "cache-references", "" },
29 { CHW(CACHE_MISSES), "cache-misses", "" },
30 { CHW(BRANCH_INSTRUCTIONS), "branch-instructions", "branches" },
31 { CHW(BRANCH_MISSES), "branch-misses", "" },
32 { CHW(BUS_CYCLES), "bus-cycles", "" },
Ingo Molnara21ca2c2009-06-06 09:58:57 +020033
Jaswinder Singh Rajput74d5b582009-06-22 16:44:28 +053034 { CSW(CPU_CLOCK), "cpu-clock", "" },
35 { CSW(TASK_CLOCK), "task-clock", "" },
Jaswinder Singh Rajputc0c22db2009-06-22 20:47:26 +053036 { CSW(PAGE_FAULTS), "page-faults", "faults" },
Jaswinder Singh Rajput74d5b582009-06-22 16:44:28 +053037 { CSW(PAGE_FAULTS_MIN), "minor-faults", "" },
38 { CSW(PAGE_FAULTS_MAJ), "major-faults", "" },
39 { CSW(CONTEXT_SWITCHES), "context-switches", "cs" },
40 { CSW(CPU_MIGRATIONS), "cpu-migrations", "migrations" },
Ingo Molnar8ad8db32009-05-26 11:10:09 +020041};
42
Ingo Molnar52425192009-05-26 09:17:18 +020043#define __PERF_COUNTER_FIELD(config, name) \
44 ((config & PERF_COUNTER_##name##_MASK) >> PERF_COUNTER_##name##_SHIFT)
45
46#define PERF_COUNTER_RAW(config) __PERF_COUNTER_FIELD(config, RAW)
47#define PERF_COUNTER_CONFIG(config) __PERF_COUNTER_FIELD(config, CONFIG)
48#define PERF_COUNTER_TYPE(config) __PERF_COUNTER_FIELD(config, TYPE)
49#define PERF_COUNTER_ID(config) __PERF_COUNTER_FIELD(config, EVENT)
50
51static char *hw_event_names[] = {
Ingo Molnar8faf3b52009-06-06 13:58:12 +020052 "cycles",
Ingo Molnar52425192009-05-26 09:17:18 +020053 "instructions",
Ingo Molnar8faf3b52009-06-06 13:58:12 +020054 "cache-references",
55 "cache-misses",
Ingo Molnar52425192009-05-26 09:17:18 +020056 "branches",
Ingo Molnar8faf3b52009-06-06 13:58:12 +020057 "branch-misses",
58 "bus-cycles",
Ingo Molnar52425192009-05-26 09:17:18 +020059};
60
61static char *sw_event_names[] = {
Ingo Molnar44175b62009-06-13 13:35:00 +020062 "cpu-clock-msecs",
63 "task-clock-msecs",
Ingo Molnar8faf3b52009-06-06 13:58:12 +020064 "page-faults",
65 "context-switches",
66 "CPU-migrations",
67 "minor-faults",
68 "major-faults",
Ingo Molnar52425192009-05-26 09:17:18 +020069};
70
Ingo Molnar8326f442009-06-05 20:22:46 +020071#define MAX_ALIASES 8
72
Jaswinder Singh Rajputc0c22db2009-06-22 20:47:26 +053073static char *hw_cache[][MAX_ALIASES] = {
Jaswinder Singh Rajput44183512009-06-25 21:27:42 +053074 { "L1-d$", "l1-d", "l1d", "L1-data", },
75 { "L1-i$", "l1-i", "l1i", "L1-instruction", },
Jaswinder Singh Rajpute5c59542009-06-25 18:25:22 +053076 { "LLC", "L2" },
77 { "dTLB", "d-tlb", "Data-TLB", },
78 { "iTLB", "i-tlb", "Instruction-TLB", },
79 { "branch", "branches", "bpu", "btb", "bpc", },
Ingo Molnar8326f442009-06-05 20:22:46 +020080};
81
Jaswinder Singh Rajputc0c22db2009-06-22 20:47:26 +053082static char *hw_cache_op[][MAX_ALIASES] = {
Jaswinder Singh Rajpute5c59542009-06-25 18:25:22 +053083 { "load", "loads", "read", },
84 { "store", "stores", "write", },
85 { "prefetch", "prefetches", "speculative-read", "speculative-load", },
Ingo Molnar8326f442009-06-05 20:22:46 +020086};
87
Jaswinder Singh Rajputc0c22db2009-06-22 20:47:26 +053088static char *hw_cache_result[][MAX_ALIASES] = {
Jaswinder Singh Rajpute5c59542009-06-25 18:25:22 +053089 { "refs", "Reference", "ops", "access", },
90 { "misses", "miss", },
Ingo Molnar8326f442009-06-05 20:22:46 +020091};
92
Jaswinder Singh Rajput06813f62009-06-25 17:16:07 +053093#define C(x) PERF_COUNT_HW_CACHE_##x
94#define CACHE_READ (1 << C(OP_READ))
95#define CACHE_WRITE (1 << C(OP_WRITE))
96#define CACHE_PREFETCH (1 << C(OP_PREFETCH))
97#define COP(x) (1 << x)
98
99/*
100 * cache operartion stat
101 * L1I : Read and prefetch only
102 * ITLB and BPU : Read-only
103 */
104static unsigned long hw_cache_stat[C(MAX)] = {
105 [C(L1D)] = (CACHE_READ | CACHE_WRITE | CACHE_PREFETCH),
106 [C(L1I)] = (CACHE_READ | CACHE_PREFETCH),
107 [C(LL)] = (CACHE_READ | CACHE_WRITE | CACHE_PREFETCH),
108 [C(DTLB)] = (CACHE_READ | CACHE_WRITE | CACHE_PREFETCH),
109 [C(ITLB)] = (CACHE_READ),
110 [C(BPU)] = (CACHE_READ),
111};
112
113static int is_cache_op_valid(u8 cache_type, u8 cache_op)
114{
115 if (hw_cache_stat[cache_type] & COP(cache_op))
116 return 1; /* valid */
117 else
118 return 0; /* invalid */
119}
120
Jaswinder Singh Rajpute5c59542009-06-25 18:25:22 +0530121static char *event_cache_name(u8 cache_type, u8 cache_op, u8 cache_result)
122{
123 static char name[50];
124
125 if (cache_result) {
126 sprintf(name, "%s-%s-%s", hw_cache[cache_type][0],
127 hw_cache_op[cache_op][0],
128 hw_cache_result[cache_result][0]);
129 } else {
130 sprintf(name, "%s-%s", hw_cache[cache_type][0],
131 hw_cache_op[cache_op][1]);
132 }
133
134 return name;
135}
136
Ingo Molnara21ca2c2009-06-06 09:58:57 +0200137char *event_name(int counter)
Ingo Molnar52425192009-05-26 09:17:18 +0200138{
Paul Mackerras9cffa8d2009-06-19 22:21:42 +1000139 u64 config = attrs[counter].config;
Ingo Molnara21ca2c2009-06-06 09:58:57 +0200140 int type = attrs[counter].type;
Ingo Molnar52425192009-05-26 09:17:18 +0200141 static char buf[32];
142
Ingo Molnara21ca2c2009-06-06 09:58:57 +0200143 if (attrs[counter].type == PERF_TYPE_RAW) {
144 sprintf(buf, "raw 0x%llx", config);
Ingo Molnar52425192009-05-26 09:17:18 +0200145 return buf;
146 }
147
148 switch (type) {
149 case PERF_TYPE_HARDWARE:
Peter Zijlstraf4dbfa82009-06-11 14:06:28 +0200150 if (config < PERF_COUNT_HW_MAX)
Ingo Molnara21ca2c2009-06-06 09:58:57 +0200151 return hw_event_names[config];
Ingo Molnar52425192009-05-26 09:17:18 +0200152 return "unknown-hardware";
153
Ingo Molnar8326f442009-06-05 20:22:46 +0200154 case PERF_TYPE_HW_CACHE: {
Paul Mackerras9cffa8d2009-06-19 22:21:42 +1000155 u8 cache_type, cache_op, cache_result;
Ingo Molnar8326f442009-06-05 20:22:46 +0200156
157 cache_type = (config >> 0) & 0xff;
158 if (cache_type > PERF_COUNT_HW_CACHE_MAX)
159 return "unknown-ext-hardware-cache-type";
160
161 cache_op = (config >> 8) & 0xff;
Ingo Molnar8faf3b52009-06-06 13:58:12 +0200162 if (cache_op > PERF_COUNT_HW_CACHE_OP_MAX)
163 return "unknown-ext-hardware-cache-op";
Ingo Molnar8326f442009-06-05 20:22:46 +0200164
165 cache_result = (config >> 16) & 0xff;
Ingo Molnar8faf3b52009-06-06 13:58:12 +0200166 if (cache_result > PERF_COUNT_HW_CACHE_RESULT_MAX)
167 return "unknown-ext-hardware-cache-result";
Ingo Molnar8326f442009-06-05 20:22:46 +0200168
Jaswinder Singh Rajput06813f62009-06-25 17:16:07 +0530169 if (!is_cache_op_valid(cache_type, cache_op))
170 return "invalid-cache";
Ingo Molnar8326f442009-06-05 20:22:46 +0200171
Jaswinder Singh Rajpute5c59542009-06-25 18:25:22 +0530172 return event_cache_name(cache_type, cache_op, cache_result);
Ingo Molnar8326f442009-06-05 20:22:46 +0200173 }
174
Ingo Molnar52425192009-05-26 09:17:18 +0200175 case PERF_TYPE_SOFTWARE:
Peter Zijlstraf4dbfa82009-06-11 14:06:28 +0200176 if (config < PERF_COUNT_SW_MAX)
Ingo Molnara21ca2c2009-06-06 09:58:57 +0200177 return sw_event_names[config];
Ingo Molnar52425192009-05-26 09:17:18 +0200178 return "unknown-software";
179
180 default:
181 break;
182 }
183
184 return "unknown";
185}
186
Paul Mackerras61c45982009-07-01 13:04:34 +1000187static int parse_aliases(const char **str, char *names[][MAX_ALIASES], int size)
Ingo Molnar8326f442009-06-05 20:22:46 +0200188{
189 int i, j;
Paul Mackerras61c45982009-07-01 13:04:34 +1000190 int n, longest = -1;
Ingo Molnar8326f442009-06-05 20:22:46 +0200191
192 for (i = 0; i < size; i++) {
Paul Mackerras61c45982009-07-01 13:04:34 +1000193 for (j = 0; j < MAX_ALIASES && names[i][j]; j++) {
194 n = strlen(names[i][j]);
195 if (n > longest && !strncasecmp(*str, names[i][j], n))
196 longest = n;
197 }
198 if (longest > 0) {
199 *str += longest;
200 return i;
Ingo Molnar8326f442009-06-05 20:22:46 +0200201 }
202 }
203
Ingo Molnar89536452009-06-06 21:04:17 +0200204 return -1;
Ingo Molnar8326f442009-06-05 20:22:46 +0200205}
206
Jaswinder Singh Rajputc0c22db2009-06-22 20:47:26 +0530207static int
Paul Mackerras61c45982009-07-01 13:04:34 +1000208parse_generic_hw_event(const char **str, struct perf_counter_attr *attr)
Ingo Molnar8326f442009-06-05 20:22:46 +0200209{
Paul Mackerras61c45982009-07-01 13:04:34 +1000210 const char *s = *str;
211 int cache_type = -1, cache_op = -1, cache_result = -1;
Ingo Molnar8326f442009-06-05 20:22:46 +0200212
Paul Mackerras61c45982009-07-01 13:04:34 +1000213 cache_type = parse_aliases(&s, hw_cache, PERF_COUNT_HW_CACHE_MAX);
Ingo Molnar8326f442009-06-05 20:22:46 +0200214 /*
215 * No fallback - if we cannot get a clear cache type
216 * then bail out:
217 */
218 if (cache_type == -1)
Paul Mackerras61c45982009-07-01 13:04:34 +1000219 return 0;
Ingo Molnar8326f442009-06-05 20:22:46 +0200220
Paul Mackerras61c45982009-07-01 13:04:34 +1000221 while ((cache_op == -1 || cache_result == -1) && *s == '-') {
222 ++s;
223
224 if (cache_op == -1) {
225 cache_op = parse_aliases(&s, hw_cache_op,
226 PERF_COUNT_HW_CACHE_OP_MAX);
227 if (cache_op >= 0) {
228 if (!is_cache_op_valid(cache_type, cache_op))
229 return 0;
230 continue;
231 }
232 }
233
234 if (cache_result == -1) {
235 cache_result = parse_aliases(&s, hw_cache_result,
236 PERF_COUNT_HW_CACHE_RESULT_MAX);
237 if (cache_result >= 0)
238 continue;
239 }
240
241 /*
242 * Can't parse this as a cache op or result, so back up
243 * to the '-'.
244 */
245 --s;
246 break;
247 }
248
Ingo Molnar8326f442009-06-05 20:22:46 +0200249 /*
250 * Fall back to reads:
251 */
Ingo Molnar89536452009-06-06 21:04:17 +0200252 if (cache_op == -1)
253 cache_op = PERF_COUNT_HW_CACHE_OP_READ;
Ingo Molnar8326f442009-06-05 20:22:46 +0200254
Ingo Molnar8326f442009-06-05 20:22:46 +0200255 /*
256 * Fall back to accesses:
257 */
258 if (cache_result == -1)
259 cache_result = PERF_COUNT_HW_CACHE_RESULT_ACCESS;
260
261 attr->config = cache_type | (cache_op << 8) | (cache_result << 16);
262 attr->type = PERF_TYPE_HW_CACHE;
263
Paul Mackerras61c45982009-07-01 13:04:34 +1000264 *str = s;
265 return 1;
Ingo Molnar8326f442009-06-05 20:22:46 +0200266}
267
Jaswinder Singh Rajput74d5b582009-06-22 16:44:28 +0530268static int check_events(const char *str, unsigned int i)
269{
Paul Mackerras61c45982009-07-01 13:04:34 +1000270 int n;
Jaswinder Singh Rajput74d5b582009-06-22 16:44:28 +0530271
Paul Mackerras61c45982009-07-01 13:04:34 +1000272 n = strlen(event_symbols[i].symbol);
273 if (!strncmp(str, event_symbols[i].symbol, n))
274 return n;
275
276 n = strlen(event_symbols[i].alias);
277 if (n)
278 if (!strncmp(str, event_symbols[i].alias, n))
279 return n;
280 return 0;
281}
282
283static int
284parse_symbolic_event(const char **strp, struct perf_counter_attr *attr)
285{
286 const char *str = *strp;
287 unsigned int i;
288 int n;
289
290 for (i = 0; i < ARRAY_SIZE(event_symbols); i++) {
291 n = check_events(str, i);
292 if (n > 0) {
293 attr->type = event_symbols[i].type;
294 attr->config = event_symbols[i].config;
295 *strp = str + n;
Jaswinder Singh Rajput74d5b582009-06-22 16:44:28 +0530296 return 1;
Paul Mackerras61c45982009-07-01 13:04:34 +1000297 }
298 }
299 return 0;
300}
301
302static int parse_raw_event(const char **strp, struct perf_counter_attr *attr)
303{
304 const char *str = *strp;
305 u64 config;
306 int n;
307
308 if (*str != 'r')
309 return 0;
310 n = hex2u64(str + 1, &config);
311 if (n > 0) {
312 *strp = str + n + 1;
313 attr->type = PERF_TYPE_RAW;
314 attr->config = config;
315 return 1;
316 }
317 return 0;
318}
319
320static int
321parse_numeric_event(const char **strp, struct perf_counter_attr *attr)
322{
323 const char *str = *strp;
324 char *endp;
325 unsigned long type;
326 u64 config;
327
328 type = strtoul(str, &endp, 0);
329 if (endp > str && type < PERF_TYPE_MAX && *endp == ':') {
330 str = endp + 1;
331 config = strtoul(str, &endp, 0);
332 if (endp > str) {
333 attr->type = type;
334 attr->config = config;
335 *strp = endp;
336 return 1;
337 }
338 }
339 return 0;
340}
341
342static int
343parse_event_modifier(const char **strp, struct perf_counter_attr *attr)
344{
345 const char *str = *strp;
346 int eu = 1, ek = 1, eh = 1;
347
348 if (*str++ != ':')
349 return 0;
350 while (*str) {
351 if (*str == 'u')
352 eu = 0;
353 else if (*str == 'k')
354 ek = 0;
355 else if (*str == 'h')
356 eh = 0;
357 else
358 break;
359 ++str;
360 }
361 if (str >= *strp + 2) {
362 *strp = str;
363 attr->exclude_user = eu;
364 attr->exclude_kernel = ek;
365 attr->exclude_hv = eh;
366 return 1;
367 }
Jaswinder Singh Rajput74d5b582009-06-22 16:44:28 +0530368 return 0;
369}
370
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200371/*
372 * Each event can have multiple symbolic names.
373 * Symbolic names are (almost) exactly matched.
374 */
Paul Mackerras61c45982009-07-01 13:04:34 +1000375static int parse_event_symbols(const char **str, struct perf_counter_attr *attr)
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200376{
Paul Mackerras61c45982009-07-01 13:04:34 +1000377 if (!(parse_raw_event(str, attr) ||
378 parse_numeric_event(str, attr) ||
379 parse_symbolic_event(str, attr) ||
380 parse_generic_hw_event(str, attr)))
Ingo Molnara21ca2c2009-06-06 09:58:57 +0200381 return 0;
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200382
Paul Mackerras61c45982009-07-01 13:04:34 +1000383 parse_event_modifier(str, attr);
Ingo Molnara21ca2c2009-06-06 09:58:57 +0200384
Paul Mackerras61c45982009-07-01 13:04:34 +1000385 return 1;
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200386}
387
Ingo Molnarf37a2912009-07-01 12:37:06 +0200388int parse_events(const struct option *opt __used, const char *str, int unset __used)
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200389{
Ingo Molnara21ca2c2009-06-06 09:58:57 +0200390 struct perf_counter_attr attr;
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200391
Paul Mackerras61c45982009-07-01 13:04:34 +1000392 for (;;) {
393 if (nr_counters == MAX_COUNTERS)
394 return -1;
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200395
Paul Mackerras61c45982009-07-01 13:04:34 +1000396 memset(&attr, 0, sizeof(attr));
397 if (!parse_event_symbols(&str, &attr))
398 return -1;
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200399
Paul Mackerras61c45982009-07-01 13:04:34 +1000400 if (!(*str == 0 || *str == ',' || isspace(*str)))
401 return -1;
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200402
Paul Mackerras61c45982009-07-01 13:04:34 +1000403 attrs[nr_counters] = attr;
404 nr_counters++;
405
406 if (*str == 0)
407 break;
408 if (*str == ',')
409 ++str;
410 while (isspace(*str))
411 ++str;
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200412 }
413
414 return 0;
415}
416
Thomas Gleixner86847b62009-06-06 12:24:17 +0200417static const char * const event_type_descriptors[] = {
418 "",
419 "Hardware event",
420 "Software event",
421 "Tracepoint event",
422 "Hardware cache event",
423};
424
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200425/*
Thomas Gleixner86847b62009-06-06 12:24:17 +0200426 * Print the help text for the event symbols:
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200427 */
Thomas Gleixner86847b62009-06-06 12:24:17 +0200428void print_events(void)
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200429{
Thomas Gleixner86847b62009-06-06 12:24:17 +0200430 struct event_symbol *syms = event_symbols;
Jaswinder Singh Rajput73c24cb2009-07-01 18:36:18 +0530431 unsigned int i, type, op, prev_type = -1;
Jaswinder Singh Rajput74d5b582009-06-22 16:44:28 +0530432 char name[40];
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200433
Thomas Gleixner86847b62009-06-06 12:24:17 +0200434 fprintf(stderr, "\n");
435 fprintf(stderr, "List of pre-defined events (to be used in -e):\n");
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200436
Thomas Gleixner86847b62009-06-06 12:24:17 +0200437 for (i = 0; i < ARRAY_SIZE(event_symbols); i++, syms++) {
438 type = syms->type + 1;
439 if (type > ARRAY_SIZE(event_type_descriptors))
440 type = 0;
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200441
Thomas Gleixner86847b62009-06-06 12:24:17 +0200442 if (type != prev_type)
443 fprintf(stderr, "\n");
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200444
Jaswinder Singh Rajput74d5b582009-06-22 16:44:28 +0530445 if (strlen(syms->alias))
446 sprintf(name, "%s OR %s", syms->symbol, syms->alias);
447 else
448 strcpy(name, syms->symbol);
449 fprintf(stderr, " %-40s [%s]\n", name,
Thomas Gleixner86847b62009-06-06 12:24:17 +0200450 event_type_descriptors[type]);
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200451
Thomas Gleixner86847b62009-06-06 12:24:17 +0200452 prev_type = type;
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200453 }
454
Thomas Gleixner86847b62009-06-06 12:24:17 +0200455 fprintf(stderr, "\n");
Jaswinder Singh Rajput73c24cb2009-07-01 18:36:18 +0530456 for (type = 0; type < PERF_COUNT_HW_CACHE_MAX; type++) {
457 for (op = 0; op < PERF_COUNT_HW_CACHE_OP_MAX; op++) {
458 /* skip invalid cache type */
459 if (!is_cache_op_valid(type, op))
460 continue;
461
462 for (i = 0; i < PERF_COUNT_HW_CACHE_RESULT_MAX; i++) {
463 fprintf(stderr, " %-40s [%s]\n",
464 event_cache_name(type, op, i),
465 event_type_descriptors[4]);
466 }
467 }
468 }
469
470 fprintf(stderr, "\n");
Jaswinder Singh Rajput74d5b582009-06-22 16:44:28 +0530471 fprintf(stderr, " %-40s [raw hardware event descriptor]\n",
Thomas Gleixner86847b62009-06-06 12:24:17 +0200472 "rNNN");
473 fprintf(stderr, "\n");
474
475 exit(129);
Ingo Molnar8ad8db32009-05-26 11:10:09 +0200476}