lkml.org 
[lkml]   [2017]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/7] perf record: Make __record_options static
    Date
    There's no need for this one to be global.

    Signed-off-by: Jiri Olsa <jolsa@kernel.org>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/n/tip-wbfnc3deti65q8ntw30ljzh8@git.kernel.org
    ---
    tools/perf/builtin-record.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
    index 74d6a035133a..31cf0ce12a65 100644
    --- a/tools/perf/builtin-record.c
    +++ b/tools/perf/builtin-record.c
    @@ -1405,7 +1405,7 @@ static bool dry_run;
    * perf_evlist__prepare_workload, etc instead of fork+exec'in 'perf record',
    * using pipes, etc.
    */
    -struct option __record_options[] = {
    +static struct option __record_options[] = {
    OPT_CALLBACK('e', "event", &record.evlist, "event",
    "event selector. use 'perf list' to list available events",
    parse_events_option),
    --
    2.7.4
    \
     
     \ /
      Last update: 2017-01-03 09:22    [W:2.689 / U:0.228 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site