[PATCH 1/1] perf script python: Garbled text in tracepoint fields

2017-08-11 Thread Arun Kalyanasundaram
Pass the exact length of the string to is_printable_array instead of the entire field size. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- tools/perf/util/scripting-engines/trace-event-python.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tool

[PATCH 1/1] perf script python: Garbled text in tracepoint fields

2017-08-11 Thread Arun Kalyanasundaram
Pass the exact length of the string to is_printable_array instead of the entire field size. Signed-off-by: Arun Kalyanasundaram --- tools/perf/util/scripting-engines/trace-event-python.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/scripting

[PATCH 0/1] perf script python: Garbled text in tracepoint fields

2017-08-11 Thread Arun Kalyanasundaram
that represent the string. This change calls is_printable_array with the correct length of the string instead of the entire field size. Bug report: lkml/2017/7/18/228 Arun Kalyanasundaram (1): perf script python: Garbled text in tracepoint fields tools/perf/util/scripting-engines/trace-event

[PATCH 0/1] perf script python: Garbled text in tracepoint fields

2017-08-11 Thread Arun Kalyanasundaram
that represent the string. This change calls is_printable_array with the correct length of the string instead of the entire field size. Bug report: lkml/2017/7/18/228 Arun Kalyanasundaram (1): perf script python: Garbled text in tracepoint fields tools/perf/util/scripting-engines/trace-event

[tip:perf/core] perf script python: Add perf_sample dict to tracepoint handlers

2017-07-26 Thread tip-bot for Arun Kalyanasundaram
Commit-ID: f38d281663b011d1d8a1b0119bb8357706d134a8 Gitweb: http://git.kernel.org/tip/f38d281663b011d1d8a1b0119bb8357706d134a8 Author: Arun Kalyanasundaram <arunk...@google.com> AuthorDate: Fri, 21 Jul 2017 15:04:21 -0700 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf script python: Add perf_sample dict to tracepoint handlers

2017-07-26 Thread tip-bot for Arun Kalyanasundaram
Commit-ID: f38d281663b011d1d8a1b0119bb8357706d134a8 Gitweb: http://git.kernel.org/tip/f38d281663b011d1d8a1b0119bb8357706d134a8 Author: Arun Kalyanasundaram AuthorDate: Fri, 21 Jul 2017 15:04:21 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 25 Jul 2017 22:43:20 -0300 perf

[tip:perf/core] perf script python: Generate hooks with additional argument

2017-07-26 Thread tip-bot for Arun Kalyanasundaram
Commit-ID: a641860550f05a4b8889dca61aab73c84b2d5e16 Gitweb: http://git.kernel.org/tip/a641860550f05a4b8889dca61aab73c84b2d5e16 Author: Arun Kalyanasundaram <arunk...@google.com> AuthorDate: Fri, 21 Jul 2017 15:04:22 -0700 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf script python: Generate hooks with additional argument

2017-07-26 Thread tip-bot for Arun Kalyanasundaram
Commit-ID: a641860550f05a4b8889dca61aab73c84b2d5e16 Gitweb: http://git.kernel.org/tip/a641860550f05a4b8889dca61aab73c84b2d5e16 Author: Arun Kalyanasundaram AuthorDate: Fri, 21 Jul 2017 15:04:22 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 25 Jul 2017 22:43:21 -0300 perf

[tip:perf/core] perf script python: Add sample_read to dict

2017-07-26 Thread tip-bot for Arun Kalyanasundaram
Commit-ID: 74ec14f3893c3065053b91cec850cffa2d565e0a Gitweb: http://git.kernel.org/tip/74ec14f3893c3065053b91cec850cffa2d565e0a Author: Arun Kalyanasundaram <arunk...@google.com> AuthorDate: Fri, 21 Jul 2017 15:04:20 -0700 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf script python: Add sample_read to dict

2017-07-26 Thread tip-bot for Arun Kalyanasundaram
Commit-ID: 74ec14f3893c3065053b91cec850cffa2d565e0a Gitweb: http://git.kernel.org/tip/74ec14f3893c3065053b91cec850cffa2d565e0a Author: Arun Kalyanasundaram AuthorDate: Fri, 21 Jul 2017 15:04:20 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 25 Jul 2017 22:43:19 -0300 perf

[tip:perf/core] perf script python: Refactor creation of perf sample dict

