perf tools: Export perf_event_attr__set_max_precise_ip()
authorJiri Olsa <jolsa@kernel.org>
Mon, 5 Oct 2015 18:06:04 +0000 (20:06 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 5 Oct 2015 19:16:20 +0000 (16:16 -0300)
It'll be used in following patch.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1444068369-20978-5-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evlist.h

index e7e195d867ead1c268ad1cfa381d15c68a4430d0..d1392194a9a951bd3e1dd5c9b72fd383ede98439 100644 (file)
@@ -205,7 +205,7 @@ void perf_evlist__set_leader(struct perf_evlist *evlist)
        }
 }
 
-static void perf_event_attr__set_max_precise_ip(struct perf_event_attr *attr)
+void perf_event_attr__set_max_precise_ip(struct perf_event_attr *attr)
 {
        attr->precise_ip = 3;
 
index 66bc9d4c086931c5d07e02ea99db1bccc625782b..a459fe71b452e0b721d798cc73cc6287ae87dc1c 100644 (file)
@@ -290,4 +290,6 @@ void perf_evlist__to_front(struct perf_evlist *evlist,
 
 void perf_evlist__set_tracking_event(struct perf_evlist *evlist,
                                     struct perf_evsel *tracking_evsel);
+
+void perf_event_attr__set_max_precise_ip(struct perf_event_attr *attr);
 #endif /* __PERF_EVLIST_H */