Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core

Small fixes, also includes an important fix from Stephane for system
wide monitoring, problem introduced recently in perf/core, in the pid
list patches.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

+13 -2
-1
tools/perf/util/probe-event.c
··· 34 34 35 35 #include "util.h" 36 36 #include "event.h" 37 - #include "string.h" 38 37 #include "strlist.h" 39 38 #include "debug.h" 40 39 #include "cache.h"
+1 -1
tools/perf/util/thread_map.c
··· 229 229 if (!tid_str) { 230 230 threads = malloc(sizeof(*threads) + sizeof(pid_t)); 231 231 if (threads != NULL) { 232 - threads->map[1] = -1; 232 + threads->map[0] = -1; 233 233 threads->nr = 1; 234 234 } 235 235 return threads;
+12
tools/perf/util/trace-event-parse.c
··· 1423 1423 die("unknown op '%s'", arg->op.op); 1424 1424 } 1425 1425 break; 1426 + case '+': 1427 + left = arg_num_eval(arg->op.left); 1428 + right = arg_num_eval(arg->op.right); 1429 + val = left + right; 1430 + break; 1426 1431 default: 1427 1432 die("unknown op '%s'", arg->op.op); 1428 1433 } ··· 1488 1483 1489 1484 free_token(token); 1490 1485 type = process_arg(event, arg, &token); 1486 + 1487 + if (type == EVENT_OP) 1488 + type = process_op(event, arg, &token); 1489 + 1490 + if (type == EVENT_ERROR) 1491 + goto out_free; 1492 + 1491 1493 if (test_type_token(type, token, EVENT_DELIM, ",")) 1492 1494 goto out_free; 1493 1495