[PATCH] net: usb: Fix memory leak on Tx data path

2012-10-25 Thread Hemant Kumar
, 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

[PATCH v2 0/3] Perf support to SDT markers

2013-10-07 Thread Hemant Kumar
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

[PATCH v2 2/3] Support for perf to probe into SDT markers:

2013-10-07 Thread Hemant Kumar
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

[PATCH v2 1/3] SDT markers listing by perf:

2013-10-07 Thread Hemant Kumar
/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

[PATCH v2 3/3] Documentation regarding perf/sdt

2013-10-07 Thread Hemant Kumar
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

[PATCH v3 0/3] Perf support to SDT markers

2013-10-18 Thread Hemant Kumar
. - 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

[PATCH v3 1/3] SDT markers listing by perf:

2013-10-18 Thread Hemant Kumar
/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

[PATCH v3 2/3] Support for perf to probe into SDT markers:

2013-10-18 Thread Hemant Kumar
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

[PATCH v3 3/3] Documentation regarding perf/sdt

2013-10-18 Thread Hemant Kumar
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

Re: [PATCH v3 1/3] SDT markers listing by perf:

2013-10-20 Thread Hemant Kumar
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

Re: [PATCH v3 2/3] Support for perf to probe into SDT markers:

2013-10-20 Thread Hemant Kumar
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/

[RFC PATCH v1 0/2] perf: Support for SDT markers

2014-02-24 Thread Hemant Kumar
. 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

[RFC PATCH v1 2/2] perf/sdt : Documentation

2014-02-24 Thread Hemant Kumar
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

[RFC PATCH v1 1/2] perf/sdt : Listing of SDT markers by perf

2014-02-24 Thread Hemant Kumar
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

Re: [RFC PATCH v1 1/2] perf/sdt : Listing of SDT markers by perf

2014-02-25 Thread Hemant Kumar
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

Re: [RFC PATCH v1 0/2] perf: Support for SDT markers

2014-02-25 Thread Hemant Kumar
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

Re: [RFC PATCH v1 0/2] perf: Support for SDT markers

2014-02-26 Thread Hemant Kumar
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

Re: [RFC PATCH v1 0/2] perf: Support for SDT markers

2014-02-26 Thread Hemant Kumar
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

Re: [PATCH v4 2/3] Support for perf to probe into SDT markers:

2013-10-29 Thread 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

Re: [PATCH v4 2/3] Support for perf to probe into SDT markers:

2013-10-29 Thread 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

Re: [PATCH v4 2/3] Support for perf to probe into SDT markers:

2013-10-30 Thread Hemant Kumar
, 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

[PATCH v4 0/3] perf support to SDT markers

2013-10-22 Thread Hemant Kumar
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

[PATCH v4 1/3] SDT markers listing by perf:

2013-10-22 Thread Hemant Kumar
/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

[PATCH v4 3/3] Documentation regarding perf/sdt

2013-10-22 Thread Hemant Kumar
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

[PATCH v4 2/3] Support for perf to probe into SDT markers:

2013-10-22 Thread Hemant Kumar
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

Re: [PATCH v4 2/3] Support for perf to probe into SDT markers:

2013-10-24 Thread Hemant Kumar
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

[PATCH 2/2] Support to perf to probe on SDT markers:

2013-09-03 Thread Hemant Kumar
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

[PATCH 1/2] SDT markers listing by perf

2013-09-03 Thread Hemant Kumar
. 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

Re: [PATCH v2 0/3] perf/sdt : Support for SDT markers

2014-07-19 Thread Hemant Kumar
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

Re: [PATCH v2 1/3] perf/sdt : Listing of SDT markers by perf

2014-07-21 Thread Hemant Kumar
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

Re: [PATCH v2 0/3] perf/sdt : Support for SDT markers

2014-07-21 Thread Hemant Kumar
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

Re: [PATCH v2 1/3] perf/sdt : Listing of SDT markers by perf

2014-07-22 Thread Hemant Kumar
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

Re: [PATCH v2 1/3] perf/sdt : Listing of SDT markers by perf

2014-07-22 Thread Hemant Kumar
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

[PATCH v2 0/3] perf/sdt : Support for SDT markers

2014-07-18 Thread Hemant Kumar
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

[PATCH v2 2/3] perf/sdt: Listing SDT markers for a single file

2014-07-18 Thread Hemant Kumar
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

