summaryrefslogtreecommitdiffstats
path: root/tools/perf/perf.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2014-02-03 12:44:41 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-02-18 13:34:46 +0100
commitbc5290869d0a7f7abbde76ac95a7f7b6f5d7bb7b (patch)
treed24f4d177fdd40dafa62ce171c5d1c9e5f26bb7f /tools/perf/perf.h
parentperf report: Remove some needless container_of usage (diff)
downloadlinux-bc5290869d0a7f7abbde76ac95a7f7b6f5d7bb7b.tar.xz
linux-bc5290869d0a7f7abbde76ac95a7f7b6f5d7bb7b.zip
perf tools: Put proper period for for samples without PERIOD sample_type
We use PERF_SAMPLE_PERIOD sample type only for frequency setup -F (default) option. The -c does not need store period, because it's always the same. In -c case the report code uses '1' as period. Fixing it to perf_event_attr::sample_period. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <andi@firstfloor.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1391427883-13443-1-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/perf.h')
0 files changed, 0 insertions, 0 deletions