perf evsel: Allow asking for max precise_ip in new_cycles()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 3 Jul 2017 16:05:43 +0000 (13:05 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Jul 2017 02:14:12 +0000 (23:14 -0300)
commit30269dc1a17df5117a2e267835863d4466c3569d
tree5889463259cd5778cc5f9a03e25133487eb08c3d
parentd2396999c998b4e0006aef247e154eff0ed3d8f9
perf evsel: Allow asking for max precise_ip in new_cycles()

There are cases where we want to leave attr.precise_ip as zero, such
as when using 'perf record --no-samples', where this would make the
kernel return -EINVAL.

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: http://lkml.kernel.org/n/tip-4zq1udecxa51gsapyfwej5fj@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evsel.c
tools/perf/util/evsel.h