aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2019-08-13 11:38:19 -0300
committerArnaldo Carvalho de Melo <[email protected]>2019-08-14 10:59:59 -0300
commit083c1359b0e03867a8c7effd21d4c0be3639f336 (patch)
treeb8119f31d243ed86fa833f73f67a85219faf285b
parent97993bd6eb89bf08649c01d4d57453feca4314f8 (diff)
perf tools: Add CAP_SYSLOG define for older systems
Some of the systems I test don't have that define, provide it conditionally since we'll use it in the kptr_restrict checks in the next patch. Cc: Alexander Shishkin <[email protected]> Cc: Alexey Budankov <[email protected]> Cc: Igor Lubashev <[email protected]> Cc: James Morris <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mathieu Poirier <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Suzuki Poulouse <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r--tools/perf/util/cap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/cap.h b/tools/perf/util/cap.h
index 10af94e473da..051dc590ceee 100644
--- a/tools/perf/util/cap.h
+++ b/tools/perf/util/cap.h
@@ -24,4 +24,9 @@ static inline bool perf_cap__capable(int cap __maybe_unused)
#endif /* HAVE_LIBCAP_SUPPORT */
+/* For older systems */
+#ifndef CAP_SYSLOG
+#define CAP_SYSLOG 34
+#endif
+
#endif /* __PERF_CAP_H */