libbeauty: Make the mmap_flags strarray visible outside of its beautifier
A message that is not in the archive (sent off-list or not yet received): [email protected]
The following commit has been merged into the perf/core branch of tip:
Commit-ID: f77526be82fcc31cb0d54796dd8f8476472b05d0 Gitweb: https://git.kernel.org/tip/f77526be82fcc31cb0d54796dd8f8476472b05d0 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Sat, 19 Oct 2019 15:13:21 -03:00 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitterDate: Sat, 19 Oct 2019 15:35:02 -03:00
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 <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Luis Cláudio Gonçalves <[email protected]>
Cc Namhyung Kim <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/trace/beauty/mmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/trace/beauty/mmap.c +2 -2
@@ -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 -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" 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); }