perf evlist: Make {pause,resume} internal helpers
authorWang Nan <[email protected]>
Thu, 14 Jul 2016 08:34:44 +0000 (08:34 +0000)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 15 Jul 2016 20:27:50 +0000 (17:27 -0300)
There's no user of these two function outside evlist.c. Remove them from
public namespace.

Signed-off-by: Wang Nan <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: He Kuang <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Nilay Vaish <[email protected]>
Cc: Zefan Li <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/evlist.c
tools/perf/util/evlist.h

index 93ab66415f517c49d92e0bc7e32bcbb4dd9f42ba..2a40b8e1def70655277ac0458ad0becc1bbd8877 100644 (file)
@@ -708,12 +708,12 @@ static int perf_evlist__set_paused(struct perf_evlist *evlist, bool value)
        return 0;
 }
 
-int perf_evlist__pause(struct perf_evlist *evlist)
+static int perf_evlist__pause(struct perf_evlist *evlist)
 {
        return perf_evlist__set_paused(evlist, true);
 }
 
-int perf_evlist__resume(struct perf_evlist *evlist)
+static int perf_evlist__resume(struct perf_evlist *evlist)
 {
        return perf_evlist__set_paused(evlist, false);
 }
index 20faaab1941c67c9f45a60bf0d27e47c70cac447..4fd034f22d2fc2c2bd6b1050a42447313b9207cb 100644 (file)
@@ -182,8 +182,6 @@ void perf_evlist__mmap_read_catchup(struct perf_evlist *evlist, int idx);
 
 void perf_evlist__mmap_consume(struct perf_evlist *evlist, int idx);
 
-int perf_evlist__pause(struct perf_evlist *evlist);
-int perf_evlist__resume(struct perf_evlist *evlist);
 int perf_evlist__open(struct perf_evlist *evlist);
 void perf_evlist__close(struct perf_evlist *evlist);