2 #include <uapi/linux/mman.h> 7 int printed = 0, prot = arg->
val;
10 return scnprintf(bf, size,
"NONE");
11 #define P_MMAP_PROT(n) \ 12 if (prot & PROT_##n) { \ 13 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ 26 printed += scnprintf(bf + printed, size - printed,
"%s%#x", printed ?
"|" :
"", prot);
31 #define SCA_MMAP_PROT syscall_arg__scnprintf_mmap_prot 38 if (
flags & MAP_ANONYMOUS)
39 arg->
mask |= (1 << 4) | (1 << 5);
41 #define P_MMAP_FLAG(n) \ 42 if (flags & MAP_##n) { \ 43 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ 57 #ifdef MAP_FIXED_NOREPLACE 74 printed += scnprintf(bf + printed, size - printed,
"%s%#x", printed ?
"|" :
"",
flags);
79 #define SCA_MMAP_FLAGS syscall_arg__scnprintf_mmap_flags 86 #define P_MREMAP_FLAG(n) \ 87 if (flags & MREMAP_##n) { \ 88 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ 89 flags &= ~MREMAP_##n; \ 97 printed += scnprintf(bf + printed, size - printed,
"%s%#x", printed ?
"|" :
"",
flags);
102 #define SCA_MREMAP_FLAGS syscall_arg__scnprintf_mremap_flags 106 #include "trace/beauty/generated/madvise_behavior_array.c" 109 if (behavior < strarray__madvise_advices.nr_entries && strarray__madvise_advices.entries[behavior] != NULL)
110 return scnprintf(bf, size,
"MADV_%s", strarray__madvise_advices.entries[behavior]);
112 return scnprintf(bf, size,
"%#", behavior);
121 #define SCA_MADV_BHV syscall_arg__scnprintf_madvise_behavior #define DEFINE_STRARRAY(array)
static size_t syscall_arg__scnprintf_mremap_flags(char *bf, size_t size, struct syscall_arg *arg)
static size_t syscall_arg__scnprintf_madvise_behavior(char *bf, size_t size, struct syscall_arg *arg)
static size_t syscall_arg__scnprintf_mmap_flags(char *bf, size_t size, struct syscall_arg *arg)
static size_t syscall_arg__scnprintf_mmap_prot(char *bf, size_t size, struct syscall_arg *arg)
static size_t madvise__scnprintf_behavior(int behavior, char *bf, size_t size)