mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Namhyung Kim <namhyung@kernel.org>
To: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Ian Rogers <irogers@google.com>, Jiri Olsa <jolsa@kernel.org>,
	Adrian Hunter <adrian.hunter@intel.com>,
	James Clark <james.clark@linaro.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	linux-perf-users@vger.kernel.org
Subject: [PATCH 2/3] perf trace: Copy uapi/linux/eventfd.h for beautifier
Date: Sun, 24 May 2026 18:11:32 -0700	[thread overview]
Message-ID: <20260525011133.179130-2-namhyung@kernel.org> (raw)
In-Reply-To: <20260525011133.179130-1-namhyung@kernel.org>

To make sure perf trace will see the latest definitions.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
---
 tools/perf/check-headers.sh                          |  1 +
 tools/perf/trace/beauty/eventfd.c                    | 12 +-----------
 tools/perf/trace/beauty/include/uapi/linux/eventfd.h | 11 +++++++++++
 3 files changed, 13 insertions(+), 11 deletions(-)
 create mode 100644 tools/perf/trace/beauty/include/uapi/linux/eventfd.h

diff --git a/tools/perf/check-headers.sh b/tools/perf/check-headers.sh
index 531c0e0e84dfa101..24660b2bd45e971f 100755
--- a/tools/perf/check-headers.sh
+++ b/tools/perf/check-headers.sh
@@ -90,6 +90,7 @@ declare -a BEAUTY_FILES=(
   "include/uapi/drm/drm.h"
   "include/uapi/drm/i915_drm.h"
   "include/linux/socket.h"
+  "include/uapi/linux/eventfd.h"
   "include/uapi/linux/fadvise.h"
   "include/uapi/linux/fcntl.h"
   "include/uapi/linux/fs.h"
diff --git a/tools/perf/trace/beauty/eventfd.c b/tools/perf/trace/beauty/eventfd.c
index 18b661282834b7d9..830a5b7ae455f157 100644
--- a/tools/perf/trace/beauty/eventfd.c
+++ b/tools/perf/trace/beauty/eventfd.c
@@ -1,17 +1,7 @@
 // SPDX-License-Identifier: LGPL-2.1
 #include "trace/beauty/beauty.h"
+#include "trace/beauty/include/uapi/linux/eventfd.h"
 
-#ifndef EFD_SEMAPHORE
-#define EFD_SEMAPHORE		1
-#endif
-
-#ifndef EFD_NONBLOCK
-#define EFD_NONBLOCK		00004000
-#endif
-
-#ifndef EFD_CLOEXEC
-#define EFD_CLOEXEC		02000000
-#endif
 
 size_t syscall_arg__scnprintf_eventfd_flags(char *bf, size_t size, struct syscall_arg *arg)
 {
diff --git a/tools/perf/trace/beauty/include/uapi/linux/eventfd.h b/tools/perf/trace/beauty/include/uapi/linux/eventfd.h
new file mode 100644
index 0000000000000000..2eb9ab6c32f30502
--- /dev/null
+++ b/tools/perf/trace/beauty/include/uapi/linux/eventfd.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef _UAPI_LINUX_EVENTFD_H
+#define _UAPI_LINUX_EVENTFD_H
+
+#include <linux/fcntl.h>
+
+#define EFD_SEMAPHORE (1 << 0)
+#define EFD_CLOEXEC O_CLOEXEC
+#define EFD_NONBLOCK O_NONBLOCK
+
+#endif /* _UAPI_LINUX_EVENTFD_H */
-- 
2.54.0.746.g67dd491aae-goog


  reply	other threads:[~2026-05-25  1:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-25  1:11 [PATCH 1/3] perf trace: Include copied headers in the beauty directory Namhyung Kim
2026-05-25  1:11 ` Namhyung Kim [this message]
2026-05-25  1:11 ` [PATCH 3/3] perf trace: Copy uapi/linux/futex.h for beautifier Namhyung Kim
2026-05-25 11:46 ` [PATCH 1/3] perf trace: Include copied headers in the beauty directory Arnaldo Carvalho de Melo
2026-05-26  0:14   ` Namhyung Kim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260525011133.179130-2-namhyung@kernel.org \
    --to=namhyung@kernel.org \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=irogers@google.com \
    --cc=james.clark@linaro.org \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome