diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2016-08-05 12:37:21 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-08-09 10:46:56 -0300 |
commit | 887fa86d6fd7a45cee2d0f9d5f75026786d61df2 (patch) | |
tree | 8aaaa2152b4607a5fe2ef885785d8d6a56d9d186 /scripts/gdb/vmlinux-gdb.py | |
parent | bcdc09af3ef30ef071677544ce23a1c8873a2dda (diff) |
perf hists: Trim libtraceevent trace_seq buffers
When we use libtraceevent to format trace event fields into printable
strings to use in hist entries it is important to trim it from the
default 4 KiB it starts with to what is really used, to reduce the
memory footprint, so use realloc(seq.buffer, seq.len + 1) when returning
the seq.buffer formatted with the fields contents.
Reported-and-Tested-by: Wang Nan <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gdb/vmlinux-gdb.py')
0 files changed, 0 insertions, 0 deletions