Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1622733 > unrolled thread
| Started by | Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> |
|---|---|
| First post | 2017-04-13 08:10 +0200 |
| Last post | 2017-04-17 10:50 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH] perf trace: Add usage of --no-syscalls in man page Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> - 2017-04-13 08:10 +0200
Re: [PATCH] perf trace: Add usage of --no-syscalls in man page Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-04-13 16:00 +0200
Re: [PATCH] perf trace: Add usage of --no-syscalls in man page Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> - 2017-04-14 08:40 +0200
[tip:perf/core] perf trace: Add usage of --no-syscalls in man page tip-bot for Ravi Bangoria <tipbot@zytor.com> - 2017-04-17 10:50 +0200
| From | Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> |
|---|---|
| Date | 2017-04-13 08:10 +0200 |
| Subject | [PATCH] perf trace: Add usage of --no-syscalls in man page |
| Message-ID | <tvG77-7eb-1@gated-at.bofh.it> |
perf trace supports --no-syscalls option but it's not listed in
the man page. (Though, I see an example using --no-syscalls in
EXAMPLES section.)
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
---
tools/perf/Documentation/perf-trace.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/perf/Documentation/perf-trace.txt b/tools/perf/Documentation/perf-trace.txt
index afd7286..c1e3288 100644
--- a/tools/perf/Documentation/perf-trace.txt
+++ b/tools/perf/Documentation/perf-trace.txt
@@ -123,7 +123,8 @@ the thread executes on the designated CPUs. Default is to monitor all CPUs.
major or all pagefaults. Default value is maj.
--syscalls::
- Trace system calls. This options is enabled by default.
+ Trace system calls. This options is enabled by default, disable with
+ --no-syscalls.
--call-graph [mode,type,min[,limit],order[,key][,branch]]::
Setup and enable call-graph (stack chain/backtrace) recording.
--
2.1.4
[toc] | [next] | [standalone]
| From | Arnaldo Carvalho de Melo <acme@kernel.org> |
|---|---|
| Date | 2017-04-13 16:00 +0200 |
| Message-ID | <tvNrY-3KR-31@gated-at.bofh.it> |
| In reply to | #1622733 |
Em Thu, Apr 13, 2017 at 11:32:12AM +0530, Ravi Bangoria escreveu: > perf trace supports --no-syscalls option but it's not listed in > the man page. (Though, I see an example using --no-syscalls in > EXAMPLES section.) Thanks, applied. I'm thinking about making --no-syscalls the default when 'trace' is hardlinked to 'perf', i.e. 'perf trace' remains as it is, but if one calls 'trace', then --no-syscalls is the default, as after non-syscall events got supported I find myself using --no-syscalls way too often, what do you think? Or perhaps have a 'perf strace' to try to have as much in common with 'strace' in terms of default behaviour, options, etc? - Arnaldo > Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> > --- > tools/perf/Documentation/perf-trace.txt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/Documentation/perf-trace.txt b/tools/perf/Documentation/perf-trace.txt > index afd7286..c1e3288 100644 > --- a/tools/perf/Documentation/perf-trace.txt > +++ b/tools/perf/Documentation/perf-trace.txt > @@ -123,7 +123,8 @@ the thread executes on the designated CPUs. Default is to monitor all CPUs. > major or all pagefaults. Default value is maj. > > --syscalls:: > - Trace system calls. This options is enabled by default. > + Trace system calls. This options is enabled by default, disable with > + --no-syscalls. > > --call-graph [mode,type,min[,limit],order[,key][,branch]]:: > Setup and enable call-graph (stack chain/backtrace) recording. > -- > 2.1.4
[toc] | [prev] | [next] | [standalone]
| From | Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> |
|---|---|
| Date | 2017-04-14 08:40 +0200 |
| Message-ID | <tw33H-6aD-1@gated-at.bofh.it> |
| In reply to | #1623054 |
Hi Arnaldo, Thanks for pulling the patch. On Thursday 13 April 2017 07:21 PM, Arnaldo Carvalho de Melo wrote: > Em Thu, Apr 13, 2017 at 11:32:12AM +0530, Ravi Bangoria escreveu: >> perf trace supports --no-syscalls option but it's not listed in >> the man page. (Though, I see an example using --no-syscalls in >> EXAMPLES section.) > Thanks, applied. > > I'm thinking about making --no-syscalls the default when 'trace' is > hardlinked to 'perf', i.e. 'perf trace' remains as it is, but if one > calls 'trace', then --no-syscalls is the default, as after non-syscall > events got supported I find myself using --no-syscalls way too often, > what do you think? +1. Makes sense to me. I also use 'perf trace' more often for non-syscall events. So.. if others are okay please do it. -Ravi
[toc] | [prev] | [next] | [standalone]
| From | tip-bot for Ravi Bangoria <tipbot@zytor.com> |
|---|---|
| Date | 2017-04-17 10:50 +0200 |
| Subject | [tip:perf/core] perf trace: Add usage of --no-syscalls in man page |
| Message-ID | <txawa-6Xn-17@gated-at.bofh.it> |
| In reply to | #1622733 |
Commit-ID: 739cf305512cb852e852099f9e12dd66bf4df076
Gitweb: http://git.kernel.org/tip/739cf305512cb852e852099f9e12dd66bf4df076
Author: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
AuthorDate: Thu, 13 Apr 2017 11:32:12 +0530
Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Thu, 13 Apr 2017 10:54:04 -0300
perf trace: Add usage of --no-syscalls in man page
perf trace supports --no-syscalls option but it's not listed in the man
page. (Though, I see an example using --no-syscalls in EXAMPLES
section.)
Committer note:
The --no-syscalls option tells 'perf trace' not to automagically ask for
raw_syscalls:sys_{enter,exit} to then format it in a strace like way.
This become more used as 'perf trace' got support for arbitrary events,
such as tracepoints, so more and more we use:
# perf trace --no-syscalls -e nmi:*
0.000 nmi:nmi_handler:perf_event_nmi_handler() delta_ns: 36649 handled: 1)
0.019 nmi:nmi_handler:nmi_cpu_backtrace_handler() delta_ns: 2907 handled: 0)
0.676 nmi:nmi_handler:perf_event_nmi_handler() delta_ns: 9401 handled: 1)
0.680 nmi:nmi_handler:nmi_cpu_backtrace_handler() delta_ns: 288 handled: 0)
0.701 nmi:nmi_handler:perf_event_nmi_handler() delta_ns: 4977 handled: 1)
0.703 nmi:nmi_handler:nmi_cpu_backtrace_handler() delta_ns: 67 handled: 0)
0.736 nmi:nmi_handler:perf_event_nmi_handler() delta_ns: 8549 handled: 1)
^C#
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexis Berlemont <alexis.berlemont@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1492063332-5745-1-git-send-email-ravi.bangoria@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/Documentation/perf-trace.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/perf/Documentation/perf-trace.txt b/tools/perf/Documentation/perf-trace.txt
index afd7286..c1e3288 100644
--- a/tools/perf/Documentation/perf-trace.txt
+++ b/tools/perf/Documentation/perf-trace.txt
@@ -123,7 +123,8 @@ the thread executes on the designated CPUs. Default is to monitor all CPUs.
major or all pagefaults. Default value is maj.
--syscalls::
- Trace system calls. This options is enabled by default.
+ Trace system calls. This options is enabled by default, disable with
+ --no-syscalls.
--call-graph [mode,type,min[,limit],order[,key][,branch]]::
Setup and enable call-graph (stack chain/backtrace) recording.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web