]> git.baikalelectronics.ru Git - kernel.git/commit
perf intel-pt: Move branch filter logic
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 25 Sep 2015 13:15:44 +0000 (16:15 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 Sep 2015 19:58:27 +0000 (16:58 -0300)
commit0750315c0c108a9654ca456c9448b4f9c9a20a59
tree3c475ac468c7504056b2c24e60eb77218ce39f88
parent69381216c0eff6d04cfa3dc6d4449c0a7e8bc444
perf intel-pt: Move branch filter logic

intel_pt_synth_branch_sample() skips synthesizing if the branch does not
match the branch filter.  That logic was sitting in the middle of the
function but is more efficiently placed at the start of the function, so
move it.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1443186956-18718-14-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt.c