2017-07-26 Thread tip-bot for Arun Kalyanasundaram
Commit-ID: 892e76b2e8c5e85e69514478e3319575a68b9770 Gitweb: http://git.kernel.org/tip/892e76b2e8c5e85e69514478e3319575a68b9770 Author: Arun Kalyanasundaram <arunk...@google.com> AuthorDate: Fri, 21 Jul 2017 15:04:19 -0700 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf script python: Refactor creation of perf sample dict

2017-07-26 Thread tip-bot for Arun Kalyanasundaram
Commit-ID: 892e76b2e8c5e85e69514478e3319575a68b9770 Gitweb: http://git.kernel.org/tip/892e76b2e8c5e85e69514478e3319575a68b9770 Author: Arun Kalyanasundaram AuthorDate: Fri, 21 Jul 2017 15:04:19 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 25 Jul 2017 22:43:19 -0300 perf

[tip:perf/core] perf script python: Allocate memory only if handler exists

2017-07-26 Thread tip-bot for Arun Kalyanasundaram
Commit-ID: e9f9a9ca8588e58dc0800b44adc41d32f6fc813a Gitweb: http://git.kernel.org/tip/e9f9a9ca8588e58dc0800b44adc41d32f6fc813a Author: Arun Kalyanasundaram <arunk...@google.com> AuthorDate: Fri, 21 Jul 2017 15:04:18 -0700 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf script python: Allocate memory only if handler exists

2017-07-26 Thread tip-bot for Arun Kalyanasundaram
Commit-ID: e9f9a9ca8588e58dc0800b44adc41d32f6fc813a Gitweb: http://git.kernel.org/tip/e9f9a9ca8588e58dc0800b44adc41d32f6fc813a Author: Arun Kalyanasundaram AuthorDate: Fri, 21 Jul 2017 15:04:18 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 25 Jul 2017 22:43:18 -0300 perf

[PATCH v2 2/5] perf script python: Refactor creation of perf sample dict

2017-07-21 Thread Arun Kalyanasundaram
Move the creation of the dict containing perf_sample entries into a helper function to enable its reuse in other sample processing routines. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- .../util/scripting-engines/trace-event-python.c| 94 --

[PATCH v2 2/5] perf script python: Refactor creation of perf sample dict

2017-07-21 Thread Arun Kalyanasundaram
Move the creation of the dict containing perf_sample entries into a helper function to enable its reuse in other sample processing routines. Signed-off-by: Arun Kalyanasundaram --- .../util/scripting-engines/trace-event-python.c| 94 -- 1 file changed, 53 insertions

[PATCH v2 1/5] perf script python: Allocate memory only if handler exists

2017-07-21 Thread Arun Kalyanasundaram
label in python_process_general_event and return when no handler is available. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- .../util/scripting-engines/trace-event-python.c| 38 +- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/tool

[PATCH v2 1/5] perf script python: Allocate memory only if handler exists

2017-07-21 Thread Arun Kalyanasundaram
label in python_process_general_event and return when no handler is available. Signed-off-by: Arun Kalyanasundaram --- .../util/scripting-engines/trace-event-python.c| 38 +- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/tools/perf/util/scripting-engines

[PATCH v2 4/5] perf script python: Add perf_sample dict to tracepoint handlers

2017-07-21 Thread Arun Kalyanasundaram
compatibility (and avoid unnecessary work), do not pass the dict if the number of arguments signals that handler version predates this change. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- Changes in v2: - Make an explicit call to Py_INCREF on callchain in p

[PATCH v2 4/5] perf script python: Add perf_sample dict to tracepoint handlers

2017-07-21 Thread Arun Kalyanasundaram
compatibility (and avoid unnecessary work), do not pass the dict if the number of arguments signals that handler version predates this change. Signed-off-by: Arun Kalyanasundaram --- Changes in v2: - Make an explicit call to Py_INCREF on callchain in process tracepoint to keep

[PATCH v2 3/5] perf script python: Add sample_read to dict

2017-07-21 Thread Arun Kalyanasundaram
Provide time_enabled, time_running and counter value in the perf_sample dict. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- .../util/scripting-engines/trace-event-python.c| 51 ++ 1 file changed, 51 insertions(+) diff --git a/tools/perf/util/scr

[PATCH v2 3/5] perf script python: Add sample_read to dict

2017-07-21 Thread Arun Kalyanasundaram
Provide time_enabled, time_running and counter value in the perf_sample dict. Signed-off-by: Arun Kalyanasundaram --- .../util/scripting-engines/trace-event-python.c| 51 ++ 1 file changed, 51 insertions(+) diff --git a/tools/perf/util/scripting-engines/trace-event

