mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
perf kvm: Make function only used by 'perf kvm' static
No need to have this polluting util.h, it was polluted enough already. Link: http://lkml.kernel.org/n/tip-wfdidqlwbvi5y0s61kv6z2gn@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
c5e4027e05
commit
bb8c16db43
@ -36,6 +36,20 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
static const char *get_filename_for_perf_kvm(void)
|
||||||
|
{
|
||||||
|
const char *filename;
|
||||||
|
|
||||||
|
if (perf_host && !perf_guest)
|
||||||
|
filename = strdup("perf.data.host");
|
||||||
|
else if (!perf_host && perf_guest)
|
||||||
|
filename = strdup("perf.data.guest");
|
||||||
|
else
|
||||||
|
filename = strdup("perf.data.kvm");
|
||||||
|
|
||||||
|
return filename;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_KVM_STAT_SUPPORT
|
#ifdef HAVE_KVM_STAT_SUPPORT
|
||||||
#include "util/kvm-stat.h"
|
#include "util/kvm-stat.h"
|
||||||
|
|
||||||
|
@ -496,20 +496,6 @@ int parse_callchain_record(const char *arg, struct callchain_param *param)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *get_filename_for_perf_kvm(void)
|
|
||||||
{
|
|
||||||
const char *filename;
|
|
||||||
|
|
||||||
if (perf_host && !perf_guest)
|
|
||||||
filename = strdup("perf.data.host");
|
|
||||||
else if (!perf_host && perf_guest)
|
|
||||||
filename = strdup("perf.data.guest");
|
|
||||||
else
|
|
||||||
filename = strdup("perf.data.kvm");
|
|
||||||
|
|
||||||
return filename;
|
|
||||||
}
|
|
||||||
|
|
||||||
int perf_event_paranoid(void)
|
int perf_event_paranoid(void)
|
||||||
{
|
{
|
||||||
int value;
|
int value;
|
||||||
|
@ -100,7 +100,6 @@ int perf_event_paranoid(void);
|
|||||||
void mem_bswap_64(void *src, int byte_size);
|
void mem_bswap_64(void *src, int byte_size);
|
||||||
void mem_bswap_32(void *src, int byte_size);
|
void mem_bswap_32(void *src, int byte_size);
|
||||||
|
|
||||||
const char *get_filename_for_perf_kvm(void);
|
|
||||||
bool find_process(const char *name);
|
bool find_process(const char *name);
|
||||||
|
|
||||||
#ifdef HAVE_ZLIB_SUPPORT
|
#ifdef HAVE_ZLIB_SUPPORT
|
||||||
|
Loading…
Reference in New Issue
Block a user