perf top: Allow asking for the maximum allowed sample rate
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 1 Mar 2018 17:25:56 +0000 (14:25 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 5 Mar 2018 12:58:44 +0000 (09:58 -0300)
commit7831bf236505bcb2a0a1255e7f3e902a0cb732d6
tree6c8a789c6b8de260f9e65b8a310714d834206d85
parenta9980a6dbb9efd154b032ad729c869784302f361
perf top: Allow asking for the maximum allowed sample rate

Add the handy '-F max' shortcut, just introduced to 'perf record', to
reading and using the kernel.perf_event_max_sample_rate value as the
user supplied sampling frequency:

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-hz04f296zccknnb5at06a6q0@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-top.txt
tools/perf/builtin-top.c