diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2020-03-30 12:35:21 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-04-03 09:37:55 -0300 |
commit | 376c3c22e2ba69d7509aa070f1a7dd88efdb0a9c (patch) | |
tree | 17a7a660b9cdef2f497512778cbc19b1bf384a8e /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2605af0f32d1bf434dd6819732c7851a97f5cbc0 (diff) |
perf report/top TUI: Fix title line formatting
In d10ec006dcd7 ("perf hists browser: Allow passing an initial hotkey")
the hist_entry__title() call was cut'n'pasted to a function where the
'title' variable is a pointer, not an array, so the sizeof(title)
continues syntactically valid but ends up reducing the real size of the
buffer where to format the first line in the screen to 8 bytes, which
makes the formatting at the title at each refresh to produce just the
string "Samples ", duh, fix it by passing the size of the buffer.
Cc: Adrian Hunter <[email protected]>
Cc: Jin Yao <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Fixes: d10ec006dcd7 ("perf hists browser: Allow passing an initial hotkey")
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions