diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-06-10 14:26:25 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-06-10 15:13:16 -0400 |
commit | fadfddce7903fb9d85f3c440de0bd7997fca3ed9 (patch) | |
tree | 8a13742b81eaadfa2d4bc00c6baf7b1d27ef7220 | |
parent | a1f6bec35b6097cf6f3df43688a281da3c997a09 (diff) | |
download | trace-cmd-fadfddce7903fb9d85f3c440de0bd7997fca3ed9.tar.gz |
trace-cmd stat: Print instance names
If the stats are showing with an instance with a name,
print the name (also add a separator between instances).
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-stat.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/trace-stat.c b/trace-stat.c index cc941a38..4d96b025 100644 --- a/trace-stat.c +++ b/trace-stat.c @@ -865,6 +865,12 @@ static void report_traceon(struct buffer_instance *instance) static void stat_instance(struct buffer_instance *instance) { + if (instance != &top_instance) { + if (instance != first_instance) + printf("---------------\n"); + printf("Instance: %s\n", instance->name); + } + report_plugin(instance); report_events(instance); report_event_filters(instance); |