RE: NumaTOP 1.0 launched

2013-04-17 Thread Jin, Yao
Hi, https://01.org/numatop/ is slightly faster to access. Or please access https://github.com/01org/numatop to get the source directly. Thanks Jin Yao -Original Message- From: Jin, Yao Sent: Wednesday, April 17, 2013 10:30 AM To: 'l...@lwn.net'; 'linux-kernel@

RE: [RFC][PATCH 7/7] perf/annotate: Add branch stack / basic block information

2016-09-08 Thread Jin, Yao
changed. Please let me know what do you think for this patch and if I should go ahead. Thanks Jin Yao -Original Message- From: Arnaldo Carvalho de Melo [mailto:a...@kernel.org] Sent: Friday, September 9, 2016 1:11 AM To: Andi Kleen Cc: Stephane Eranian ; Peter Zijlstra ; Ingo Moln

[PATCH] perf symbols: Not using the ubuntu debuginfo when dso load

2016-09-01 Thread Jin Yao
set is not correct, so finally objdump uses wrong start address to disassemble /lib/x86_64-linux-gnu/libc-2.23.so. This patch lets dso__load not try ubuntu debuginfo (/usr/lib/debug/lib/x86_64-linux-gnu/libc-2.23.so in this example), because 1: the image doesn't have valid assembly code (check

[PATCH v1 0/4] perf annotate: Display multiple events on the left side of annotate view

2017-08-15 Thread Jin Yao
nts on the left side of annotate view for stdio, tui and gtk modes. Jin Yao (4): perf annotate: create a new hists to manage multiple events samples perf annotate: Display multiple events for stdio mode perf annotate: Display multiple events for tui mode perf annotate: Display multiple even

[PATCH v1 3/4] perf annotate: Display multiple events for tui mode

2017-08-15 Thread Jin Yao
ed-off-by: Jin Yao --- tools/perf/ui/browsers/annotate.c | 49 --- tools/perf/ui/browsers/hists.c| 2 +- tools/perf/util/annotate.h| 6 +++-- tools/perf/util/hist.h| 8 --- 4 files changed, 45 insertions(+), 20 deletions(-) diff -

[PATCH v1 1/4] perf annotate: create a new hists to manage multiple events samples

2017-08-15 Thread Jin Yao
e hists is per event. So we need a new hists to manage the samples for multiple events and use a new hist_event data structure to save the map/symbol information for per event. Signed-off-by: Jin Yao --- tools/perf/builtin-annotate.c | 60 +++ tools

[PATCH v1 4/4] perf annotate: Display multiple events for gtk mode

2017-08-15 Thread Jin Yao
For example: perf record -e cycles,branches ./div perf annotate main --gtk Both the cycles and branches are displayed at the left column in gtk window. Signed-off-by: Jin Yao --- tools/perf/ui/gtk/annotate.c | 35 ++- 1 file changed, 22 insertions(+), 13

[PATCH v1 2/4] perf annotate: Display multiple events for stdio mode

2017-08-15 Thread Jin Yao
00b4c(%rip) : : if (flag) 3.994.32 :400500: je 400532 Signed-off-by: Jin Yao --- tools/perf/builtin-annotate.c | 2 +- tools/perf/builtin-top.c | 3 +- tools/perf/util/annotate.c| 179 ---

[PATCH v3 0/2] perf report: Implement visual marker for macro fusion in annotate

2017-06-20 Thread Jin Yao
stead to check fused instruction pair. v1: Inital post Jin Yao (2): perf util: Check for fused instruction perf report: Implement visual marker for macro fusion in annotate tools/perf/arch/x86/annotate/instructions.c | 37 + tools/perf/ui/browser.c

[PATCH v3 2/2] perf report: Implement visual marker for macro fusion in annotate

2017-06-20 Thread Jin Yao
Arnaldo's fix to let the display be better. To get the evsel->evlist->env->cpuid, save the evsel in annotate_browser. v2: No more changes, just uses a new function "ins__is_fused" to check if the instructions are fused. v1: Initial post Signed-off-by: Jin

[PATCH v3 1/2] perf util: Check for fused instruction

2017-06-20 Thread Jin Yao
t as a weak function that will be overridden by the host arch doesn't work. So now it's implemented as an arch-specific function. v1: Initial post Signed-off-by: Jin Yao --- tools/perf/arch/x86/annotate/instructions.c | 37 + tools/perf/util/an

Re: [PATCH v5 2/6] perf record: Get the first sample time and last sample time

2017-11-03 Thread Jin, Yao
On 10/24/2017 3:16 PM, Jiri Olsa wrote: On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: SNIP hum, could you still unset the sample if there's no time given? and keep the speed in this case.. jirka Hi Jiri, I check this question again. The '--time' option is

Re: [PATCH v5 2/6] perf record: Get the first sample time and last sample time

2017-11-03 Thread Jin, Yao
On 11/4/2017 12:29 AM, Arnaldo Carvalho de Melo wrote: Em Tue, Oct 24, 2017 at 09:16:59AM +0200, Jiri Olsa escreveu: On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: SNIP hum, could you still unset the sample if there's no time given? and keep the speed in this case.. jirka

Re: [PATCH v5 2/6] perf record: Get the first sample time and last sample time

