Commit 8b40f521 authored by John Kacur's avatar John Kacur Committed by Ingo Molnar
Browse files

perf tools: Protect header files with a consistent style



There was a colorful mix of header guards - standardize them.

Signed-off-by: default avatarJohn Kacur <jkacur@redhat.com>
LKML-Reference: <alpine.LFD.2.00.0909241756530.11383@localhost.localdomain>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent cbfeb267
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
#ifndef CACHE_H
#ifndef __PERF_CACHE_H
#define CACHE_H
#define __PERF_CACHE_H


#include "util.h"
#include "util.h"
#include "strbuf.h"
#include "strbuf.h"
@@ -117,4 +117,4 @@ extern char *perf_pathdup(const char *fmt, ...)


extern size_t strlcpy(char *dest, const char *src, size_t size);
extern size_t strlcpy(char *dest, const char *src, size_t size);


#endif /* CACHE_H */
#endif /* __PERF_CACHE_H */
+1 −1
Original line number Original line Diff line number Diff line
@@ -58,4 +58,4 @@ static inline u64 cumul_hits(struct callchain_node *node)
int register_callchain_param(struct callchain_param *param);
int register_callchain_param(struct callchain_param *param);
void append_chain(struct callchain_node *root, struct ip_callchain *chain,
void append_chain(struct callchain_node *root, struct ip_callchain *chain,
		  struct symbol **syms);
		  struct symbol **syms);
#endif
#endif	/* __PERF_CALLCHAIN_H */
+3 −3
Original line number Original line Diff line number Diff line
#ifndef COLOR_H
#ifndef __PERF_COLOR_H
#define COLOR_H
#define __PERF_COLOR_H


/* "\033[1;38;5;2xx;48;5;2xxm\0" is 23 bytes */
/* "\033[1;38;5;2xx;48;5;2xxm\0" is 23 bytes */
#define COLOR_MAXLEN 24
#define COLOR_MAXLEN 24
@@ -39,4 +39,4 @@ int color_fwrite_lines(FILE *fp, const char *color, size_t count, const char *bu
int percent_color_fprintf(FILE *fp, const char *fmt, double percent);
int percent_color_fprintf(FILE *fp, const char *fmt, double percent);
const char *get_percent_color(double percent);
const char *get_percent_color(double percent);


#endif /* COLOR_H */
#endif /* __PERF_COLOR_H */
+4 −0
Original line number Original line Diff line number Diff line
/* For debugging general purposes */
/* For debugging general purposes */
#ifndef __PERF_DEBUG_H
#define __PERF_DEBUG_H


extern int verbose;
extern int verbose;
extern int dump_trace;
extern int dump_trace;
@@ -6,3 +8,5 @@ extern int dump_trace;
int eprintf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
int eprintf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
void trace_event(event_t *event);
void trace_event(event_t *event);

#endif	/* __PERF_DEBUG_H */
+2 −1
Original line number Original line Diff line number Diff line
#ifndef __PERF_RECORD_H
#ifndef __PERF_RECORD_H
#define __PERF_RECORD_H
#define __PERF_RECORD_H

#include "../perf.h"
#include "../perf.h"
#include "util.h"
#include "util.h"
#include <linux/list.h>
#include <linux/list.h>
@@ -101,4 +102,4 @@ struct map *map__clone(struct map *self);
int map__overlap(struct map *l, struct map *r);
int map__overlap(struct map *l, struct map *r);
size_t map__fprintf(struct map *self, FILE *fp);
size_t map__fprintf(struct map *self, FILE *fp);


#endif
#endif /* __PERF_RECORD_H */
Loading