Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf evlist: Make {pause,resume} internal helpers

There's no user of these two function outside evlist.c. Remove them from
public namespace.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: He Kuang <hekuang@huawei.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Nilay Vaish <nilayvaish@gmail.com>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1468485287-33422-13-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Wang Nan and committed by
Arnaldo Carvalho de Melo
f6cdff83 05737464

+2 -4
+2 -2
tools/perf/util/evlist.c
··· 708 708 return 0; 709 709 } 710 710 711 - int perf_evlist__pause(struct perf_evlist *evlist) 711 + static int perf_evlist__pause(struct perf_evlist *evlist) 712 712 { 713 713 return perf_evlist__set_paused(evlist, true); 714 714 } 715 715 716 - int perf_evlist__resume(struct perf_evlist *evlist) 716 + static int perf_evlist__resume(struct perf_evlist *evlist) 717 717 { 718 718 return perf_evlist__set_paused(evlist, false); 719 719 }
-2
tools/perf/util/evlist.h
··· 182 182 183 183 void perf_evlist__mmap_consume(struct perf_evlist *evlist, int idx); 184 184 185 - int perf_evlist__pause(struct perf_evlist *evlist); 186 - int perf_evlist__resume(struct perf_evlist *evlist); 187 185 int perf_evlist__open(struct perf_evlist *evlist); 188 186 void perf_evlist__close(struct perf_evlist *evlist); 189 187