[PATCH v2 1/3] perf/sdt : Listing of SDT markers by perf

2014-07-18 Thread Hemant Kumar
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

[PATCH v2 3/3] perf/sdt: Documentation

2014-07-18 Thread Hemant Kumar
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

Re: [PATCHSET 0/5] perf tools: option parsing improvement

2014-10-22 Thread Hemant Kumar
. 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

Re: [PATCH v3 5/5] perf/sdt: Add support to perf record to trace SDT events

2014-10-22 Thread Hemant Kumar
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

Re: [PATCH v3 2/5] perf/sdt: Add SDT events into a cache

2014-10-24 Thread Hemant Kumar
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

Re: [PATCH v3 5/5] perf/sdt: Add support to perf record to trace SDT events

2014-10-22 Thread Hemant Kumar
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

Re: [PATCH v3 1/5] perf/sdt: ELF support for SDT

2014-10-22 Thread Hemant Kumar
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

[PATCH v3 0/3] perf/sdt : Support for SDT markers

2014-08-27 Thread Hemant Kumar
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

[PATCH v3 1/3] perf/sdt : Raw SDT parsing functions

2014-08-27 Thread Hemant Kumar
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

[PATCH v3 2/3] perf/sdt : List SDT events for a single file

2014-08-27 Thread Hemant Kumar
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

[PATCH v3 3/3] perf/sdt : Documentation support

2014-08-27 Thread Hemant Kumar
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

[PATCH v4 0/3] perf/sdt : Support for SDT markers

2014-08-27 Thread Hemant Kumar
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

[PATCH v4 1/3] perf/sdt : Raw SDT parsing functions

2014-08-27 Thread Hemant Kumar
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

[PATCH v4 2/3] perf/sdt : Support perf-list to print SDT events in a single file

2014-08-27 Thread Hemant Kumar
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

[PATCH v4 3/3] perf/sdt : Documentation for SDT events

2014-08-27 Thread Hemant Kumar
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

Re: [PATCH v4 2/3] perf/sdt : Support perf-list to print SDT events in a single file

2014-08-28 Thread Hemant Kumar
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

Re: [PATCH v2 1/5] perf/sdt: ELF support for SDT

2014-10-07 Thread Hemant Kumar
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

Re: [PATCH v2 2/5] perf/sdt: Add SDT events into a cache

2014-10-07 Thread Hemant Kumar
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

Re: [PATCH v2 4/5] perf/sdt: Delete SDT events from cache

2014-10-07 Thread Hemant Kumar
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

Re: [PATCH v1 2/5] perf/sdt: Add SDT events into a cache

2014-10-05 Thread Hemant Kumar
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

Re: [PATCH v2 1/5] perf/sdt: ELF support for SDT

2014-10-05 Thread Hemant Kumar
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

Re: [PATCH v2 3/5] perf/sdt: Show SDT cache contents

2014-10-05 Thread Hemant Kumar
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

[PATCH v1 0/5] perf/sdt: SDT events listing/probing

2014-10-01 Thread Hemant Kumar
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

[PATCH v1 1/5] perf/sdt: ELF support for SDT notes

2014-10-01 Thread Hemant Kumar
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

[PATCH v1 2/5] perf/sdt: Add SDT events into a cache

2014-10-01 Thread Hemant Kumar
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

[PATCH v1 3/5] perf/sdt: Show SDT cache contents

2014-10-01 Thread Hemant Kumar
%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

[PATCH v1 4/5] perf/sdt: Delete SDT events from cache

2014-10-01 Thread Hemant Kumar
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

[PATCH v1 5/5] perf/sdt: Add support to perf record to trace SDT events

2014-10-01 Thread Hemant Kumar
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

Re: [PATCH v1 0/5] perf/sdt: SDT events listing/probing

2014-10-01 Thread Hemant Kumar
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

[PATCH v2 0/5] perf/sdt: SDT events listing/probing

2014-10-01 Thread Hemant Kumar
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

[PATCH v2 1/5] perf/sdt: ELF support for SDT

2014-10-01 Thread Hemant Kumar
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

[PATCH v2 3/5] perf/sdt: Show SDT cache contents

2014-10-01 Thread Hemant Kumar
%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

[PATCH v2 5/5] perf/sdt: Add support to perf record to trace SDT events

2014-10-01 Thread Hemant Kumar
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

[PATCH v2 2/5] perf/sdt: Add SDT events into a cache