[PATCH v2 5/5] perf script python: Generate hooks with additional argument

2017-07-21 Thread Arun Kalyanasundaram
Modify the signature of tracepoint specific and trace_unhandled hooks to add the perf_sample dict as a new argument. Create a python helper function to print a dictionary. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- .../util/scripting-engines/trace-event-python.c

[PATCH v2 0/5] perf script python: Provide sample dict to all handlers

2017-07-21 Thread Arun Kalyanasundaram
unnecessary work), do not pass the aforementioned dict if the number of arguments signals that handler version predates this change. In addition, provide time_enabled, time_running and counter value in the perf_sample dict. Initial Discussion: https://lkml.org/lkml/2017/7/1/108 Arun Kalyanasundaram (5

[PATCH v2 5/5] perf script python: Generate hooks with additional argument

2017-07-21 Thread Arun Kalyanasundaram
Modify the signature of tracepoint specific and trace_unhandled hooks to add the perf_sample dict as a new argument. Create a python helper function to print a dictionary. Signed-off-by: Arun Kalyanasundaram --- .../util/scripting-engines/trace-event-python.c| 22 ++ 1

[PATCH v2 0/5] perf script python: Provide sample dict to all handlers

2017-07-21 Thread Arun Kalyanasundaram
unnecessary work), do not pass the aforementioned dict if the number of arguments signals that handler version predates this change. In addition, provide time_enabled, time_running and counter value in the perf_sample dict. Initial Discussion: https://lkml.org/lkml/2017/7/1/108 Arun Kalyanasundaram (5

Re: [PATCH 0/5] perf script python: Provide perf_sample dict to all handlers

2017-07-21 Thread Arun Kalyanasundaram
org> wrote: > Em Fri, Jul 21, 2017 at 09:46:39AM +0200, Jiri Olsa escreveu: >> On Thu, Jul 20, 2017 at 07:01:13PM -0700, Arun Kalyanasundaram wrote: >> > The process_event python hook receives a dict with most perf_sample >> > entries. >> >> hi, &

Re: [PATCH 0/5] perf script python: Provide perf_sample dict to all handlers

2017-07-21 Thread Arun Kalyanasundaram
Fri, Jul 21, 2017 at 09:46:39AM +0200, Jiri Olsa escreveu: >> On Thu, Jul 20, 2017 at 07:01:13PM -0700, Arun Kalyanasundaram wrote: >> > The process_event python hook receives a dict with most perf_sample >> > entries. >> >> hi, >> was there any change to t

[PATCH 1/5] perf script python: Allocate memory only if handler exists

2017-07-20 Thread Arun Kalyanasundaram
label in python_process_general_event and return when no handler is available. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- .../util/scripting-engines/trace-event-python.c| 38 +- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/tool

[PATCH 2/5] perf script python: Refactor creation of perf sample dict

2017-07-20 Thread Arun Kalyanasundaram
Move the creation of the dict containing perf_sample entries into a helper function to enable its reuse in other sample processing routines. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- .../util/scripting-engines/trace-event-python.c| 94 --

[PATCH 1/5] perf script python: Allocate memory only if handler exists

2017-07-20 Thread Arun Kalyanasundaram
label in python_process_general_event and return when no handler is available. Signed-off-by: Arun Kalyanasundaram --- .../util/scripting-engines/trace-event-python.c| 38 +- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/tools/perf/util/scripting-engines

[PATCH 2/5] perf script python: Refactor creation of perf sample dict

2017-07-20 Thread Arun Kalyanasundaram
Move the creation of the dict containing perf_sample entries into a helper function to enable its reuse in other sample processing routines. Signed-off-by: Arun Kalyanasundaram --- .../util/scripting-engines/trace-event-python.c| 94 -- 1 file changed, 53 insertions

[PATCH 4/5] perf script python: Add perf_sample dict to tracepoint handlers

2017-07-20 Thread Arun Kalyanasundaram
compatibility (and avoid unnecessary work), do not pass the dict if the number of arguments signals that handler version predates this change. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- .../util/scripting-engines/trace-event-python.c| 41 +- 1 file chang

[PATCH 4/5] perf script python: Add perf_sample dict to tracepoint handlers

