Re: [PATCH 2/2] trace-cmd: replace show_file() -> show_instance_file()
From: Steven Rostedt
Date: Thu Jul 06 2017 - 18:29:43 EST
On Mon, 5 Jun 2017 11:31:18 +0200
Federico Vaga <federico.vaga@xxxxxxxxxx> wrote:
> show_file(name) and show_instance_file(&top_instance, name) are
> equivalent.
>
> Remove the show_file() function in order to have a single function for
> this task.
Actually I find nothing wrong with having a helper function like this.
IIRC, show_file() was first, and then show_instance_file() came later.
There's some files that only exist for the top_instance, and I like the
fact that this is annotated that way.
I'm curious to know what the benefit of removing show_file() is?
-- Steve
>
> Signed-off-by: Federico Vaga <federico.vaga@xxxxxxxxxx>
> ---
> trace-list.c | 21 ++++++---------------
> trace-local.h | 2 --
> trace-show.c | 18 ++----------------
> trace-snapshot.c | 2 +-
> 4 files changed, 9 insertions(+), 34 deletions(-)
\