2017-11-05 Thread Jin, Yao
On 11/4/2017 6:24 PM, Jiri Olsa wrote: On Fri, Nov 03, 2017 at 01:29:42PM -0300, Arnaldo Carvalho de Melo wrote: Em Tue, Oct 24, 2017 at 09:16:59AM +0200, Jiri Olsa escreveu: On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: SNIP hum, could you still unset the sample if there'

[PATCH v6 3/6] perf util: Create function to parse time percent

2017-11-05 Thread Jin Yao
. Following passes. perf script --time 10%/10x12321xsdfdasfdsafdsafdsa Now it uses strtol to replace atoi. Signed-off-by: Jin Yao --- tools/perf/util/time-utils.c | 205 --- tools/perf/util/time-utils.h | 3 + 2 files changed, 196 insertions(+), 12

[PATCH v6 5/6] perf report: support time percent and multiple time ranges

2017-11-05 Thread Jin Yao
urns error message to user. v4: Remove perf_time__skip_sample, only uses perf_time__ranges_skip_sample v3: Since the definitions of first_sample_time/last_sample_time are moved from perf_session to perf_evlist so change the related code. Signed-off-by: Jin Yao --- tools/perf/Document

[PATCH v6 1/6] perf header: Record first sample time and last sample time in perf file header

2017-11-05 Thread Jin Yao
ssion. Just define them in perf_evlist Signed-off-by: Jin Yao --- tools/perf/Documentation/perf.data-file-format.txt | 4 ++ tools/perf/util/evlist.h | 2 + tools/perf/util/header.c | 60 ++ tools/perf/util/hea

[PATCH v6 6/6] perf script: support time percent and multiple time ranges

2017-11-05 Thread Jin Yao
d, returns error message to user. v4: Remove perf_time__skip_sample, only uses perf_time__ranges_skip_sample v3: Since the definitions of first_sample_time/last_sample_time are moved from perf_session to perf_evlist so change the related code. Signed-off-by: Jin Yao --- tools/perf/Doc

[PATCH v6 0/6] perf report/script: Support percent and multiple range in --time option

2017-11-05 Thread Jin Yao
ltiple time ranges. For example: 1. Select the second 10% time slice perf report --time 10%/2 2. Select from 0% to 10% time slice perf report --time 0%-10% It also support the multiple time ranges. 3. Select the first and second 10% time slices perf report --time 10%/1,10%/2 4. Select

[PATCH v6 2/6] perf record: Get the first sample time and last sample time

2017-11-05 Thread Jin Yao
oundaries". While after consideration, I think a new option is not very necessary. v3: Remove the definitions of first_sample_time and last_sample_time from struct record and directly save them in perf_evlist. Signed-off-by: Jin Yao --- tools/perf/Documentation/perf-record.txt | 3 +++ t

[PATCH v6 4/6] perf util: Create function to perform multiple time range checking

2017-11-05 Thread Jin Yao
ned-off-by: Jin Yao --- tools/perf/util/time-utils.c | 28 tools/perf/util/time-utils.h | 3 +++ 2 files changed, 31 insertions(+) diff --git a/tools/perf/util/time-utils.c b/tools/perf/util/time-utils.c index 79e4281..b380356 100644 --- a/tools/perf/util/time-uti

[PATCH] perf util: Fix wrong processing when closing evsel fd

2017-10-18 Thread Jin Yao
FD(evsel, cpu, thread) = -1; } It's not correct! This change is introduced by "475fb533fb7d" ("perf evsel: Fix buffer overflow while freeing events") This fix is to let xyarray__max_x() return max_x (ncpus) and let xyarry__max_y() return max_y (nthreads) S

Re: [PATCH v4 0/6] perf report/script: Support percent and multiple range in --time option

2017-10-18 Thread Jin, Yao
On 10/5/2017 4:50 PM, Jiri Olsa wrote: On Tue, Oct 03, 2017 at 10:22:32PM +0800, Jin Yao wrote: v4: --- 1. Use perf script time style for timestamp printing. Also add with the printing of sample duration. For example: perf report --header time of first sample : 5276531.323099

Re: [PATCH v4 2/6] perf record: Get the first sample time and last sample time

2017-10-19 Thread Jin, Yao
On 10/20/2017 4:25 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Oct 19, 2017 at 05:21:27PM -0300, Arnaldo Carvalho de Melo escreveu: Em Tue, Oct 03, 2017 at 10:22:34PM +0800, Jin Yao escreveu: In perf record, it's walked on all samples yet. So it's very easy to get You're s

[PATCH] perf/x86/intel/uncore: Provide alias for IIO free-running boxes on SKX

2018-08-26 Thread Jin Yao
or 'system wide': 153.12 MiB uncore_iio_pcie1/bw_in_port0/ 8.469790720 seconds time elapsed Signed-off-by: Jin Yao --- arch/x86/events/intel/uncore.c | 9 +++-- arch/x86/events/intel/uncore.h | 1 + arch/x86/events/intel/uncore_snbep.c | 10 ++ 3 fil

Re: [PATCH] perf util: Use target->per_thread and target->system_wide flags

2018-01-23 Thread Jin, Yao
On 1/23/2018 10:40 PM, Jiri Olsa wrote: On Tue, Jan 23, 2018 at 07:02:44AM +0800, Jin, Yao wrote: SNIP threads = thread_map__new_str(target->pid, target->tid, target->uid, - target->per_thread); +

