Skip to content

Commit

Permalink
interconnect: Print the tag in the debugfs summary
Browse files Browse the repository at this point in the history
Now we can have a tag associated with the path. Add this information
to the interconnect_summary file, as the current information in debugfs
is incomplete.

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
  • Loading branch information
Georgi Djakov committed Jan 6, 2020
1 parent 1a0013c commit 2c5127a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/interconnect/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ static void icc_summary_show_one(struct seq_file *s, struct icc_node *n)
if (!n)
return;

seq_printf(s, "%-30s %12u %12u\n",
seq_printf(s, "%-42s %12u %12u\n",
n->name, n->avg_bw, n->peak_bw);
}

static int icc_summary_show(struct seq_file *s, void *data)
{
struct icc_provider *provider;

seq_puts(s, " node avg peak\n");
seq_puts(s, "--------------------------------------------------------\n");
seq_puts(s, " node tag avg peak\n");
seq_puts(s, "--------------------------------------------------------------------\n");

mutex_lock(&icc_lock);

Expand All @@ -58,8 +58,8 @@ static int icc_summary_show(struct seq_file *s, void *data)
if (!r->dev)
continue;

seq_printf(s, " %-26s %12u %12u\n",
dev_name(r->dev), r->avg_bw,
seq_printf(s, " %-27s %12u %12u %12u\n",
dev_name(r->dev), r->tag, r->avg_bw,
r->peak_bw);
}
}
Expand Down

0 comments on commit 2c5127a

Please sign in to comment.