,
unanchor these deferred urbs during disconnect, to free them
up.
Signed-off-by: Hemant Kumar hema...@codeaurora.org
---
drivers/net/usb/usbnet.c |3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index 1867fe2..00b7598 100644
checks.
- Ignored semaphore enabled SDT notes.
- Added documentation.
- Removed some redundancies.
TODO:
- Recognizing SDT notes' arguments and support to probe on them.
---
Hemant Kumar (3):
SDT markers listing by perf:
Support for perf to probe into SDT markers:
Documentation
libc:my_event -aR sleep 1
Signed-off-by: Hemant Kumar Shaw hks...@linux.vnet.ibm.com
---
tools/perf/builtin-probe.c| 11 +
tools/perf/util/probe-event.c | 89 +
tools/perf/util/probe-event.h |2 +
tools/perf/util/symbol-elf.c | 80
/lib64/libc.so.6
Output :
%libc:setjmp
%libc:longjmp
%libc:longjmp_target
%libc:lll_futex_wake
%libc:lll_lock_wait_private
%libc:longjmp
%libc:longjmp_target
%libc:lll_futex_wake
Signed-off-by: Hemant Kumar Shaw hks...@linux.vnet.ibm.com
---
tools/perf/builtin-probe.c| 24 +-
tools/perf
This patch adds documentation regarding perf support
to SDT notes/markers.
Signed-off-by: Hemant Kumar Shaw hks...@linux.vnet.ibm.com
---
tools/perf/Documentation/perf-probe.txt | 15 ++-
tools/perf/Documentation/sdt-probes.txt | 163 +++
2 files changed, 176
.
- Removed some redundancies.
- Updated with error codes.
- Rebased it to latest kernel tip.
TODO:
- Recognizing arguments and support to probe on them.
---
Hemant Kumar (3):
SDT markers listing by perf:
Support for perf to probe into SDT markers:
Documentation regarding perf/sdt
/libc.so.6
Output :
%libc:setjmp
%libc:longjmp
%libc:longjmp_target
%libc:lll_futex_wake
%libc:lll_lock_wait_private
%libc:longjmp
%libc:longjmp_target
%libc:lll_futex_wake
Signed-off-by: Hemant Kumar Shaw hks...@linux.vnet.ibm.com
---
tools/perf/builtin-probe.c| 41
tools/perf/util
the same '-a' option.
Usage:
perf probe -x /lib64/libc.so.6 -a 'my_event=%libc:setjmp'
Output:
Added new event:
libc:my_event(on 0x35981)
You can now use it in all perf tools, such as:
perf record -e libc:my_event -aR sleep 1
Signed-off-by: Hemant Kumar Shaw hks...@linux.vnet.ibm.com
This patch adds documentation regarding perf support
to SDT notes/markers.
Signed-off-by: Hemant Kumar Shaw hks...@linux.vnet.ibm.com
---
tools/perf/Documentation/perf-probe.txt | 17 +++
tools/perf/Documentation/sdt-probes.txt | 184 +++
2 files changed, 199
Hi Masami,
On 10/19/2013 08:57 PM, Masami Hiramatsu wrote:
(2013/10/18 23:44), Hemant Kumar wrote:
[...]
+int show_sdt_notes(const char *target)
+{
+ int ret;
+ LIST_HEAD(sdt_notes);
+
+ ret = get_sdt_note_list(sdt_notes, target);
+ if (!list_empty(sdt_notes
that.
[...]
--
Thanks
Hemant Kumar
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
.
https://lkml.org/lkml/2013/10/23/10
- Recognizing arguments and support to probe on them.
---
Hemant Kumar (2):
perf/sdt : Listing of SDT markers by perf
perf/sdt : Documentation
tools/perf/Documentation/SDT-markers.txt | 122 +++
tools/perf/Documentation/perf-list.txt
Documentation for perf listing of SDT markers.
---
tools/perf/Documentation/SDT-markers.txt | 122 ++
tools/perf/Documentation/perf-list.txt |8 +-
2 files changed, 128 insertions(+), 2 deletions(-)
create mode 100644 tools/perf/Documentation/SDT-markers.txt
This patch enables perf to list the SDT markers present in a system. It looks
in dsos given by ldconfig --print-cache and for other binaries, it looks into
the PATH environment variable. After preparing a list of the binaries, then
it starts searching for SDT markers in them.
To find the SDT
On 02/25/2014 12:26 PM, Namhyung Kim wrote:
Hi Hemant,
On Mon, 24 Feb 2014 14:45:43 +0530, Hemant Kumar wrote:
This patch enables perf to list the SDT markers present in a system. It looks
in dsos given by ldconfig --print-cache and for other binaries, it looks into
the PATH environment
On 02/25/2014 05:14 PM, Masami Hiramatsu wrote:
(2014/02/24 18:14), Hemant Kumar wrote:
This patchset helps in listing dtrace style markers(SDT) present in user space
applications through perf.
Notes/markers are placed at important places by the
developers. They have a negligible overhead when
On 02/26/2014 01:48 PM, Namhyung Kim wrote:
Hi Masami and Hemant,
On Tue, 25 Feb 2014 21:27:07 +0530, Hemant Kumar wrote:
On 02/25/2014 05:14 PM, Masami Hiramatsu wrote:
(2014/02/24 18:14), Hemant Kumar wrote:
First, scan the binaries using :
# perf list sdt --scan
Creating a cache of SDT
On 02/26/2014 03:12 PM, Masami Hiramatsu wrote:
(2014/02/26 18:03), Hemant Kumar wrote:
On 02/26/2014 01:48 PM, Namhyung Kim wrote:
Hi Masami and Hemant,
On Tue, 25 Feb 2014 21:27:07 +0530, Hemant Kumar wrote:
On 02/25/2014 05:14 PM, Masami Hiramatsu wrote:
(2014/02/24 18:14), Hemant Kumar
this cache should be? Keeping it in tracing directory inside
the debugfs
directory should seem more feasible. And, shall this cache be shareable?
2. perf record is a performance intensive process, can we allow the
delay due to
this searching process here?
etc.
--
Thanks
Hemant Kumar
On 10/29/2013 07:35 PM, Pekka Enberg wrote:
On 10/29/2013 11:55 AM, Hemant Kumar wrote:
1. Where this cache should be? Keeping it in tracing directory inside
the debugfs
directory should seem more feasible. And, shall this cache be shareable?
You can't share all of the cache because
, we can use ldconfig.
$ ldconfig --print-cache
shows what dynamic libraries will be loaded. On my own laptop (running
ubuntu13.04) shows ~1000 libs.
Thank you,
Ah! that seems nice... will save a lot of time!
--
Thanks
Hemant Kumar
--
To unsubscribe from this list: send the line unsubscribe
is now done in print_sdt_note_info() and
cleanup_sdt_note_info().
- Some small improvements have been made.
TODO:
- Recognizing arguments and support to probe on them.
---
Hemant Kumar (3):
SDT markers listing by perf:
Support for perf to probe into SDT markers:
Documentation
/libc.so.6
Output :
%libc:setjmp
%libc:longjmp
%libc:longjmp_target
%libc:lll_futex_wake
%libc:lll_lock_wait_private
%libc:longjmp
%libc:longjmp_target
%libc:lll_futex_wake
Signed-off-by: Hemant Kumar Shaw hks...@linux.vnet.ibm.com
---
tools/perf/builtin-probe.c| 41 +++
tools/perf/util
This patch adds documentation for perf support to SDT notes/markers.
Signed-off-by: Hemant Kumar Shaw hks...@linux.vnet.ibm.com
---
tools/perf/Documentation/perf-probe.txt | 17 +++
tools/perf/Documentation/sdt-probes.txt | 184 +++
2 files changed, 199 insertions
the same '-a' option.
Usage:
perf probe -x /lib64/libc.so.6 -a 'my_event=%libc:setjmp'
Output:
Added new event:
libc:my_event(on 0x35981)
You can now use it in all perf tools, such as:
perf record -e libc:my_event -aR sleep 1
Signed-off-by: Hemant Kumar Shaw hks...@linux.vnet.ibm.com
Hi,
On 10/24/2013 11:15 AM, Masami Hiramatsu wrote:
(2013/10/23 14:05), Hemant Kumar wrote:
This allows perf to probe into the sdt markers/notes present in
the libraries and executables. We try to find the associated location
and handle prelinking (since, stapsdt notes section is not allocated
This patch enables perf to probe on the marker name specified on the command
line.
---
tools/perf/builtin-probe.c|7 +++
tools/perf/util/probe-event.c | 11
tools/perf/util/symbol-elf.c | 112 +
tools/perf/util/symbol.h |5 ++
4
.
Usage :
./perf probe --list -x /lib64/libc.so.6
Output :
setjmp
longjmp
longjmp_target
lll_futex_wake
lll_lock_wait_private
longjmp
longjmp_target
lll_futex_wake
Total markers = 8
Signed-off-by: Hemant Kumar Shaw hks...@linux.vnet.ibm.com
---
tools/perf/builtin-probe.c| 26
On 07/18/2014 04:53 PM, Masami Hiramatsu wrote:
Hi Hemant,
(2014/07/17 14:53), Hemant Kumar wrote:
This patchset helps in listing dtrace style markers(SDT) present in user space
applications through perf.
Notes/markers are placed at important places by the
developers. They have a negligible
Hi Andi and Namhyung,
On 07/21/2014 08:08 AM, Namhyung Kim wrote:
Hi Andi,
On Fri, 18 Jul 2014 10:50:45 -0700, Andi Kleen wrote:
Hemant Kumar hem...@linux.vnet.ibm.com writes:
+/*
+ * Finds out the libraries present in a system as shown by the command
+ * ldconfig --print-cache. Uses
On 07/20/2014 08:46 AM, Masami Hiramatsu wrote:
(2014/07/20 2:32), Hemant Kumar wrote:
[SNIP]
First, scan the binaries using :
# perf list sdt --scan
At a glance, maybe we'd better have perf sdt-cache as like as perf buildid-cache
for manage sdt information. what would you think?
I agree
Hi Namhyung,
On 07/21/2014 08:31 AM, Namhyung Kim wrote:
Hi Hemant,
On Thu, 17 Jul 2014 11:25:12 +0530, Hemant Kumar wrote:
This patch enables perf to list the SDT markers present in a system. It looks
in dsos given by ldconfig --print-cache and for other binaries, it looks into
the PATH
Hi Andi,
On 07/18/2014 11:20 PM, Andi Kleen wrote:
Hemant Kumar hem...@linux.vnet.ibm.com writes:
First I should say supporting these probes is very useful. Thanks for
working on this.
Thanks a lot for the appreciation.
+
+#define SDT_CACHE_DIR /var/cache/perf/
This requires running
arguments and support to probe on them.
---
Hemant Kumar (3):
This patch enables perf to list the SDT markers present in a system. It
looks
This patch enables perf to look for SDT markers in a single file.
This patch adds the required documentation for perf support to SDT
This patch enables perf to look for SDT markers in a single file.
The previous patch looks for SDT markers in a set of default paths and records
them in a SDT cache. However, not all the SDT markers are present in the
SDT cache file.
An individual file argument can be given to perf list to find
This patch enables perf to list the SDT markers present in a system. It looks
in dsos given by ldconfig --print-cache and for other binaries, it looks into
the PATH environment variable. After preparing a list of the binaries, then
it starts searching for SDT markers in them.
To find the SDT
This patch adds the required documentation for perf support to SDT markers.
---
tools/perf/Documentation/SDT-markers.txt | 123 ++
tools/perf/Documentation/perf-list.txt |7 +-
2 files changed, 129 insertions(+), 1 deletion(-)
create mode 100644
. The perf probe has such options and upcoming
sdt-cache command also.
Thank you for working on this.
[SNIP]
--
Thanks,
Hemant Kumar
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at http
On 10/22/2014 03:11 PM, Masami Hiramatsu wrote:
(2014/10/22 17:20), Hemant Kumar wrote:
From file_sdt_ent we will find out the file name.
Convert this sdt note into a perf event and then write this into uprobe_events
file to be able to record the event.
Then, corresponding entries are added
On 10/22/2014 10:11 AM, Namhyung Kim wrote:
On Fri, 10 Oct 2014 16:28:24 +0530, Hemant Kumar wrote:
This patch adds a new sub-command to perf : sdt-cache.
sdt-cache command can be used to add SDT events.
When user invokes perf sdt-cache add file-name, a hash table/list is
created named
Hi Masami,
On 10/22/2014 12:15 PM, Masami Hiramatsu wrote:
Hi Hemant,
(2014/10/10 19:59), Hemant Kumar wrote:
The SDT events are already stored in a cache file
(/var/cache/perf/perf-sdt-file.cache).
Please describe what this patch does at first.
Sure, will do that.
Although
On 10/22/2014 08:09 AM, Namhyung Kim wrote:
Hi Hemant,
On Fri, 10 Oct 2014 16:27:53 +0530, Hemant Kumar wrote:
This patch serves the initial support to identify and list SDT events in
binaries.
When programs containing SDT markers are compiled, gcc with the help of
assembler
directives
in lkml.
https://lkml.org/lkml/2013/10/23/10
- Recognizing arguments and support to probe on them.
- Add semaphore support.
---
Hemant Kumar (3):
Raw SDT parsing functions
Support perf-list to print SDT events in a single file
Adds documentation for perf support to SDT events
a given ELF, find out the SDT section, parse
the
relevant details, adjust the location (if necessary) and populate them in a
list.
Signed-off-by : Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/util/symbol-elf.c | 244 ++
tools/perf/util/symbol.h
looks for SDTs in that file using the ELF functions
from
the previous patch (in this series) and dumps them on stdout.
Signed-off-by : Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/Makefile.perf |1
tools/perf/builtin-list.c |2 +
tools/perf/util/parse-events.h |2
Adds documentation for perf support to SDT events.
Signed-off-by : Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/Documentation/SDT-support.txt | 48 ++
tools/perf/Documentation/perf-list.txt |4 ++-
2 files changed, 51 insertions(+), 1 deletion
support to probe these SDT markers and integrate with a previous patch
(support to perf to probe SDT markers) posted in lkml.
https://lkml.org/lkml/2013/10/23/10
- Recognizing arguments and support to probe on them.
- Add semaphore support.
---
Hemant Kumar (3):
Raw SDT parsing functions
the SDT section, parse
the
relevant details, adjust the location (if necessary) and populate them in a
list.
Signed-off-by : Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/util/symbol-elf.c | 244 ++
tools/perf/util/symbol.h | 19 +++
2
looks for SDTs in that file using the ELF functions
from
the previous patch (in this series) and dumps them on stdout.
Signed-off-by : Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/Makefile.perf |1
tools/perf/builtin-list.c |2 +
tools/perf/util/parse-events.h |2
Adds documentation for perf support to SDT events.
Signed-off-by : Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/Documentation/SDT-support.txt | 48 ++
tools/perf/Documentation/perf-list.txt |4 ++-
2 files changed, 51 insertions(+), 1 deletion
Hi Masami,
On 08/28/2014 04:24 PM, Masami Hiramatsu wrote:
(2014/08/28 6:50), Hemant Kumar wrote:
[...]
+/*
+ * get_sdt_note_info(): flush the SDT notes onto stdout
+ */
+static void get_sdt_note_info(struct list_head *start, const char *target)
+{
+ struct sdt_note *pos
Hi Namhyung,
On 10/07/2014 07:50 AM, Namhyung Kim wrote:
Hi Hemant,
On Wed, 01 Oct 2014 08:17:24 +0530, Hemant Kumar wrote:
This patch serves as the basic support to identify and list SDT events in
binaries.
When programs containing SDT markers are compiled, gcc with the help of
assembler
On 10/07/2014 08:29 AM, Namhyung Kim wrote:
On Wed, 01 Oct 2014 08:17:48 +0530, Hemant Kumar wrote:
This patch adds a new sub-command to perf : sdt-cache.
sdt-cache command can be used to add, remove and dump SDT events.
This patch adds support to only add the SDT events. The rest
On 10/07/2014 08:47 AM, Namhyung Kim wrote:
On Wed, 01 Oct 2014 08:18:41 +0530, Hemant Kumar wrote:
This patch adds the support to delete SDT events from the cache.
To delete an event corresponding to a file, first the cache is read into
the file_hash list. The key is calculated from the file
On 10/03/2014 06:17 PM, Masami Hiramatsu wrote:
(2014/10/01 0:32), Hemant Kumar wrote:
This patch adds a new sub-command to perf : sdt-cache.
When I ran perf without option, sdt-cache did not appear. You should update
command-list.txt and add Documentation/perf-sdt-cache.txt, so that sdt
On 10/03/2014 05:09 PM, Masami Hiramatsu wrote:
(2014/10/01 11:47), Hemant Kumar wrote:
This patch serves as the basic support to identify and list SDT events in
binaries.
When programs containing SDT markers are compiled, gcc with the help of
assembler
directives identifies them and places
On 10/03/2014 06:25 PM, Masami Hiramatsu wrote:
(2014/10/01 11:48), Hemant Kumar wrote:
@@ -35,10 +45,13 @@ int cmd_sdt_cache(int argc, const char **argv, const char
*prefix __maybe_unused
OPT_CALLBACK('a', add, NULL, filename,
add SDT events from
and support to probe on them.
---
Hemant Kumar (5):
perf/sdt: ELF support for SDT
perf/sdt: Add SDT events into a cache
perf/sdt: Show SDT cache contents
perf/sdt: Delete SDT events from cache
perf/sdt: Add support to perf record to trace SDT events
tools/perf
the SDT section, parse
the
relevant details, adjust the location (if necessary) and populate them in a
list.
Some improvements have been made in this patch as suggested by Namhyung Kim.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/util/symbol-elf.c | 207
events in that file is created and assigned to sdt_list of
file_sdt_ent.
Example usage :
# ./perf sdt-cache --add /home/user_app
4 events added for /home/user_app!
# ./perf sdt-cache --add /lib64/libc.so.6
8 events added for /usr/lib64/libc-2.16.so!
Signed-off-by: Hemant Kumar hem
%libc:lll_lock_wait_private
%libc:lll_futex_wake
%libc:longjmp_target
%libc:longjmp
%libc:setjmp
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/builtin-sdt-cache.c | 26 +-
tools/perf/util/parse-events.h |1 +
tools/perf/util/sdt.c | 47
entry. Once, it is found, its contents are all freed up.
# ./perf sdt-cache --del /usr/lib64/libc-2.16.so
8 events removed for /usr/lib64/libc-2.16.so!
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/builtin-sdt-cache.c | 28 +++-
tools/perf/util/parse
be recorded simultaneously.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/builtin-record.c| 21
tools/perf/util/parse-events.c |7 +
tools/perf/util/parse-events.h |3 +
tools/perf/util/probe-event.c | 120 -
tools/perf/util/probe-event.h
Hi Masami,
On 10/01/2014 09:38 PM, Masami Hiramatsu wrote:
Hi,
(2014/10/01 0:29), Hemant Kumar wrote:
This patchset helps in listing dtrace style markers(SDT) present in user space
applications through perf.
Notes/markers are placed at important places by the
developers. They have
on them.
---
Hemant Kumar (5):
perf/sdt: ELF support for SDT
perf/sdt: Add SDT events into a cache
perf/sdt: Show SDT cache contents
perf/sdt: Delete SDT events from cache
perf/sdt: Add support to perf record to trace SDT events
tools/perf/Makefile.perf |3
the SDT section, parse
the
relevant details, adjust the location (if necessary) and populate them in a
list.
Made the necessary changes as suggested by Namhyung Kim.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/util/symbol-elf.c | 207
%libc:lll_lock_wait_private
%libc:lll_futex_wake
%libc:longjmp_target
%libc:longjmp
%libc:setjmp
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/builtin-sdt-cache.c | 26 +-
tools/perf/util/parse-events.h |1 +
tools/perf/util/sdt.c | 47
be recorded simultaneously.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/builtin-record.c| 21
tools/perf/util/parse-events.c |7 +
tools/perf/util/parse-events.h |3 +
tools/perf/util/probe-event.c | 120 -
tools/perf/util/probe-event.h
events in that file is created and assigned to sdt_list of
file_sdt_ent.
Example usage :
# ./perf sdt-cache --add /home/user_app
4 events added for /home/user_app!
# ./perf sdt-cache --add /lib64/libc.so.6
8 events added for /usr/lib64/libc-2.16.so!
Signed-off-by: Hemant Kumar hem
entry. Once, it is found, its contents are all freed up.
# ./perf sdt-cache --del /usr/lib64/libc-2.16.so
8 events removed for /usr/lib64/libc-2.16.so!
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/builtin-sdt-cache.c | 28 +++-
tools/perf/util/parse
;
}
- printf(Removed event: %s\n, ent-s);
+ pr_info(Removed event: %s\n, ent-s);
return 0;
error:
pr_warning(Failed to delete event: %s\n,
--
Thanks,
Hemant Kumar
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message
on them.
---
Hemant Kumar (5):
perf/sdt: ELF support for SDT
perf/sdt: Add SDT events into a cache
perf/sdt: Show SDT cache contents
perf/sdt: Delete SDT events from cache
perf/sdt: Add support to perf record to trace SDT events
tools/perf/Documentation/perf-sdt
section and the semaphore address.
Then, we find the provider name and the SDT marker name and then follow the
arguments.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
Acked-by: Namhyung Kim namhy...@kernel.org
---
tools/perf/util/symbol-elf.c | 252
%libc:lll_lock_wait_private
%libc:lll_futex_wake
%libc:longjmp_target
%libc:longjmp
%libc:setjmp
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/Documentation/perf-sdt-cache.txt |7 +++-
tools/perf/builtin-sdt-cache.c | 28 +++-
tools/perf
:
# ./perf sdt-cache --add /home/user_app
4 events added for /home/user_app
# ./perf sdt-cache --add /lib64/libc.so.6
8 events added for /usr/lib64/libc-2.16.so
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/Documentation/perf-sdt-cache.txt | 27 +
tools/perf
entry. Once, it is found, its contents are all freed up.
# ./perf sdt-cache --del /usr/lib64/libc-2.16.so
8 event(s) removed for /usr/lib64/libc-2.16.so
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/Documentation/perf-sdt-cache.txt |6 +++-
tools/perf/builtin-sdt
'
# Event count (approx.): 1
#
# Overhead Command Shared Object Symbol
# ... . ...
#
100.00% sleeplibc-2.16.so [.] __sigsetjmp
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/builtin-probe.c |5 +
tools/perf/builtin
file.
What would you think?
p:PROBE/EVENT _text+OFFSET [ARGS]
Normal probes and SDT cache entries can be mixed in a cache file, we'll
load all the entries and filter by % prefixes.
Thank you,
--
Thanks,
Hemant Kumar
--
To unsubscribe from this list: send the line unsubscribe linux
necessary changes and modifications suggested by
Masami and Namhyung.
TODO:
- Add support to add most of the SDT events on a system to the cache.
- Recognizing arguments and support to probe on them.
---
Hemant Kumar (5):
perf/sdt: ELF support for SDT
perf/sdt: Add SDT events
the SDT section, parse
the
relevant details, adjust the location (if necessary) and populate them in a
list.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/util/symbol-elf.c | 257 ++
tools/perf/util/symbol.h | 21 +++
2 files
:
# ./perf sdt-cache --add /home/user_app
4 events added for /home/user_app
# ./perf sdt-cache --add /lib64/libc.so.6
8 events added for /usr/lib64/libc-2.16.so
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/Documentation/perf-sdt-cache.txt | 27 +
tools/perf
%libc:lll_lock_wait_private
%libc:lll_futex_wake
%libc:longjmp_target
%libc:longjmp
%libc:setjmp
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/Documentation/perf-sdt-cache.txt |7 +++-
tools/perf/builtin-sdt-cache.c | 27 +++
tools/perf/util/parse-events.h
entry. Once, it is found, its contents are freed up.
# ./perf sdt-cache --del /usr/lib64/libc-2.16.so
8 events removed for /usr/lib64/libc-2.16.so
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/Documentation/perf-sdt-cache.txt |6 +++-
tools/perf/builtin-sdt-cache.c
simultaneously.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
tools/perf/builtin-record.c| 22 +
tools/perf/util/parse-events.c |6 +
tools/perf/util/parse-events.h |3 +
tools/perf/util/probe-event.c | 121 +-
tools/perf/util/probe-event.h |7
:28 +0530, Hemant Kumar wrote:
This patch adds support to perf to record SDT events. When invoked,
the SDT event is looked up in the sdt-cache. If its found, an entry is
made silently to uprobe_events file and then recording is invoked, and
then the entry for the SDT event in uprobe_events
Hi Masami,
Hi,
(2014/11/04 17:06), Hemant Kumar wrote:
Hi Namhyung,
On 11/04/2014 01:08 PM, Namhyung Kim wrote:
Hi Hemant,
As you know, you need to keep an eye on how (kprobes) event cache
patchset from Masami settles down. For those who aren't CC'ed, please
see the link below:
https
On 11/05/2014 12:36 PM, Namhyung Kim wrote:
On Tue, 04 Nov 2014 21:56:53 +0900, Masami Hiramatsu wrote:
Hi,
(2014/11/04 17:06), Hemant Kumar wrote:
Hi Namhyung,
On 11/04/2014 01:08 PM, Namhyung Kim wrote:
Hi Hemant,
As you know, you need to keep an eye on how (kprobes) event cache
On 11/05/2014 02:35 PM, Masami Hiramatsu wrote:
(2014/11/05 16:06), Namhyung Kim wrote:
On Tue, 04 Nov 2014 21:56:53 +0900, Masami Hiramatsu wrote:
Hi,
(2014/11/04 17:06), Hemant Kumar wrote:
Hi Namhyung,
On 11/04/2014 01:08 PM, Namhyung Kim wrote:
Hi Hemant,
As you know, you need
report --event=vmexit
This should show the exit events along with the exit reasons.
The second patch in this series adds support to show the hcall events too with:
# perf kvm stat report --event=syscall
---
Hemant Kumar (1):
perf/kvm: perf-kvm-stat to report syscalls
Srikar Dronamraju (1
20 0.74% 2.19% 2.22us 4.72us
3.17us ( +- 5.96% )
Total Samples:2690, Total events handled time:2896.94us.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/asm/hvcall.h | 120 --
arch/powerpc/include
-by: Srikar Dronamraju sri...@linux.vnet.ibm.com
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/uapi/asm/kvm_perf.h | 15
arch/powerpc/include/uapi/asm/trace_book3s.h | 33 ++
arch/powerpc/kvm/trace_book3s.h | 32
*session);
+struct strlist *build_id_cache__list_build_ids(const char *pathname);
bool build_id_cache__cached(const char *sbuild_id);
int build_id_cache__add_s(const char *sbuild_id,
const char *name, bool is_kallsyms, bool is_vdso);
--
Thanks,
Hemant Kumar
kvm stat report --event=vmexit
This should show the exit events along with the exit reasons.
The second patch in this series adds support to show the hcall events too with:
# perf kvm stat report --event=syscall
---
Hemant Kumar (1):
perf/kvm: perf-kvm-stat to report syscalls
Srikar
all the post processing of parsing the events captured and
classifying them according to their exit reasons (which are already
availabe in trace_book3s.h). Similar method is used with hcall
analysis.
Thanks,
Hemant Kumar
--
To unsubscribe from this list: send the line unsubscribe linux-kernel
This patch adds an exit reason RETURN_TO_HOST for the return code
0x0.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/uapi/asm/trace_book3s.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/include/uapi/asm/trace_book3s.h
b/arch/powerpc/include
hcall_code-to-hcall_reason from
arch/powerpc/kvm/trace_hv.h to
arch/powerpc/include/uapi/asm/trace_hcall.h.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/asm/hvcall.h | 120 +--
arch/powerpc/include/uapi/asm/hcall_codes.h | 123
% 2.22us 4.72us
3.17us ( +- 5.96% )
Total Samples:2690, Total events handled time:2896.94us.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/uapi/asm/kvm_perf.h | 4 +++
tools/perf/arch/powerpc/util/kvm-stat.c | 61
2
240 1.69% 0.00%0.69us 10.67us
1.33us ( +- 5.34% )
Total Samples:14182, Total events handled time:49264158.30us.
Signed-off-by: Srikar Dronamraju sri...@linux.vnet.ibm.com
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/uapi/asm/kvm_perf.h
/include/uapi/asm/trace_book3s.h.
We will also need to change the path of trace_book3s.h included in files
trace_hv.h and trace_pr.h.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/uapi/asm/trace_book3s.h | 32
arch/powerpc/kvm
This patch adds an exit reason RETURN_TO_HOST for the return code
0x0.
Signed-off-by: Hemant Kumar hem...@linux.vnet.ibm.com
---
arch/powerpc/include/uapi/asm/trace_book3s.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/include/uapi/asm/trace_book3s.h
b/arch/powerpc/include
1 - 100 of 627 matches
Mail list logo