[PATCH v2] perf util: Use target->per_thread and target->system_wide flags

2018-01-23 Thread Jin Yao
es 'target->per_thread && target->system_wide' as a condition to check for all threads case. v2: --- According to Jiri's comment, add description to explain why the patch uses 'target->per_thread && target->system_wide'. v2 doesn't hav

[PATCH] perf util: Display warning when perf report/annotate is missing some libs

2018-01-10 Thread Jin Yao
7;t work. This patch displays warnings that these libraries are missing in build when perf report / perf annotate are used. Signed-off-by: Jin Yao --- tools/perf/builtin-annotate.c | 2 ++ tools/perf/builtin-report.c | 2 ++ tools/perf/util/symbol.c | 21 + tools/per

Re: [PATCH] perf util: Display warning when perf report/annotate is missing some libs

2018-01-11 Thread Jin, Yao
On 1/11/2018 11:30 PM, Jiri Olsa wrote: On Thu, Jan 11, 2018 at 07:03:06PM +0800, Jin Yao wrote: We keep having bug reports that when users build perf on their own, we already have same warnings during the build Yes, there will be warnings displayed during the build if some libraries

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-21 Thread Jin, Yao
On 1/16/2018 9:17 PM, Jiri Olsa wrote: On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: Just tested. But looks it's not OK for '--per-thread' case. yea, I haven't tested much.. might need soem tweaking, but my point was that it could be doable on one place in

Re: [PATCH] perf util: Fix evlist->threads when working with 'perf stat --per-thread'

2018-01-22 Thread Jin, Yao
e classes. - Arnaldo Hi, Very sorry, I just see this mail today. Please let me look at this issue first. Thanks Jin Yao threads in a system, resulting in new kernel events being created for all threads rather than just the thread of interest. This patch keeps the newly introduced func

Re: [PATCH 1/1] perf util: Do not reuse target->per_thread flag

