forked from Minki/linux
perf trace beauty mmap: Ignore 'fd' and 'offset' args for MAP_ANONYMOUS
Just suppress them, not used by the kernel. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-atpt07y2x9a8ttlwja94ow3j@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
6f8fe61ee5
commit
d57da8c9a5
@ -34,6 +34,9 @@ static size_t syscall_arg__scnprintf_mmap_flags(char *bf, size_t size,
|
|||||||
{
|
{
|
||||||
int printed = 0, flags = arg->val;
|
int printed = 0, flags = arg->val;
|
||||||
|
|
||||||
|
if (flags & MAP_ANONYMOUS)
|
||||||
|
arg->mask |= (1 << 4) | (1 << 5); /* Mask 4th ('fd') and 5th ('offset') args, ignored */
|
||||||
|
|
||||||
#define P_MMAP_FLAG(n) \
|
#define P_MMAP_FLAG(n) \
|
||||||
if (flags & MAP_##n) { \
|
if (flags & MAP_##n) { \
|
||||||
printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \
|
printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \
|
||||||
|
Loading…
Reference in New Issue
Block a user