libbeauty: Make the mmap_flags strarray visible outside of its beautifier
So that we can later use it with the strarray__strtoul_flags() routine that will be soon introduced. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-vldj3ch8su6i20to5eq31e8x@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
82c38338e0
commit
f77526be82
@ -33,11 +33,11 @@ static size_t syscall_arg__scnprintf_mmap_prot(char *bf, size_t size,
|
|||||||
|
|
||||||
#define SCA_MMAP_PROT syscall_arg__scnprintf_mmap_prot
|
#define SCA_MMAP_PROT syscall_arg__scnprintf_mmap_prot
|
||||||
|
|
||||||
static size_t mmap__scnprintf_flags(unsigned long flags, char *bf, size_t size, bool show_prefix)
|
|
||||||
{
|
|
||||||
#include "trace/beauty/generated/mmap_flags_array.c"
|
#include "trace/beauty/generated/mmap_flags_array.c"
|
||||||
static DEFINE_STRARRAY(mmap_flags, "MAP_");
|
static DEFINE_STRARRAY(mmap_flags, "MAP_");
|
||||||
|
|
||||||
|
static size_t mmap__scnprintf_flags(unsigned long flags, char *bf, size_t size, bool show_prefix)
|
||||||
|
{
|
||||||
return strarray__scnprintf_flags(&strarray__mmap_flags, bf, size, show_prefix, flags);
|
return strarray__scnprintf_flags(&strarray__mmap_flags, bf, size, show_prefix, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user