]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf trace beauty: Always show mmap prot even though PROT_NONE
authorChangbin Du <changbin.du@huawei.com>
Wed, 22 May 2024 03:35:42 +0000 (11:35 +0800)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 30 May 2024 05:48:23 +0000 (22:48 -0700)
commitf975c13d2a34a335fc559aeff76dcaba456cced0
treec109f2338fd5fa393e5c79d800db9e28606e7e35
parent92968dcc037fed045dab5c8e52b51255d77f5432
perf trace beauty: Always show mmap prot even though PROT_NONE

PROT_NONE is also useful information, so do not omit the mmap prot even
though it is 0. syscall_arg__scnprintf_mmap_prot() could print PROT_NONE
for prot 0.

Before: PROT_NONE is not shown.
$ sudo perf trace -e syscalls:sys_enter_mmap --filter prot==0  -- ls
     0.000 ls/2979231 syscalls:sys_enter_mmap(len: 4220888, flags: PRIVATE|ANONYMOUS)

After: PROT_NONE is displayed.
$ sudo perf trace -e syscalls:sys_enter_mmap --filter prot==0  -- ls
     0.000 ls/2975708 syscalls:sys_enter_mmap(len: 4220888, prot: NONE, flags: PRIVATE|ANONYMOUS)

Signed-off-by: Changbin Du <changbin.du@huawei.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240522033542.1359421-3-changbin.du@huawei.com
tools/perf/builtin-trace.c