Skip to contentSkip to conversation

perf tests: Update attr test with PERF_FLAG_FD_CLOEXEC flag

tip:perf/core tip-bot for Jiri Olsa 1 participant 1 message Jul 18, 2014 perf events

lore
Share & tools
lore

tip-bot for Jiri Olsa

author merge bot
#0 lore raw
Commit-ID:  fb578179a54553716afb0666a4d8c194acd313ba
Gitweb:     http://git.kernel.org/tip/fb578179a54553716afb0666a4d8c194acd313ba
Author:     Jiri Olsa <[email protected]>
AuthorDate: Mon, 14 Jul 2014 08:50:03 +0200
Committer:  Jiri Olsa <[email protected]>
CommitDate: Fri, 18 Jul 2014 09:09:53 +0200

perf tests: Update attr test with PERF_FLAG_FD_CLOEXEC flag

We not support PERF_FLAG_FD_CLOEXEC flag, updating attr tests accordingly.

Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Corey Ashford <[email protected]>
Cc David Ahern <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
---
 tools/perf/tests/attr/base-record | 3 ++-
 tools/perf/tests/attr/base-stat   | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
tools/perf/tests/attr/base-record +2 -1
index e9bd639..f710b92 100644
@@ -1,7 +1,8 @@
 [event]
 fd=1
 group_fd=-1
-flags=0
+# 0 or PERF_FLAG_FD_CLOEXEC flag
+flags=0|8
 cpu=*
 type=0|1
 size=96
tools/perf/tests/attr/base-stat +2 -1
index 91cd48b..dc3ada2 100644
@@ -1,7 +1,8 @@
 [event]
 fd=1
 group_fd=-1
-flags=0
+# 0 or PERF_FLAG_FD_CLOEXEC flag
+flags=0|8
 cpu=*
 type=0
 size=96