Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1737303

Re: [PATCH 3/4] Add the fp_selection_helper function to set the file pointer for the related functions

From Jiri Olsa <jolsa@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 3/4] Add the fp_selection_helper function to set the file pointer for the related functions
Date 2017-09-22 11:10 +0200
Message-ID <uss8a-4hz-23@gated-at.bofh.it> (permalink)
References <uqXg6-1HP-9@gated-at.bofh.it> <uqXg6-1HP-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Sep 18, 2017 at 01:55:21PM +0800, yuzhoujian wrote:
> Signed-off-by: yuzhoujian <yuzhoujian@didichuxing.com>
> ---
>  tools/perf/builtin-script.c | 24 ++++++++++++++++--------
>  1 file changed, 16 insertions(+), 8 deletions(-)
> 
> diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c
> index f709f6f..89bab68 100644
> --- a/tools/perf/builtin-script.c
> +++ b/tools/perf/builtin-script.c
> @@ -1527,6 +1527,13 @@ static int cleanup_scripting(void)
>  	return scripting_ops ? scripting_ops->stop_script() : 0;
>  }
>  
> +static FILE *fp_selection_helper(bool per_event_dump)
> +{
> +	if (per_event_dump == false)
> +		return stdout;
> +	else
> +		return per_event_dump_file;

when's the per_event_dump_file ever set? 

jirka

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] perf script: Add script per-event-dump support yuzhoujian <ufo19890607@gmail.com> - 2017-09-18 08:00 +0200
  [PATCH 3/4] Add the fp_selection_helper function to set the file pointer for the related functions yuzhoujian <ufo19890607@gmail.com> - 2017-09-18 08:00 +0200
    Re: [PATCH 3/4] Add the fp_selection_helper function to set the file  pointer for the related functions Jiri Olsa <jolsa@redhat.com> - 2017-09-22 11:10 +0200
      Re: [PATCH 3/4] Add the fp_selection_helper function to set the file  pointer for the related functions Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-09-22 16:30 +0200
  [PATCH 1/4] Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script yuzhoujian <ufo19890607@gmail.com> - 2017-09-18 08:00 +0200
    Re: [PATCH 1/4] Add a new element for the struct perf_tool, and add  the --per-event-dump option for perf script Jiri Olsa <jolsa@redhat.com> - 2017-09-22 11:10 +0200
    Re: [PATCH 1/4] Add a new element for the struct perf_tool, and add  the --per-event-dump option for perf script Jiri Olsa <jolsa@redhat.com> - 2017-09-22 11:10 +0200
    Re: [PATCH 1/4] Add a new element for the struct perf_tool, and add  the --per-event-dump option for perf script Jiri Olsa <jolsa@redhat.com> - 2017-09-22 11:10 +0200
  [PATCH 4/4] Replace printf with fprintf for all the output functions yuzhoujian <ufo19890607@gmail.com> - 2017-09-18 08:00 +0200
    Re: [PATCH 4/4] Replace printf with fprintf for all the output  functions Jiri Olsa <jolsa@redhat.com> - 2017-09-22 11:10 +0200
      Re: [PATCH 4/4] Replace printf with fprintf for all the output  functions Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-09-22 16:20 +0200
    Re: [PATCH 4/4] Replace printf with fprintf for all the output  functions Jiri Olsa <jolsa@redhat.com> - 2017-09-22 11:10 +0200
  Re: [PATCH 0/4] perf script: Add script per-event-dump support Jiri Olsa <jolsa@redhat.com> - 2017-09-18 09:30 +0200

csiph-web