]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
perf/tool: Add conditional branch filter 'cond' to perf record
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>
Thu, 22 May 2014 07:20:08 +0000 (12:50 +0530)
committerIngo Molnar <mingo@kernel.org>
Thu, 5 Jun 2014 10:30:19 +0000 (12:30 +0200)
Adding perf record support for new branch stack filter criteria
PERF_SAMPLE_BRANCH_COND.

Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Reviewed-by: Stephane Eranian <eranian@google.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1400743210-32289-2-git-send-email-khandual@linux.vnet.ibm.com
Cc: mpe@ellerman.id.au
Cc: benh@kernel.crashing.org
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/perf/builtin-record.c

index ce2cfec5c76470c82e5a30839d9e230159488841..378b85b731a72fede65d41318107272649edfbe5 100644 (file)
@@ -548,6 +548,7 @@ static const struct branch_mode branch_modes[] = {
        BRANCH_OPT("abort_tx", PERF_SAMPLE_BRANCH_ABORT_TX),
        BRANCH_OPT("in_tx", PERF_SAMPLE_BRANCH_IN_TX),
        BRANCH_OPT("no_tx", PERF_SAMPLE_BRANCH_NO_TX),
+       BRANCH_OPT("cond", PERF_SAMPLE_BRANCH_COND),
        BRANCH_END
 };