summaryrefslogtreecommitdiffstats
path: root/tools/perf/trace/beauty/pkey_alloc.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo2018-12-14 19:08:40 +0100
committerArnaldo Carvalho de Melo2018-12-18 20:07:42 +0100
commit2e3d7fac9db5e80d1cc26bb1453b85245c26d657 (patch)
tree8dcae752eae3df3f51d81a2b0af78679cbbbc23a /tools/perf/trace/beauty/pkey_alloc.c
parentperf trace: Enclose strings with double quotes (diff)
downloadkernel-qcow2-linux-2e3d7fac9db5e80d1cc26bb1453b85245c26d657.tar.gz
kernel-qcow2-linux-2e3d7fac9db5e80d1cc26bb1453b85245c26d657.tar.xz
kernel-qcow2-linux-2e3d7fac9db5e80d1cc26bb1453b85245c26d657.zip
perf trace: Add a prefix member to the strarray class
So that the user, in an upcoming patch, can select printing it to get the full string as used in the source code, not one with a common prefix chopped off so as to make the output more compact. 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> Cc: Wang Nan <wangnan0@huawei.com> Link: https://lkml.kernel.org/n/tip-zypczc88gzbmeqx7b372s138@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/trace/beauty/pkey_alloc.c')
-rw-r--r--tools/perf/trace/beauty/pkey_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/trace/beauty/pkey_alloc.c b/tools/perf/trace/beauty/pkey_alloc.c
index 1b8ed4cac815..f4818e05a48b 100644
--- a/tools/perf/trace/beauty/pkey_alloc.c
+++ b/tools/perf/trace/beauty/pkey_alloc.c
@@ -41,7 +41,7 @@ size_t strarray__scnprintf_flags(struct strarray *sa, char *bf, size_t size, uns
static size_t pkey_alloc__scnprintf_access_rights(int access_rights, char *bf, size_t size)
{
#include "trace/beauty/generated/pkey_alloc_access_rights_array.c"
- static DEFINE_STRARRAY(pkey_alloc_access_rights);
+ static DEFINE_STRARRAY(pkey_alloc_access_rights, "PKEY_");
return strarray__scnprintf_flags(&strarray__pkey_alloc_access_rights, bf, size, access_rights);
}