diff options
Diffstat (limited to 'tools/perf/util/trace-event-info.c')
| -rw-r--r-- | tools/perf/util/trace-event-info.c | 27 | 
1 files changed, 1 insertions, 26 deletions
diff --git a/tools/perf/util/trace-event-info.c b/tools/perf/util/trace-event-info.c index d2655f08bcc0..fc22cf5c605f 100644 --- a/tools/perf/util/trace-event-info.c +++ b/tools/perf/util/trace-event-info.c @@ -18,7 +18,7 @@   *   * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   */ -#define _GNU_SOURCE +#include "util.h"  #include <dirent.h>  #include <mntent.h>  #include <stdio.h> @@ -31,7 +31,6 @@  #include <pthread.h>  #include <fcntl.h>  #include <unistd.h> -#include <ctype.h>  #include <errno.h>  #include <stdbool.h>  #include <linux/list.h> @@ -44,10 +43,6 @@  #define VERSION "0.5" -#define _STR(x) #x -#define STR(x) _STR(x) -#define MAX_PATH 256 -  #define TRACE_CTRL	"tracing_on"  #define TRACE		"trace"  #define AVAILABLE	"available_tracers" @@ -73,26 +68,6 @@ struct events {  }; - -static void die(const char *fmt, ...) -{ -	va_list ap; -	int ret = errno; - -	if (errno) -		perror("perf"); -	else -		ret = -1; - -	va_start(ap, fmt); -	fprintf(stderr, "  "); -	vfprintf(stderr, fmt, ap); -	va_end(ap); - -	fprintf(stderr, "\n"); -	exit(ret); -} -  void *malloc_or_die(unsigned int size)  {  	void *data;  |