Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1342991 > unrolled thread
| Started by | Wang Nan <wangnan0@huawei.com> |
|---|---|
| First post | 2016-02-25 10:00 +0100 |
| Last post | 2016-02-25 14:00 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[RFC PATCH 1/5] perf trace: Apply config options in '.perfconfig' Wang Nan <wangnan0@huawei.com> - 2016-02-25 10:00 +0100
Re: [RFC PATCH 1/5] perf trace: Apply config options in '.perfconfig' Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-02-25 14:00 +0100
| From | Wang Nan <wangnan0@huawei.com> |
|---|---|
| Date | 2016-02-25 10:00 +0100 |
| Subject | [RFC PATCH 1/5] perf trace: Apply config options in '.perfconfig' |
| Message-ID | <r5ZWa-1ea-13@gated-at.bofh.it> |
'perf trace' doesn't read and apply options in ~/.perfconfig. If a BPF script is passed to 'perf trace --ev' and clang is not in $PATH, perf trace doesn't compile the script even clang-path is configured in ~/.perfconfig. This patch makes 'perf trace' read and apply default config options from that file. Signed-off-by: Wang Nan <wangnan0@huawei.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Li Zefan <lizefan@huawei.com> Cc: pi3orama@163.com --- tools/perf/builtin-trace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 20916dd..6c52f3c 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -3108,6 +3108,8 @@ int cmd_trace(int argc, const char **argv, const char *prefix __maybe_unused) goto out; } + perf_config(perf_default_config, NULL); + argc = parse_options_subcommand(argc, argv, trace_options, trace_subcommands, trace_usage, PARSE_OPT_STOP_AT_NON_OPTION); -- 1.8.3.4
[toc] | [next] | [standalone]
| From | Arnaldo Carvalho de Melo <acme@kernel.org> |
|---|---|
| Date | 2016-02-25 14:00 +0100 |
| Message-ID | <r63Gp-3TO-1@gated-at.bofh.it> |
| In reply to | #1342991 |
Em Thu, Feb 25, 2016 at 08:51:51AM +0000, Wang Nan escreveu: > 'perf trace' doesn't read and apply options in ~/.perfconfig. If a BPF > script is passed to 'perf trace --ev' and clang is not in $PATH, > perf trace doesn't compile the script even clang-path is configured in > ~/.perfconfig. > > This patch makes 'perf trace' read and apply default config options > from that file. Right, I wonder if we can't move this initialization to perf's main instead of having to call this for each subcommand... > Signed-off-by: Wang Nan <wangnan0@huawei.com> > Cc: Arnaldo Carvalho de Melo <acme@redhat.com> > Cc: Jiri Olsa <jolsa@kernel.org> > Cc: Li Zefan <lizefan@huawei.com> > Cc: pi3orama@163.com > --- > tools/perf/builtin-trace.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c > index 20916dd..6c52f3c 100644 > --- a/tools/perf/builtin-trace.c > +++ b/tools/perf/builtin-trace.c > @@ -3108,6 +3108,8 @@ int cmd_trace(int argc, const char **argv, const char *prefix __maybe_unused) > goto out; > } > > + perf_config(perf_default_config, NULL); > + > argc = parse_options_subcommand(argc, argv, trace_options, trace_subcommands, > trace_usage, PARSE_OPT_STOP_AT_NON_OPTION); > > -- > 1.8.3.4
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web