aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-02-03 13:52:06 -0500
committerIngo Molnar <mingo@elte.hu>2010-02-04 03:33:27 -0500
commit29a9f66d703cb9464e24084e09edab5683e1b6b8 (patch)
treeb2b8974c651e8a9cd7b83ab99c38d7dd2072ef78 /tools/perf/util
parent6122e4e4f5d0913e319ef8a4dc60a47afe4abc0a (diff)
perf tools: Adjust some verbosity levels
Not to pollute too much 'perf annotate' debugging sessions. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1265223128-11786-7-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/include/linux/kernel.h1
-rw-r--r--tools/perf/util/symbol.c9
2 files changed, 6 insertions, 4 deletions
diff --git a/tools/perf/util/include/linux/kernel.h b/tools/perf/util/include/linux/kernel.h
index 21c0274c02fa..f2611655ab51 100644
--- a/tools/perf/util/include/linux/kernel.h
+++ b/tools/perf/util/include/linux/kernel.h
@@ -101,5 +101,6 @@ simple_strtoul(const char *nptr, char **endptr, int base)
101 eprintf(n, pr_fmt(fmt), ##__VA_ARGS__) 101 eprintf(n, pr_fmt(fmt), ##__VA_ARGS__)
102#define pr_debug2(fmt, ...) pr_debugN(2, pr_fmt(fmt), ##__VA_ARGS__) 102#define pr_debug2(fmt, ...) pr_debugN(2, pr_fmt(fmt), ##__VA_ARGS__)
103#define pr_debug3(fmt, ...) pr_debugN(3, pr_fmt(fmt), ##__VA_ARGS__) 103#define pr_debug3(fmt, ...) pr_debugN(3, pr_fmt(fmt), ##__VA_ARGS__)
104#define pr_debug4(fmt, ...) pr_debugN(4, pr_fmt(fmt), ##__VA_ARGS__)
104 105
105#endif 106#endif
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index bfb055459670..a60ba2ba1044 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -137,7 +137,7 @@ static struct symbol *symbol__new(u64 start, u64 len, const char *name)
137 self->start = start; 137 self->start = start;
138 self->end = len ? start + len - 1 : start; 138 self->end = len ? start + len - 1 : start;
139 139
140 pr_debug3("%s: %s %#Lx-%#Lx\n", __func__, name, start, self->end); 140 pr_debug4("%s: %s %#Lx-%#Lx\n", __func__, name, start, self->end);
141 141
142 memcpy(self->name, name, namelen); 142 memcpy(self->name, name, namelen);
143 143
@@ -1024,9 +1024,10 @@ static int dso__load_sym(struct dso *self, struct map *map, const char *name,
1024 } 1024 }
1025 1025
1026 if (curr_dso->adjust_symbols) { 1026 if (curr_dso->adjust_symbols) {
1027 pr_debug2("adjusting symbol: st_value: %Lx sh_addr: " 1027 pr_debug4("%s: adjusting symbol: st_value: %#Lx "
1028 "%Lx sh_offset: %Lx\n", (u64)sym.st_value, 1028 "sh_addr: %#Lx sh_offset: %#Lx\n", __func__,
1029 (u64)shdr.sh_addr, (u64)shdr.sh_offset); 1029 (u64)sym.st_value, (u64)shdr.sh_addr,
1030 (u64)shdr.sh_offset);
1030 sym.st_value -= shdr.sh_addr - shdr.sh_offset; 1031 sym.st_value -= shdr.sh_addr - shdr.sh_offset;
1031 } 1032 }
1032 /* 1033 /*