summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorAndrew Jones <ajones@ventanamicro.com>2023-07-25 11:41:27 +0300
committerAnup Patel <anup@brainfault.org>2023-08-08 19:11:57 +0300
commitdfaf20af7649c82b0c53103e3bd9f3e6c3751c9d (patch)
treeb0a3f7737ac128462e82835ce4c8aa057c14fba3 /tools/perf/scripts/python/export-to-sqlite.py
parent630b4cee9c378e2dbb56ed84f71fc2fac50b716e (diff)
downloadlinux-dfaf20af7649c82b0c53103e3bd9f3e6c3751c9d.tar.xz
KVM: arm64: selftests: Replace str_with_index with strdup_printf
The original author of aarch64/get-reg-list.c (me) was wearing tunnel vision goggles when implementing str_with_index(). There's no reason to have such a special case string function. Instead, take inspiration from glib and implement strdup_printf. The implementation builds on vasprintf() which requires _GNU_SOURCE, but we require _GNU_SOURCE in most files already. Signed-off-by: Andrew Jones <ajones@ventanamicro.com> Signed-off-by: Haibo Xu <haibo1.xu@intel.com> Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions