Skip to contentSkip to conversation

perf beauty: Add CLEAR_SIGHAND support for clone's flags arg

tip: perf/urgent tip-bot2 for Arnaldo Carvalho de Melo 1 participant 1 message Dec 4, 2019 1 message not in the archive perf events

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

tip-bot2 for Arnaldo Carvalho de Melo

author merge bot Applied
#1 lore raw

The following commit has been merged into the perf/urgent branch of tip:

Commit-ID:     f6661125ff41e27b488f36422226653baad3c382
Gitweb:        https://git.kernel.org/tip/f6661125ff41e27b488f36422226653baad3c382
Author:        Arnaldo Carvalho de Melo <[email protected]>
AuthorDate:    Mon, 02 Dec 2019 13:02:25 -03:00
Committer:     Arnaldo Carvalho de Melo <[email protected]>
CommitterDate: Mon, 02 Dec 2019 15:19:52 -03:00

perf beauty: Add CLEAR_SIGHAND support for clone's flags arg

Add support for the recently added CLONE_CLEAR_SIGHAND flag.

This takes advantage of the copy of the uapi/linux/sched.h we have in tools/include, which allows us to build tools/perf in older systems and have the binary support printing that flag whenever that system gets its kernel updated to one where this feature is present.

---
 tools/perf/trace/beauty/clone.c | 1 +
 1 file changed, 1 insertion(+)
tools/perf/trace/beauty/clone.c +1 -0
index 1a8d3be..062ca84 100644
@@ -45,6 +45,7 @@ static size_t clone__scnprintf_flags(unsigned long flags, char *bf, size_t size,
 	P_FLAG(NEWPID);
 	P_FLAG(NEWNET);
 	P_FLAG(IO);
+	P_FLAG(CLEAR_SIGHAND);
 #undef P_FLAG
 
 	if (flags)