When a event also carries a event.unit file, having newline char will make perf userspace tool to print the event name in the next line when dumping counter data.
Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Sukadev Bhattiprolu <[email protected]> Cc: Michael Ellerman <[email protected]> Signed-off-by: Madhavan Srinivasan <[email protected]> --- kernel/events/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index 1a3bf48..3b5a372 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -8982,7 +8982,7 @@ ssize_t perf_event_sysfs_show(struct device *dev, struct device_attribute *attr, container_of(attr, struct perf_pmu_events_attr, attr); if (pmu_attr->event_str) - return sprintf(page, "%s\n", pmu_attr->event_str); + return sprintf(page, "%s", pmu_attr->event_str); return 0; } -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

