]> git.baikalelectronics.ru Git - kernel.git/commit
perf auxtrace: Fix period type 'i' not working
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 17 Jul 2015 16:33:46 +0000 (19:33 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 6 Aug 2015 19:47:58 +0000 (16:47 -0300)
commitce49c7426e1f97ac1954065e0c1096a7dde5bc75
tree7cea11c55e9f7d9e253f4caba0bc1c79a269fe01
parentf2333f41e10f00cda03c673afd490c289618e7b2
perf auxtrace: Fix period type 'i' not working

PERF_ITRACE_PERIOD_INSTRUCTIONS is zero so it got overwritten by the
default period type.

Fix by checking if the period type was set rather than if the value was
zero when applying the default.

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