2017-07-20 Thread Arun Kalyanasundaram
compatibility (and avoid unnecessary work), do not pass the dict if the number of arguments signals that handler version predates this change. Signed-off-by: Arun Kalyanasundaram --- .../util/scripting-engines/trace-event-python.c| 41 +- 1 file changed, 40 insertions(+), 1

[PATCH 5/5] perf script python: Generate hooks with additional argument

2017-07-20 Thread Arun Kalyanasundaram
Modify the signature of tracepoint specific and trace_unhandled hooks to add the perf_sample dict as a new argument. Create a python helper function to print a dictionary. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- .../util/scripting-engines/trace-event-python.c

[PATCH 5/5] perf script python: Generate hooks with additional argument

2017-07-20 Thread Arun Kalyanasundaram
Modify the signature of tracepoint specific and trace_unhandled hooks to add the perf_sample dict as a new argument. Create a python helper function to print a dictionary. Signed-off-by: Arun Kalyanasundaram --- .../util/scripting-engines/trace-event-python.c| 22 ++ 1

[PATCH 0/5] perf script python: Provide perf_sample dict to all handlers

2017-07-20 Thread Arun Kalyanasundaram
and counter value in the perf_sample dict. Initial Discussion: https://lkml.org/lkml/2017/7/1/108 Arun Kalyanasundaram (5): perf script python: Allocate memory only if handler exists perf script python: Refactor creation of perf sample dict perf script python: Add sample_read to dict perf

[PATCH 3/5] perf script python: Add sample_read to dict

2017-07-20 Thread Arun Kalyanasundaram
Provide time_enabled, time_running and counter value in the perf_sample dict. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- .../util/scripting-engines/trace-event-python.c| 51 ++ 1 file changed, 51 insertions(+) diff --git a/tools/perf/util/scr

[PATCH 0/5] perf script python: Provide perf_sample dict to all handlers

2017-07-20 Thread Arun Kalyanasundaram
and counter value in the perf_sample dict. Initial Discussion: https://lkml.org/lkml/2017/7/1/108 Arun Kalyanasundaram (5): perf script python: Allocate memory only if handler exists perf script python: Refactor creation of perf sample dict perf script python: Add sample_read to dict perf

[PATCH 3/5] perf script python: Add sample_read to dict

2017-07-20 Thread Arun Kalyanasundaram
Provide time_enabled, time_running and counter value in the perf_sample dict. Signed-off-by: Arun Kalyanasundaram --- .../util/scripting-engines/trace-event-python.c| 51 ++ 1 file changed, 51 insertions(+) diff --git a/tools/perf/util/scripting-engines/trace-event

Re: [RFC 0/4] perf script python: Provide perf_sample dict to all handlers

2017-07-18 Thread Arun Kalyanasundaram
Thank you for taking a look into it. I don't see the garbled output. Can you please send me the perf.data file or a way to reproduce it? On Tue, Jul 18, 2017 at 1:35 AM, Jiri Olsa <jo...@redhat.com> wrote: > On Mon, Jul 17, 2017 at 03:10:36PM -0700, Arun Kalyanasunda

Re: [RFC 0/4] perf script python: Provide perf_sample dict to all handlers

2017-07-18 Thread Arun Kalyanasundaram
Thank you for taking a look into it. I don't see the garbled output. Can you please send me the perf.data file or a way to reproduce it? On Tue, Jul 18, 2017 at 1:35 AM, Jiri Olsa wrote: > On Mon, Jul 17, 2017 at 03:10:36PM -0700, Arun Kalyanasundaram wrote: >> The process_event py

[RFC 2/4] perf script python: Refactor creation of perf sample dict

2017-07-17 Thread Arun Kalyanasundaram
Move the creation of the dict containing perf_sample entries into a helper function to enable its reuse in other sample processing routines. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- .../util/scripting-engines/trace-event-python.c| 94 --

[RFC 2/4] perf script python: Refactor creation of perf sample dict

2017-07-17 Thread Arun Kalyanasundaram
Move the creation of the dict containing perf_sample entries into a helper function to enable its reuse in other sample processing routines. Signed-off-by: Arun Kalyanasundaram --- .../util/scripting-engines/trace-event-python.c| 94 -- 1 file changed, 53 insertions

[RFC 3/4] perf script python: Add perf_sample dict to tracepoint handlers

2017-07-17 Thread Arun Kalyanasundaram
compatibility (and avoid unnecessary work), do not pass the dict if the number of arguments signals that handler version predates this change. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- .../util/scripting-engines/trace-event-python.c| 37 +- 1 file chang

