git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf report: Adjust column width to the values sampled
[pandora-kernel.git]
/
tools
/
perf
/
util
/
include
/
linux
/
kernel.h
diff --git
a/tools/perf/util/include/linux/kernel.h
b/tools/perf/util/include/linux/kernel.h
index
99c1b3d
..
a6b8739
100644
(file)
--- a/
tools/perf/util/include/linux/kernel.h
+++ b/
tools/perf/util/include/linux/kernel.h
@@
-18,4
+18,12
@@
(type *)((char *)__mptr - offsetof(type, member)); })
#endif
+#ifndef max
+#define max(x, y) ({ \
+ typeof(x) _max1 = (x); \
+ typeof(y) _max2 = (y); \
+ (void) (&_max1 == &_max2); \
+ _max1 > _max2 ? _max1 : _max2; })
+#endif
+
#endif