Skip to contentSkip to conversation

perf beauty mmap: Print PROT_READ before PROT_EXEC to match strace output

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Dec 20, 2018 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  1355e09ab04bc583df9c4b2b68d445c535c8b66b
Gitweb:     https://git.kernel.org/tip/1355e09ab04bc583df9c4b2b68d445c535c8b66b
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Tue, 18 Dec 2018 11:22:34 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 18 Dec 2018 16:15:19 -0300

perf beauty mmap: Print PROT_READ before PROT_EXEC to match strace output

Helps with comparing 'strace' and 'perf trace' output, for mutual regression testing.

---
 tools/perf/trace/beauty/mmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/trace/beauty/mmap.c +1 -1
index 138f36a47fb1..eb31089790e3 100644
@@ -17,8 +17,8 @@ static size_t syscall_arg__scnprintf_mmap_prot(char *bf, size_t size,
 		prot &= ~PROT_##n; \
 	}
 
-	P_MMAP_PROT(EXEC);
 	P_MMAP_PROT(READ);
+	P_MMAP_PROT(EXEC);
 	P_MMAP_PROT(WRITE);
 	P_MMAP_PROT(SEM);
 	P_MMAP_PROT(GROWSDOWN);