[RFC 3/4] perf script python: Add perf_sample dict to tracepoint handlers

2017-07-17 Thread Arun Kalyanasundaram
compatibility (and avoid unnecessary work), do not pass the dict if the number of arguments signals that handler version predates this change. Signed-off-by: Arun Kalyanasundaram --- .../util/scripting-engines/trace-event-python.c| 37 +- 1 file changed, 36 insertions(+), 1

[RFC 1/4] perf script python: Allocate memory only if handler exists

2017-07-17 Thread Arun Kalyanasundaram
label in python_process_general_event and return when no handler is available. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- .../util/scripting-engines/trace-event-python.c| 38 +- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/tool

[RFC 1/4] perf script python: Allocate memory only if handler exists

2017-07-17 Thread Arun Kalyanasundaram
label in python_process_general_event and return when no handler is available. Signed-off-by: Arun Kalyanasundaram --- .../util/scripting-engines/trace-event-python.c| 38 +- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/tools/perf/util/scripting-engines

[RFC 4/4] perf script python: Generate hooks with additional argument

2017-07-17 Thread Arun Kalyanasundaram
Modify the signature of tracepoint specific and trace_unhandled hooks to add the perf_sample dict as a new argument. Create a python helper function to print a dictionary. Signed-off-by: Arun Kalyanasundaram <arunk...@google.com> --- .../perf/util/scripting-engines/trace-event-python.

[RFC 0/4] perf script python: Provide perf_sample dict to all handlers

2017-07-17 Thread Arun Kalyanasundaram
/1/108 Arun Kalyanasundaram (4): perf script python: Allocate memory only if handler exists perf script python: Refactor creation of perf sample dict perf script python: Add perf_sample dict to tracepoint handlers perf script python: Generate hooks with additional argument .../util

[RFC 4/4] perf script python: Generate hooks with additional argument

2017-07-17 Thread Arun Kalyanasundaram
Modify the signature of tracepoint specific and trace_unhandled hooks to add the perf_sample dict as a new argument. Create a python helper function to print a dictionary. Signed-off-by: Arun Kalyanasundaram --- .../perf/util/scripting-engines/trace-event-python.c | 20 +--- 1

[RFC 0/4] perf script python: Provide perf_sample dict to all handlers

2017-07-17 Thread Arun Kalyanasundaram
/1/108 Arun Kalyanasundaram (4): perf script python: Allocate memory only if handler exists perf script python: Refactor creation of perf sample dict perf script python: Add perf_sample dict to tracepoint handlers perf script python: Generate hooks with additional argument .../util

Re: tracing/kprobes: [Bug] Identical timestamps on two kprobes that are few instructions apart

2017-07-10 Thread Arun Kalyanasundaram
that mean this is an expected behavior in this case? I am running this on a haswell x86 architecture with 72 cores. Thank you, - Arun On Sun, Jul 9, 2017 at 5:18 PM, Masami Hiramatsu <mhira...@kernel.org> wrote: > Hello Arun, > > On Fri, 7 Jul 2017 16:06:40 -0700 > Arun Kalyanasundaram

Re: tracing/kprobes: [Bug] Identical timestamps on two kprobes that are few instructions apart

2017-07-10 Thread Arun Kalyanasundaram
that mean this is an expected behavior in this case? I am running this on a haswell x86 architecture with 72 cores. Thank you, - Arun On Sun, Jul 9, 2017 at 5:18 PM, Masami Hiramatsu wrote: > Hello Arun, > > On Fri, 7 Jul 2017 16:06:40 -0700 > Arun Kalyanasundaram wrote: > >> Hi St

Re: tracing/kprobes: [Bug] Identical timestamps on two kprobes that are few instructions apart

2017-07-07 Thread Arun Kalyanasundaram
7 Jul 2017 10:34:48 -0700 > Arun Kalyanasundaram <arunk...@google.com> wrote: > >> Hi, >> >> I am trying to use kprobes to time a few kernel functions. However, when I >> add two kprobes on a function that are a few instructions apart, I >> sometimes get the s

Re: tracing/kprobes: [Bug] Identical timestamps on two kprobes that are few instructions apart

2017-07-07 Thread Arun Kalyanasundaram
there are a lot of samples, and so "my_program" generates a few hundred threads. Any pointers on debugging this would be very helpful, or please let me know if you want me to collect any log messages. On Fri, Jul 7, 2017 at 12:01 PM, Steven Rostedt wrote: > On Fri, 7 Jul 2017 10:34:48

