perf tests openat-syscall-tp-fields: Add some conditional defines
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: ab6526b2ca2c2c3b383a24b2a0c68c5a8f71b820 Gitweb: http://git.kernel.org/tip/ab6526b2ca2c2c3b383a24b2a0c68c5a8f71b820 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 5 Jul 2016 14:43:27 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 12 Jul 2016 15:19:54 -0300
perf tests openat-syscall-tp-fields: Add some conditional defines
These were only defined if _GNU_SOURCE was set in older glibc versions, check that and provide the defines in such cases.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/tests/openat-syscall-tp-fields.c | 7 +++++++ 1 file changed, 7 insertions(+)
tools/perf/tests/openat-syscall-tp-fields.c +7 -0
@@ -6,6 +6,13 @@#include "tests.h" #include "debug.h" +#ifndef O_DIRECTORY +#define O_DIRECTORY 00200000 +#endif +#ifndef AT_FDCWD +#define AT_FDCWD -100 +#endif +int test__syscall_openat_tp_fields (int subtest__maybe_unused ) {struct record_opts opts = {