2018-01-22 Thread Jin, Yao
se. I just think for your perf record case, the target->system_wide will not be set. Instead, if target->per-thread and target->system_wide are both set, that means we needs to trace on all threads, right? Thanks Jin Yao On 1/13/2018 7:12 AM, Mathieu Poirier wrote: Commit ("73c

[PATCH] perf util: Use target->per_thread and target->system_wide flags

2018-01-22 Thread Jin Yao
es 'target->per_thread && target->system_wide' as a condition to check for all threads case. Signed-off-by: Jin Yao --- tools/perf/util/evlist.c | 2 +- tools/perf/util/thread_map.c | 4 ++-- tools/perf/util/thread_map.h | 2 +- 3 files changed, 4 insertions(+), 4 dele

Re: [PATCH] perf util: Use target->per_thread and target->system_wide flags

2018-01-22 Thread Jin, Yao
On 1/23/2018 5:10 AM, Mathieu Poirier wrote: On 22 January 2018 at 15:15, Jin Yao wrote: Mathieu Poirier reports issue in commit ("73c0ca1eee3d perf thread_map: Enumerate all threads from /proc") that it has negative impact on 'perf record --per-thread'. It has the

Re: [PATCH] perf util: Use target->per_thread and target->system_wide flags

2018-01-22 Thread Jin, Yao
On 1/23/2018 7:56 AM, Mathieu Poirier wrote: On 22 January 2018 at 15:15, Jin Yao wrote: Mathieu Poirier reports issue in commit ("73c0ca1eee3d perf thread_map: Enumerate all threads from /proc") that it has negative impact on 'perf record --per-thread'. It has the

Re: [PATCH v7 2/6] perf record: Get the first sample time and last sample time

2018-01-04 Thread Jin, Yao
On 1/5/2018 3:09 AM, Arnaldo Carvalho de Melo wrote: Em Fri, Dec 08, 2017 at 09:13:42PM +0800, Jin Yao escreveu: In the default 'perf record' configuration, all samples are processed, to create the HEADER_BUILD_ID table. So it's very easy to get the first/last samples and s

Re: [PATCH v7 2/6] perf record: Get the first sample time and last sample time

2018-01-05 Thread Jin, Yao
On 1/5/2018 8:53 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Jan 05, 2018 at 09:15:03AM +0800, Jin, Yao escreveu: On 1/5/2018 3:09 AM, Arnaldo Carvalho de Melo wrote: Em Fri, Dec 08, 2017 at 09:13:42PM +0800, Jin Yao escreveu: In the default 'perf record' configuration, all s

[PATCH] perf report: Fix wrong jump arrow

2018-01-28 Thread Jin Yao
2, y = 121212; │ │ │ │s_randseed = time(0); │ │srand(s_randseed); │ │ │ │for (i = 0; i < 20; i++) { 1.37 │0.4882:└─→sub$0x1,%ebx 28.21 │0.4817 ↑ jne38 Signed-off-by: Jin Yao --- tools/perf/ui/bro

Re: [PATCH v1 0/8] perf: Follow-up patches to improve time slice

2018-01-16 Thread Jin, Yao
On 1/16/2018 10:48 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jan 16, 2018 at 12:55:19PM +0100, Jiri Olsa escreveu: On Wed, Jan 10, 2018 at 11:00:25PM +0800, Jin Yao wrote: It's follow-up patches to improve the perf time slice feature (perf report/script --time xxx) 1. Improve the

Re: [PATCH v7 3/6] perf util: Create function to parse time percent

2018-01-08 Thread Jin, Yao
On 1/8/2018 10:38 PM, Arnaldo Carvalho de Melo wrote: Em Mon, Jan 08, 2018 at 11:31:49AM -0300, Arnaldo Carvalho de Melo escreveu: Em Fri, Dec 08, 2017 at 09:13:43PM +0800, Jin Yao escreveu: Current perf report/script/... have a --time option to limit the time range of output. But right now

Re: [PATCH v7 5/6] perf report: support time percent and multiple time ranges

2018-01-08 Thread Jin, Yao
cify which one is wanted" when you notice a % in the --time string, etc. 4. Add an indication of what percentage ranges are being used. For example, Samples: 128 of event 'cycles:ppp', Event count (approx.): 21386169 (10%/1) I will develop a follow-up patchset to improve this feature. Thanks Jin Yao

[PATCH v1 0/8] perf: Follow-up patches to improve time slice

2018-01-09 Thread Jin Yao
umber limitation perf script: Remove the time slices number limitation Jin Yao (8): perf report: Improve error msg when no first/last sample time found perf script: Improve error msg when no first/last sample time found perf util: Improve error checking for time percent input perf util: Su

[PATCH v1 1/8] perf report: Improve error msg when no first/last sample time found

2018-01-09 Thread Jin Yao
--buildid-all' is enabled, needs to set '--timestamp-boundary')." Signed-off-by: Jin Yao --- tools/perf/builtin-report.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index dd4df9a..a6c5cf2 10

[PATCH v1 5/8] perf report: Add an indication of what time slices are used

2018-01-09 Thread Jin Yao
Add a time slices indication to the perf report header. For example, # perf report --stdio --time 10% # Total Lost Samples: 0 # # Samples: 9K of event 'cycles:ppp' (time slices: 10%) # Event count (approx.): 8951288803 Signed-off-by: Jin Yao --- tools/perf/builtin-re

[PATCH v1 7/8] perf report: Remove the time slices number limitation

2018-01-09 Thread Jin Yao
Previously it was only allowed to use at most 10 time slices in 'perf report --time'. This patch removes this limitation. For example, following command line is OK (12 time slices) perf report --stdio --time 1%/1,1%/2,1%/3,1%/4,1%/5,1%/6,1%/7,1%/8,1%/9,1%/10,1%/11,1%/12 Signed-off-b

[PATCH v1 3/8] perf util: Improve error checking for time percent input

2018-01-09 Thread Jin Yao
root@skl:/tmp# perf report --stdio --time 1abc%/1 Invalid time string Signed-off-by: Jin Yao --- tools/perf/util/time-utils.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/time-utils.c b/tools/perf/util/time-utils.c index 3f7f18f..88510ab 100644 --- a/

[PATCH v1 8/8] perf script: Remove the time slices number limitation

2018-01-09 Thread Jin Yao
Previously it was only allowed to use at most 10 time slices in 'perf script --time'. This patch removes this limitation. For example, following command line is OK (12 time slices) perf script --time 1%/1,1%/2,1%/3,1%/4,1%/5,1%/6,1%/7,1%/8,1%/9,1%/10,1%/11,1%/12 Signed-off-b

[PATCH v1 4/8] perf util: Support no index time percent slice

2018-01-09 Thread Jin Yao
Previously, the time percent slice needs an index to specify which one the user wants. While it may be easy for using if the index can be omitted. So with this patch, for example, perf report --stdio --time 10%/1 should be equivalent to perf report --stdio --time 10% Signed-off-by: Jin Yao

[PATCH v1 2/8] perf script: Improve error msg when no first/last sample time found

2018-01-09 Thread Jin Yao
--buildid-all' is enabled, needs to set '--timestamp-boundary')." Signed-off-by: Jin Yao --- tools/perf/builtin-script.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index c1cce47..4f691af 10

[PATCH v1 6/8] perf util: Allocate time slices buffer according to number of comma

2018-01-09 Thread Jin Yao
e one entry even if no comma is found. Signed-off-by: Jin Yao --- tools/perf/util/time-utils.c | 28 tools/perf/util/time-utils.h | 2 ++ 2 files changed, 30 insertions(+) diff --git a/tools/perf/util/time-utils.c b/tools/perf/util/time-utils.c index 5769f97..6193b46 1

[PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-15 Thread Jin Yao
.651675247 seconds time elapsed Signed-off-by: Jin Yao --- tools/perf/builtin-stat.c| 14 +- tools/perf/util/evsel.c | 3 +++ tools/perf/util/thread_map.c | 1 + tools/perf/util/thread_map.h | 1 + 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/tools/p

Re: [PATCH v1 0/8] perf: Follow-up patches to improve time slice

2018-01-16 Thread Jin, Yao
On 1/16/2018 7:55 PM, Jiri Olsa wrote: On Wed, Jan 10, 2018 at 11:00:25PM +0800, Jin Yao wrote: It's follow-up patches to improve the perf time slice feature (perf report/script --time xxx) 1. Improve the error message perf report: Improve error msg when no first/last sample time

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-16 Thread Jin, Yao
_ADMIN >= 2: Disallow kernel profiling by users without CAP_SYS_ADMIN To make this setting permanent, edit /etc/sysctl.conf too, e.g.: kernel.perf_event_paranoid = -1 Thanks Jin Yao On 1/16/2018 8:51 PM, Jiri Olsa wrote: On Tue, Jan 16, 2018 at 11:43:08PM +0800, Jin Yao wrote: If we

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-16 Thread Jin, Yao
On 1/16/2018 9:17 PM, Jiri Olsa wrote: On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: Just tested. But looks it's not OK for '--per-thread' case. yea, I haven't tested much.. might need soem tweaking, but my point was that it could be doable on one place in

[PATCH v1 3/4] perf annotate: Process the new switch flag tui_dump

2018-03-12 Thread Jin Yao
The tui_dump is created as a parameter and it will be finally passed to symbol__tui_annotate() and be saved to browser.dump. It's a switch for TUI routines to indicate if TUI output needs to be dumped to stdio. Signed-off-by: Jin Yao --- tools/perf/builtin-annotate.c | 2 +- tools/pe

[PATCH v1 4/4] perf annotate: Enable the '--tui-dump' mode

2018-03-12 Thread Jin Yao
%edx,%eax │} 26.93 │3.38 2 ← retq Signed-off-by: Jin Yao --- tools/perf/Documentation/perf-annotate.txt | 3 +++ tools/perf/builtin-annotate.c | 12 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/tools/perf/Documentation/perf-annotate.tx

[PATCH v1 0/4] perf annotate: Create a new '--tui-dump' option

2018-03-12 Thread Jin Yao
TUI routines and drop the lagacy stdio code. But right now we'd better keep it until the '--tui-dump' option is good enough. Jin Yao (4): perf browser: Add a new 'dump' flag perf browser: bypass ui_init if in tui dump mode perf annotate: Process the new switch flag

[PATCH v1 1/4] perf browser: Add a new 'dump' flag

2018-03-12 Thread Jin Yao
We have a new requirement to provide the TUI output option for non-interactive mode. For example, write the TUI output to stdio directly. This patch creates a new flag 'dump' in struct ui_browser. Once it's on, for the formatted buffer, we just print it on stdio. Signed-

[PATCH v1 2/4] perf browser: bypass ui_init if in tui dump mode

2018-03-12 Thread Jin Yao
We create a tui dump mode in previous patch. In tui dump mode, the output is written to stdio. We need to bypass ui_init() in setup_browser(). Signed-off-by: Jin Yao --- tools/perf/builtin-annotate.c | 2 +- tools/perf/builtin-c2c.c | 2 +- tools/perf/builtin-report.c | 2 +- tools/perf

[PATCH v1 0/3] Support perf -vv

2018-03-26 Thread Jin Yao
libslang: [ on ] libcrypto: [ on ] libunwind: [ on ] libdw-dwarf-unwind: [ on ] zlib: [ on ] lzma: [ on ] get_cpuid: [ on ] bpf: [ on ] Jin Yao (3): perf config: Add -DNO_GLIBC t

[PATCH v1 1/3] perf config: Add -DNO_GLIBC to CFLAGS

2018-03-26 Thread Jin Yao
-off-by: Jin Yao --- tools/perf/Makefile.config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 98ff736..5883dd6 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -324,6 +324,8 @@ else NO_LIBBPF

[PATCH v1 3/3] perf: Support perf -vv

2018-03-26 Thread Jin Yao
lzma: [ on ] get_cpuid: [ on ] bpf: [ on ] Signed-off-by: Jin Yao --- tools/perf/perf.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/perf/perf.c b/tools/perf/perf.c index 1b3fc8e..300c83d 100644 --- a/tools/perf/perf.c +++ b/to

[PATCH v1 2/3] perf version: Print the status of compiled-in libraries

2018-03-26 Thread Jin Yao
This patch checks the values passed by CFLAGS (-DXXX) and then print the status of libraries. For example, if HAVE_DWARF_SUPPORT is defined, that means the library "dwarf" is compiled-in. The patch will print the status "on" for this library. Signed-off-by: Jin Yao ---

Re: [PATCH v1 0/3] Support perf -vv

2018-03-26 Thread Jin, Yao
On 3/26/2018 5:07 PM, Jiri Olsa wrote: On Mon, Mar 26, 2018 at 02:00:31AM -0700, Andi Kleen wrote: On Tue, Mar 27, 2018 at 12:07:01AM +0800, Jin Yao wrote: We keep having bug reports that when users build perf on their own, but they don't install some needed libraries such as libelf, l

Re: [PATCH v1 2/3] perf version: Print the status of compiled-in libraries

2018-03-26 Thread Jin, Yao
On 3/26/2018 5:39 PM, Jiri Olsa wrote: On Tue, Mar 27, 2018 at 12:07:03AM +0800, Jin Yao wrote: This patch checks the values passed by CFLAGS (-DXXX) and then print the status of libraries. For example, if HAVE_DWARF_SUPPORT is defined, that means the library "dwarf" is compil

Re: [PATCH v1 2/3] perf version: Print the status of compiled-in libraries

2018-03-26 Thread Jin, Yao
On 3/26/2018 5:39 PM, Jiri Olsa wrote: On Tue, Mar 27, 2018 at 12:07:03AM +0800, Jin Yao wrote: This patch checks the values passed by CFLAGS (-DXXX) and then print the status of libraries. For example, if HAVE_DWARF_SUPPORT is defined, that means the library "dwarf" is compil

Re: [PATCH v1 2/3] perf version: Print the status of compiled-in libraries

2018-03-26 Thread Jin, Yao
On 3/26/2018 9:51 PM, Jin, Yao wrote: On 3/26/2018 5:39 PM, Jiri Olsa wrote: On Tue, Mar 27, 2018 at 12:07:03AM +0800, Jin Yao wrote: This patch checks the values passed by CFLAGS (-DXXX) and then print the status of libraries. For example, if HAVE_DWARF_SUPPORT is defined, that means the

Re: [PATCH v1 2/3] perf version: Print the status of compiled-in libraries

2018-03-26 Thread Jin, Yao
On 3/27/2018 1:58 PM, Ingo Molnar wrote: * Jin Yao wrote: +#ifdef HAVE_DWARF_SUPPORT +#ifdef HAVE_DWARF_GETLOCATIONS +#ifdef NO_GLIBC +#ifdef HAVE_GTK2_SUPPORT +#ifdef HAVE_LIBAUDIT_SUPPORT +#ifdef HAVE_LIBBFD_SUPPORT +#ifdef HAVE_LIBELF_SUPPORT +#ifdef HAVE_LIBNUMA_SUPPORT +#ifdef

Re: [PATCH v1 3/3] perf: Support perf -vv

2018-03-26 Thread Jin, Yao
On 3/27/2018 2:03 PM, Ingo Molnar wrote: * Jin Yao wrote: +++ b/tools/perf/perf.c @@ -64,6 +64,7 @@ static struct cmd_struct commands[] = { { "top", cmd_top,0 }, { "annotate", cmd_annotate, 0 }, { "version", cmd_versio

Re: [PATCH v1 2/3] perf version: Print the status of compiled-in libraries

2018-03-27 Thread Jin, Yao
On 3/27/2018 8:56 PM, Jiri Olsa wrote: On Tue, Mar 27, 2018 at 09:44:23AM +0800, Jin, Yao wrote: On 3/26/2018 5:39 PM, Jiri Olsa wrote: On Tue, Mar 27, 2018 at 12:07:03AM +0800, Jin Yao wrote: This patch checks the values passed by CFLAGS (-DXXX) and then print the status of libraries

Re: [PATCH v1 2/3] perf version: Print the status of compiled-in libraries

2018-03-27 Thread Jin, Yao
On 3/27/2018 8:38 PM, Jiri Olsa wrote: On Mon, Mar 26, 2018 at 09:51:03PM +0800, Jin, Yao wrote: On 3/26/2018 5:39 PM, Jiri Olsa wrote: On Tue, Mar 27, 2018 at 12:07:03AM +0800, Jin Yao wrote: This patch checks the values passed by CFLAGS (-DXXX) and then print the status of libraries

[PATCH v1 3/3] perf version: Print status for syscall_table

2018-04-08 Thread Jin Yao
get_cpuid: [ on ] # HAVE_AUXTRACE_SUPPORT bpf: [ on ] # HAVE_LIBBPF_SUPPORT The line "syscall_table: [ on ] # HAVE_SYSCALL_TABLE_SUPPORT" is new created. Signed-off-by: Jin Yao --- tools/perf/builtin-version.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/built

[PATCH v1 0/3] perf version: some follow-up updates

2018-04-08 Thread Jin Yao
add a line for HAVE_SYSCALL_TABLE_SUPPORT. Jin Yao (3): perf script: Use HAVE_LIBXXX_SUPPORT to replace NO_LIBXXX perf: Rename HAVE_SYSCALL_TABLE to HAVE_SYSCALL_TABLE_SUPPORT perf version: Print status for syscall_table tools/perf/Makefile.config | 2 +- tools/perf

[PATCH v1 2/3] perf: Rename HAVE_SYSCALL_TABLE to HAVE_SYSCALL_TABLE_SUPPORT

2018-04-08 Thread Jin Yao
To make consistent with other HAVE_XXX_SUPPORT in Makefile.config, this patch renames HAVE_SYSCALL_TABLE to HAVE_SYSCALL_TABLE_SUPPORT and update the C code accordingly. Signed-off-by: Jin Yao --- tools/perf/Makefile.config | 2 +- tools/perf/builtin-help.c | 2 +- tools/perf

Re: [PATCH] perf util: Display warning when perf report/annotate is missing some libs

2018-03-20 Thread Jin, Yao
time on getting the root cause. If with this patch, it should be very easily to know that. Thanks Jin Yao On 1/12/2018 10:22 AM, Jin, Yao wrote: On 1/11/2018 11:30 PM, Jiri Olsa wrote: On Thu, Jan 11, 2018 at 07:03:06PM +0800, Jin Yao wrote: We keep having bug reports that when users build per

Re: [PATCH] perf util: Display warning when perf report/annotate is missing some libs

2018-03-21 Thread Jin, Yao
On 3/21/2018 11:38 PM, Jiri Olsa wrote: On Wed, Mar 21, 2018 at 10:11:10AM +0800, Jin, Yao wrote: Hi Jiri, I'm still thinking it's worth displaying the warning when perf missing some libraries. Somebody just told me that perf didn't work well. While after some investigation

Re: [PATCH] perf util: Display warning when perf report/annotate is missing some libs

2018-03-21 Thread Jin, Yao
04:38:07PM +0100, Jiri Olsa escreveu: On Wed, Mar 21, 2018 at 10:11:10AM +0800, Jin, Yao wrote: Hi Jiri, I'm still thinking it's worth displaying the warning when perf missing some libraries. Somebody just told me that perf didn't work well. While after some investigations, I

Re: [PATCH] perf util: Display warning when perf report/annotate is missing some libs

2018-03-22 Thread Jin, Yao
On 3/22/2018 4:51 PM, Jiri Olsa wrote: On Thu, Mar 22, 2018 at 09:04:10AM +0800, Jin, Yao wrote: On 3/21/2018 11:38 PM, Jiri Olsa wrote: On Wed, Mar 21, 2018 at 10:11:10AM +0800, Jin, Yao wrote: Hi Jiri, I'm still thinking it's worth displaying the warning when perf mi

Re: [PATCH v2] perf annotate: Support to display the IPC/Cycle in tui mode

2018-03-07 Thread Jin, Yao
Hi, Could this patch be accepted? I'm working on the supporting for stdio mode. I just wish to post the patch series after this patch being merged. Thanks Jin Yao On 2/27/2018 5:38 PM, Jin Yao wrote: Unlike the perf report interactive annotate mode, the perf annotate doesn't d

Re: [PATCH v1 0/4] perf annotate: Create a new '--tui-dump' option

2018-03-13 Thread Jin, Yao
On 3/13/2018 11:20 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Mar 13, 2018 at 10:16:50PM +0800, Jin Yao escreveu: There is a requirement to let perf annotate support displaying the IPC/Cycle. In previous patch, this is supported in TUI mode. While it's not convenient for users since

[PATCH 2/2] perf report: Display average IPC and IPC coverage per symbol

2018-11-25 Thread Jin Yao
[.] rand@plt 0.00 [ 0.0%] Note that, stdio mode doesn't support this feature. Signed-off-by: Jin Yao --- tools/perf/Documentation/perf-report.txt | 1 + tools/perf/builtin-report.c | 11 tools/perf/util/hist.h | 1 + tools/p

[PATCH 0/2] perf report/annotate: Support average IPC and IPC coverage for function

2018-11-25 Thread Jin Yao
,__abort_msg@@GLIBC_PRIVATE+0x8a0 ... Jin Yao (2): perf annotate: Compute average IPC and IPC coverage per symbol perf report: Display average IPC and IPC coverage per symbol tools/perf/Documentation/perf-report.txt | 1 + tools/perf/builtin-report.c | 11 tools/perf

[PATCH 1/2] perf annotate: Compute average IPC and IPC coverage per symbol

2018-11-25 Thread Jin Yao
__lll_unlock_wake_private add$0x80,%rsp 21.56 2.908a: movslq 0xc(%rsp),%rax 2.90 add$0x18,%rsp 9.03 2.90 1 ← retq It shows for this symbol the average IPC is 2.30 and the IPC coverage is 54.8%. Signed-off-by: Jin Yao --- tools/perf

Re: [PATCH 2/2] perf report: Display average IPC and IPC coverage per symbol

2018-11-26 Thread Jin, Yao
On 11/26/2018 5:55 PM, Jiri Olsa wrote: On Mon, Nov 26, 2018 at 05:40:54PM +0800, Jin Yao wrote: SNIP diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index f96c005..94f62c8 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c @@ -13,6 +13,7 @@ #include "strl

Re: [PATCH 2/2] perf report: Display average IPC and IPC coverage per symbol

2018-11-26 Thread Jin, Yao
On 11/26/2018 5:52 PM, Jiri Olsa wrote: On Mon, Nov 26, 2018 at 05:40:54PM +0800, Jin Yao wrote: Support displaying the average IPC and IPC coverage for symbol in perf report TUI browser. We create a new sort-key 'ipc' for that. For example, $ perf record -g -b ... $ perf report

Re: [PATCH 2/2] perf report: Display average IPC and IPC coverage per symbol

2018-11-26 Thread Jin, Yao
On 11/26/2018 5:53 PM, Jiri Olsa wrote: On Mon, Nov 26, 2018 at 05:40:54PM +0800, Jin Yao wrote: SNIP diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index f96c005..94f62c8 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c @@ -13,6 +13,7 @@ #include "strl

[PATCH v2 1/3] perf annotate: Compute average IPC and IPC coverage per symbol

2018-11-26 Thread Jin Yao
__lll_unlock_wake_private add$0x80,%rsp 21.56 2.908a: movslq 0xc(%rsp),%rax 2.90 add$0x18,%rsp 9.03 2.90 1 ← retq It shows for this symbol the average IPC is 2.30 and the IPC coverage is 54.8%. Signed-off-by: Jin Yao --- tools/perf

[PATCH v2 3/3] perf report: Display average IPC and IPC coverage per symbol

2018-11-26 Thread Jin Yao
0.5%] 6.85% [.] rand@plt 0.00 [ 0.0%] 0.02% [k] run_timer_softirq 1.60 [ 57.2%] v2: --- Merge in Jiri's patch to support stdio mode Signed-off-by: Jin Yao --- tools/perf/Documentation/perf-report.txt | 1 + tools/perf/builtin-report.c | 1

[PATCH v2 2/3] perf annotate: Create a annotate2 flag in struct symbol

2018-11-26 Thread Jin Yao
We often use the symbol__annotate2() to annotate a specified symbol. While annotating may take some time, so in order to avoid annotating the same symbol repeatedly, the patch creates a new flag to indicate the symbol has been annotated. Signed-off-by: Jin Yao --- tools/perf/util/annotate.c | 1

[PATCH v2 0/3] perf report/annotate: Support average IPC and IPC coverage for function

2018-11-26 Thread Jin Yao
3. Minor update such as adding { } for multiline code in 'if' condition. Jin Yao (3): perf annotate: Compute average IPC and IPC coverage per symbol perf annotate: Create a annotate2 flag in struct symbol perf report: Display average IPC and IPC coverage per symbol tool

Re: [PATCH v2 3/3] perf report: Display average IPC and IPC coverage per symbol

2018-11-27 Thread Jin, Yao
On 11/28/2018 2:33 AM, Andi Kleen wrote: On Tue, Nov 27, 2018 at 08:09:48PM +0800, Jin Yao wrote: Support displaying the average IPC and IPC coverage for symbol in perf report TUI browser. We create a new sort-key 'ipc' for that. Another thing that would be nice would be to aut

[PATCH v3 2/3] perf annotate: Create a annotate2 flag in struct symbol

2018-11-27 Thread Jin Yao
We often use the symbol__annotate2() to annotate a specified symbol. While annotating may take some time, so in order to avoid annotating the same symbol repeatedly, the patch creates a new flag to indicate the symbol has been annotated. Signed-off-by: Jin Yao --- tools/perf/util/annotate.c | 1

[PATCH v3 0/3] perf report/annotate: Support average IPC and IPC coverage for function

2018-11-27 Thread Jin Yao
date such as adding { } for multiline code in 'if' condition. Jin Yao (3): perf annotate: Compute average IPC and IPC coverage per symbol perf annotate: Create a annotate2 flag in struct symbol perf report: Display average IPC and IPC coverage per symbol tools/perf/

[PATCH v3 3/3] perf report: Display average IPC and IPC coverage per symbol

2018-11-27 Thread Jin Yao
bled when "symbol" is specified. v2: --- Merge in Jiri's patch to support stdio mode Signed-off-by: Jin Yao --- tools/perf/builtin-report.c | 26 --- tools/perf/util/hist.h | 1 + tools/perf/util/sort.c | 61 + too

[PATCH v3 1/3] perf annotate: Compute average IPC and IPC coverage per symbol

2018-11-27 Thread Jin Yao
__lll_unlock_wake_private add$0x80,%rsp 21.56 2.908a: movslq 0xc(%rsp),%rax 2.90 add$0x18,%rsp 9.03 2.90 1 ← retq It shows for this symbol the average IPC is 2.30 and the IPC coverage is 54.8%. Signed-off-by: Jin Yao --- tools/perf

Re: [PATCH v3 0/3] perf report/annotate: Support average IPC and IPC coverage for function

2018-11-28 Thread Jin, Yao
On 11/28/2018 5:10 PM, Ingo Molnar wrote: * Jin Yao wrote: Add supporting of displaying the average IPC and IPC coverage percentage per function. For example, $ perf record -b ... $ perf report -s symbol or perf report -s symbol --stdio Overhead Symbol IPC

Re: [PATCH v3 0/3] perf report/annotate: Support average IPC and IPC coverage for function

2018-11-28 Thread Jin, Yao
On 11/28/2018 6:18 PM, Jiri Olsa wrote: On Wed, Nov 28, 2018 at 11:17:57AM +0100, Jiri Olsa wrote: On Wed, Nov 28, 2018 at 11:14:55PM +0800, Jin Yao wrote: Add supporting of displaying the average IPC and IPC coverage percentage per function. For example, $ perf record -b ... $ perf

[PATCH v4 1/4] perf annotate: Compute average IPC and IPC coverage per symbol

2018-11-28 Thread Jin Yao
__lll_unlock_wake_private add$0x80,%rsp 21.56 2.908a: movslq 0xc(%rsp),%rax 2.90 add$0x18,%rsp 9.03 2.90 1 ← retq It shows for this symbol the average IPC is 2.30 and the IPC coverage is 54.8%. Signed-off-by: Jin Yao --- tools/perf

[PATCH v4 4/4] perf report: Documentation average IPC and IPC coverage

2018-11-28 Thread Jin Yao
Add explanations for new columns "IPC" and "IPC coverage" in perf documentation. Signed-off-by: Jin Yao --- tools/perf/Documentation/perf-report.txt | 8 1 file changed, 8 insertions(+) diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documenta

[PATCH v4 3/4] perf report: Display average IPC and IPC coverage per symbol

2018-11-28 Thread Jin Yao
bled when "symbol" is specified. v2: --- Merge in Jiri's patch to support stdio mode Signed-off-by: Jin Yao --- tools/perf/builtin-report.c | 26 --- tools/perf/util/hist.h | 1 + tools/perf/util/sort.c | 61 + too

  1   2   3   4   5   6   7   8   9   10   >