libbeauty: Add a strarray__scnprintf_suffix() method
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 15 Oct 2019 19:01:42 +0000 (16:01 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 15 Oct 2019 19:01:42 +0000 (16:01 -0300)
commit97c2a7806f691f4124914623baa54223416a8cef
tree2bd4ba52c66d8a144945f258bf14c54c6fffa541
parentf19a85c68cb4d5bb90c587d9390e1ce2716d6160
libbeauty: Add a strarray__scnprintf_suffix() method

In some cases, like with x86 IRQ vectors, the common part in names is at
the end, so a suffix, add a scnprintf function for that.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.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-agxbj6es2ke3rehwt4gkdw23@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c
tools/perf/trace/beauty/beauty.h