[Resend: Adding linux-kernel] tracing/kprobes: [Bug] Identical timestamps on two kprobes that are few instructions apart

2017-07-07 Thread Arun Kalyanasundaram
Hi, I am trying to use kprobes to time a few kernel functions. However, when I add two kprobes on a function that are a few instructions apart, I sometimes get the same timestamp (measured in nano seconds) on the two probes. For example, if I add the two probes as follows, 1) perf probe -a

[Resend: Adding linux-kernel] tracing/kprobes: [Bug] Identical timestamps on two kprobes that are few instructions apart

2017-07-07 Thread Arun Kalyanasundaram
Hi, I am trying to use kprobes to time a few kernel functions. However, when I add two kprobes on a function that are a few instructions apart, I sometimes get the same timestamp (measured in nano seconds) on the two probes. For example, if I add the two probes as follows, 1) perf probe -a

Re: perf script: Question: Python trace processing script contains the tid of the process in the common_pid attribute

2017-07-05 Thread Arun Kalyanasundaram
_dict"); if (custom_dict) //Add dict to PyTuple Do you think this would be a better approach? Thank you, - Arun On Wed, Jul 5, 2017 at 1:41 PM, Arun Kalyanasundaram <arunk...@google.com> wrote: > I wasn't entirely sure if we should modify the signature of the python > hooks_ as this would

Re: perf script: Question: Python trace processing script contains the tid of the process in the common_pid attribute

2017-07-05 Thread Arun Kalyanasundaram
_dict"); if (custom_dict) //Add dict to PyTuple Do you think this would be a better approach? Thank you, - Arun On Wed, Jul 5, 2017 at 1:41 PM, Arun Kalyanasundaram wrote: > I wasn't entirely sure if we should modify the signature of the python > hooks_ as this would make existing scripts

Re: perf script: Question: Python trace processing script contains the tid of the process in the common_pid attribute

2017-07-05 Thread Arun Kalyanasundaram
el.org> wrote: > Em Wed, Jul 05, 2017 at 04:25:45PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Wed, Jul 05, 2017 at 09:22:07AM -0700, Arun Kalyanasundaram escreveu: >> > Hi Arnaldo, >> > >> > Thank you for your reply. >> > I actually meant tracepoi

Re: perf script: Question: Python trace processing script contains the tid of the process in the common_pid attribute

2017-07-05 Thread Arun Kalyanasundaram
d, Jul 05, 2017 at 04:25:45PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Wed, Jul 05, 2017 at 09:22:07AM -0700, Arun Kalyanasundaram escreveu: >> > Hi Arnaldo, >> > >> > Thank you for your reply. >> > I actually meant tracepoint event handle

Re: perf script: Question: Python trace processing script contains the tid of the process in the common_pid attribute

2017-07-05 Thread Arun Kalyanasundaram
ntain the actual pid of the process. So, I was wondering if this is something intentional? If not I can share a patch to fix this. Best, - Arun On Sat, Jul 1, 2017 at 7:47 AM, Arnaldo Carvalho de Melo <a...@redhat.com> wrote: > Em Fri, Jun 30, 2017 at 03:40:57PM -0700, Arun Kalyanasunda

Re: perf script: Question: Python trace processing script contains the tid of the process in the common_pid attribute

2017-07-05 Thread Arun Kalyanasundaram
ntain the actual pid of the process. So, I was wondering if this is something intentional? If not I can share a patch to fix this. Best, - Arun On Sat, Jul 1, 2017 at 7:47 AM, Arnaldo Carvalho de Melo wrote: > Em Fri, Jun 30, 2017 at 03:40:57PM -0700, Arun Kalyanasundaram escreveu: >&g

Re: [PATCH v2]: perf/core: addressing 4x slowdown during per-process, profiling of STREAM benchmark on Intel Xeon Phi

2017-05-30 Thread Arun Kalyanasundaram
Hi Alexey, I am interested in validating this fix. Can you please share some of your testcases or let me know if you use any standard OpenMP benchmarks? - Arun

Re: [PATCH v2]: perf/core: addressing 4x slowdown during per-process, profiling of STREAM benchmark on Intel Xeon Phi

2017-05-30 Thread Arun Kalyanasundaram
Hi Alexey, I am interested in validating this fix. Can you please share some of your testcases or let me know if you use any standard OpenMP benchmarks? - Arun