[PATCH 18/23] perf tools: Change perf_mem__lvl_scnprintf to return nb of displayed bytes

2016-02-15 Thread Jiri Olsa
Moving strncat/strcpy calls into scnprintf to easily track number of displayed bytes. It will be used in following patch. Link: http://lkml.kernel.org/n/tip-9q9h9trua9zljnw26c56m...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/mem-events.c | 13 +++--

[PATCH 18/23] perf tools: Change perf_mem__lvl_scnprintf to return nb of displayed bytes

2016-02-15 Thread Jiri Olsa
Moving strncat/strcpy calls into scnprintf to easily track number of displayed bytes. It will be used in following patch. Link: http://lkml.kernel.org/n/tip-9q9h9trua9zljnw26c56m...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/mem-events.c | 13 +++--