summaryrefslogtreecommitdiff
path: root/tools/perf/util/color.h
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-08-16 22:05:48 +0200
committerIngo Molnar <mingo@elte.hu>2009-08-16 23:06:45 +0200
commit8f28827a162fd1e8da4e96bed69b06d2606e8322 (patch)
treeb57a24ca7819a1b347374aa62dd90444740811f8 /tools/perf/util/color.h
parent0d3a5c885971de1e3124d85bfadf818abac9ba12 (diff)
downloadlwn-8f28827a162fd1e8da4e96bed69b06d2606e8322.tar.gz
lwn-8f28827a162fd1e8da4e96bed69b06d2606e8322.zip
perf tools: Librarize trace_event() helper
Librarize trace_event() helper so that perf trace can use it too. Also clean up the debug.h includes a bit. It's not good to have it included in perf.h because it doesn't make it flexible against other headers it may need (headers that can also depend on perf.h and then create a recursive header dependency). Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Mike Galbraith <efault@gmx.de> LKML-Reference: <1250453149-664-1-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/color.h')
-rw-r--r--tools/perf/util/color.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/color.h b/tools/perf/util/color.h
index 43d0d1b67c45..58d597564b99 100644
--- a/tools/perf/util/color.h
+++ b/tools/perf/util/color.h
@@ -32,6 +32,7 @@ int perf_color_default_config(const char *var, const char *value, void *cb);
int perf_config_colorbool(const char *var, const char *value, int stdout_is_tty);
void color_parse(const char *value, const char *var, char *dst);
void color_parse_mem(const char *value, int len, const char *var, char *dst);
+int color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args);
int color_fprintf(FILE *fp, const char *color, const char *fmt, ...);
int color_fprintf_ln(FILE *fp, const char *color, const char *fmt, ...);
int color_fwrite_lines(FILE *fp, const char *color, size_t count, const char *buf);