]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tools lib traceevent: Add append() function helper for appending strings
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 24 Mar 2020 20:08:46 +0000 (16:08 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 18 Jun 2020 13:17:17 +0000 (10:17 -0300)
commit27d4d336f2872193e90ee5450559e1699fae0f6d
tree5c3ea04a9a8b735ce5e75eac811e0cd7dd98b3b2
parent0e093c77c5b0dc0d8cbe123a84c944aa8bf0b878
tools lib traceevent: Add append() function helper for appending strings

There's several locations that open code realloc and strcat() to append
text to strings. Add an append() function that takes a delimiter and a
string to append to another string.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jaewon Lim <jaewon31.kim@samsung.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kees Kook <keescook@chromium.org>
Cc: linux-mm@kvack.org
Cc: linux-trace-devel@vger.kernel.org
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Link: http://lore.kernel.org/lkml/20200324200956.515118403@goodmis.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.c