summaryrefslogtreecommitdiffstats
path: root/security/inode.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2016-08-05 17:37:21 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-08-09 15:46:56 +0200
commit887fa86d6fd7a45cee2d0f9d5f75026786d61df2 (patch)
tree8aaaa2152b4607a5fe2ef885785d8d6a56d9d186 /security/inode.c
parentperf script: Add 'bpf-output' field to usage message (diff)
downloadlinux-887fa86d6fd7a45cee2d0f9d5f75026786d61df2.tar.xz
linux-887fa86d6fd7a45cee2d0f9d5f75026786d61df2.zip
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 <wangnan0@huawei.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/n/tip-t3hl7uxmilrkigzmc90rlhk2@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'security/inode.c')
0 files changed, 0 insertions, 0 deletions