2014-10-01 Thread Hemant Kumar
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

[PATCH v2 4/5] perf/sdt: Delete SDT events from cache

2014-10-01 Thread Hemant Kumar
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

Re: (ltc-kernel 10243) [PATCH perf/core 2/2] perf-probe: Add --quiet option to suppress output result message

2014-10-28 Thread Hemant Kumar
; } - 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

[PATCH v4 0/5] perf/sdt: SDT events listing/probing

2014-11-02 Thread Hemant Kumar
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

[PATCH v4 1/5] perf/sdt: ELF support for SDT

2014-11-02 Thread Hemant Kumar
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

[PATCH v4 3/5] perf/sdt: Show SDT cache contents

2014-11-02 Thread Hemant Kumar
%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

[PATCH v4 2/5] perf/sdt: Add SDT events into a cache

2014-11-02 Thread Hemant Kumar
: # ./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

[PATCH v4 4/5] perf/sdt: Delete SDT events from cache

2014-11-02 Thread Hemant Kumar
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

[PATCH v4 5/5] perf/sdt: Add support to perf record to trace SDT events

2014-11-02 Thread Hemant Kumar
' # 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

Re: [RFC] perf-cache command interface design

2014-11-07 Thread Hemant Kumar
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

[PATCH v3 0/5] perf/sdt: SDT events listing/probing

2014-10-10 Thread Hemant Kumar
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

[PATCH v3 1/5] perf/sdt: ELF support for SDT

2014-10-10 Thread Hemant Kumar
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

[PATCH v3 2/5] perf/sdt: Add SDT events into a cache

2014-10-10 Thread Hemant Kumar
: # ./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

[PATCH v3 3/5] perf/sdt: Show SDT cache contents

2014-10-10 Thread Hemant Kumar
%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

[PATCH v3 4/5] perf/sdt: Delete SDT events from cache

2014-10-10 Thread Hemant Kumar
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

[PATCH v3 5/5] perf/sdt: Add support to perf record to trace SDT events

2014-10-10 Thread Hemant Kumar
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

Re: [PATCH v4 5/5] perf/sdt: Add support to perf record to trace SDT events

2014-11-04 Thread Hemant Kumar
: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

Re: Re: Re: [PATCH v4 5/5] perf/sdt: Add support to perf record to trace SDT events

2014-11-04 Thread Hemant Kumar
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

Re: [PATCH v4 5/5] perf/sdt: Add support to perf record to trace SDT events

2014-11-05 Thread Hemant Kumar
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

Re: [PATCH v4 5/5] perf/sdt: Add support to perf record to trace SDT events

2014-11-05 Thread Hemant Kumar
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

[PATCH v1 0/2] perf/kvm: perf-kvm-stat on powerpc

2015-02-27 Thread Hemant Kumar
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

[PATCH v1 2/2] perf/kvm: perf-kvm-stat to report syscalls

2015-02-27 Thread Hemant Kumar
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

[PATCH v1 1/2] perf/kvm: Enable perf-kvm-stat record/report on powerpc

2015-02-27 Thread Hemant Kumar
-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

Re: [perf/core PATCH v4 2/2] perf buildid-cache: Add --purge FILE to remove all caches of FILE

2015-02-20 Thread Hemant Kumar
*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

Re: [PATCH v1 0/2] perf/kvm: perf-kvm-stat on powerpc

2015-03-24 Thread 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

[PATCH v2 0/5] KVM events analysis on powerpc with perf

2015-04-20 Thread Hemant Kumar
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

[PATCH v2 2/5] kvm/powerpc: Add exit reason for return code 0x0

2015-04-20 Thread Hemant Kumar
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

[PATCH v2 4/5] kvm/powerpc: Move HCALL reason codes to uapi

2015-04-20 Thread Hemant Kumar
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

[PATCH v2 5/5] perf/kvm: HCALL events analysis

2015-04-20 Thread Hemant Kumar
% 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

[PATCH v2 3/5] perf/kvm: KVM exit events analysis

2015-04-20 Thread Hemant Kumar
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

[PATCH v2 1/5] kvm/powerpc: Export exit reasons as uapi

2015-04-20 Thread Hemant Kumar
/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

[PATCH v3 2/3] kvm/powerpc: Add exit reason for return code 0x0

2015-05-07 Thread Hemant Kumar
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   2   3   4   5   6   7   >