By default, "trace-cmd stat" command prints status of the main ftrace instance. When more instances are configured, the user could be confused which status is displayed. Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@xxxxxxxxx> --- tracecmd/trace-stat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tracecmd/trace-stat.c b/tracecmd/trace-stat.c index c5057978..dcf2789c 100644 --- a/tracecmd/trace-stat.c +++ b/tracecmd/trace-stat.c @@ -920,8 +920,10 @@ static void stat_instance(struct buffer_instance *instance) printf("---------------\n"); printf("Instance: %s\n", tracefs_instance_get_name(instance->tracefs)); - } else + } else { report_instances(); + printf("\nInstance: main\n\n"); + } report_plugin(instance); report_events(instance); -- 2.25.4