From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C34E36D500; Thu, 7 May 2026 07:26:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778138802; cv=none; b=FlK9Bh+a1l1r0k1DJk0kNhxM0fo8QqvxHKOuofdsgMThbeDe1nr1fIL23ql1qWKfaciJx4i4Dv6x7dt4vUe0jKqPNzrwH/VmuyYttGWr+ASoMVtA7OL24rcY305t4GBDjQEPhqMqdAMeE2SXhmtVmPFRxpiEdy21RFqqh2KXgC0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778138802; c=relaxed/simple; bh=GV3Fx7ZQMA338Q0paG9OPf46qNRFaHQ/XB0rX7K28MM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oP8nseYsRZSTF/6tL96pIpXqgEeezjhheS0vuLZCPwRI7CwSlkUdnJ4xg6aT2TuhRZ8riqlws4qbcpuShtjhHsrNH8bJ7kVePX9poozDBuv1F3blG2KOYALOa1+zEyiMpwzP7QPY8gzJ6yV/vu1gND2LVZU0sG25ll0GRwivjg8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JV1Vz157; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JV1Vz157" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B396C2BCC7; Thu, 7 May 2026 07:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778138802; bh=GV3Fx7ZQMA338Q0paG9OPf46qNRFaHQ/XB0rX7K28MM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JV1Vz157YFdAPn3kKBFClbUQuXs+dykUwe9KeFIboUEBWDpXnXWIt4wlZWT0EQ9Ay 43jde5SJeVo2FS1Bc9UHXosRm/cZBIXFm5XUhGteYjW648imvgKo1IzTOm3J+bnuxJ 0GLN2Zjtag8+fpLkEzqiUg2O4uVc4PZidlaIM099unfYApNGN3QrG0cysQnm7Gq2Hl Ito5IkLRVW0mONhDbWyRvMoKRASaASoBCvGOfdF4n328cakoJCfPb6LXPPE6+cUERz zvND4lQBzhk6q8rxUyySPp39TXMVNeqWW3MBnpSV9i7xAZo8GRV7DYg34Wkj7Irxcf p1DwTAyx8uYlA== From: Namhyung Kim To: Arnaldo Carvalho de Melo , Ian Rogers , James Clark Cc: Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Ravi Bangoria Subject: [PATCH v2 4/7] perf trace: Sync uapi/linux/sched.h with the kernel source Date: Thu, 7 May 2026 00:26:29 -0700 Message-ID: <20260507072632.37152-5-namhyung@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260507072632.37152-1-namhyung@kernel.org> References: <20260507072632.37152-1-namhyung@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To pick up changes from: 9d4e752a24f740b3 ("namespace: allow creating empty mount namespaces") c8134b5f13ae959d ("pidfd: add CLONE_PIDFD_AUTOKILL") 24baca56fafc33d4 ("clone: add CLONE_NNP") 12ae2c81b21cfaa1 ("clone: add CLONE_AUTOREAP") 2e7af192697ef2a7 ("sched/deadline: Add reporting of runtime left & ...") This would be used to beautify scheduler syscall arguments and not to affect builds of other tools (e.g. objtool). Please see tools/include/uapi/README. Signed-off-by: Namhyung Kim --- .../trace/beauty/include/uapi/linux/sched.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tools/perf/trace/beauty/include/uapi/linux/sched.h b/tools/perf/trace/beauty/include/uapi/linux/sched.h index 359a14cc76a4038a..33a4624285cd4179 100644 --- a/tools/perf/trace/beauty/include/uapi/linux/sched.h +++ b/tools/perf/trace/beauty/include/uapi/linux/sched.h @@ -34,8 +34,12 @@ #define CLONE_IO 0x80000000 /* Clone io context */ /* Flags for the clone3() syscall. */ -#define CLONE_CLEAR_SIGHAND 0x100000000ULL /* Clear any signal handler and reset to SIG_DFL. */ -#define CLONE_INTO_CGROUP 0x200000000ULL /* Clone into a specific cgroup given the right permissions. */ +#define CLONE_CLEAR_SIGHAND (1ULL << 32) /* Clear any signal handler and reset to SIG_DFL. */ +#define CLONE_INTO_CGROUP (1ULL << 33) /* Clone into a specific cgroup given the right permissions. */ +#define CLONE_AUTOREAP (1ULL << 34) /* Auto-reap child on exit. */ +#define CLONE_NNP (1ULL << 35) /* Set no_new_privs on child. */ +#define CLONE_PIDFD_AUTOKILL (1ULL << 36) /* Kill child when clone pidfd closes. */ +#define CLONE_EMPTY_MNTNS (1ULL << 37) /* Create an empty mount namespace. */ /* * cloning flags intersect with CSIGNAL so can be used with unshare and clone3 @@ -43,6 +47,12 @@ */ #define CLONE_NEWTIME 0x00000080 /* New time namespace */ +/* + * unshare flags share the bit space with clone flags but only apply to the + * unshare syscall: + */ +#define UNSHARE_EMPTY_MNTNS 0x00100000 /* Unshare an empty mount namespace. */ + #ifndef __ASSEMBLY__ /** * struct clone_args - arguments for the clone3 syscall @@ -146,4 +156,7 @@ struct clone_args { SCHED_FLAG_KEEP_ALL | \ SCHED_FLAG_UTIL_CLAMP) +/* Only for sched_getattr() own flag param, if task is SCHED_DEADLINE */ +#define SCHED_GETATTR_FLAG_DL_DYNAMIC 0x01 + #endif /* _UAPI_LINUX_SCHED_H */ -- 2.53.0