Re: [PATCH 1/2] perf/Power7: Save dcache_src fields in sample record.

2013-06-10 Thread Sukadev Bhattiprolu
Stephane Eranian [eran...@google.com] wrote: | > Further, in the above REM_CCE1 case, Power7 can also identify if the data came | > from the L2 or L3 cache of another core on the same chip. To describe this to | > user space, we propose to set ->mem_lvl to: | > | > PERF_MEM_LVL_REM_CCE1|P

Re: [PATCH 1/2] perf/Power7: Save dcache_src fields in sample record.

2013-06-10 Thread Sukadev Bhattiprolu
Anshuman Khandual [khand...@linux.vnet.ibm.com] wrote: | > The former approach seems less confusing and this patch uses that approach. | > | | Yeah, the former approach is simpler and makes sense. Ok. Seems to make sense at least on Power. | > + * We use the table, dcache_src_map, to map this

[PATCH 2/2] perf: Add support for the mem_xlvl field.

2013-06-07 Thread Sukadev Bhattiprolu
>From 9f1a8a16e0ef36447e343d1cd4797c2b6a81225f Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Fri, 7 Jun 2013 13:26:31 -0700 Subject: [PATCH 2/2] perf: Add support for the mem_xlvl field. A follow-on patch to adding perf_mem_data_src support for Power7. At this point, this is o

[PATCH 1/2] perf/Power7: Save dcache_src fields in sample record.

2013-06-07 Thread Sukadev Bhattiprolu
From: Sukadev Bhattiprolu Date: Wed, 8 May 2013 22:59:29 -0700 Subject: [PATCH 1/2] perf/Power7: Save dcache_src fields in sample record. Power7 saves the "perf-event vector" information in the mmcra register. Included in this event vector is a "data-cache source" field which

[tip:perf/core] perf: Power7 Update testing ABI to list CPI-stack events

2013-05-31 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: 54aa3b99982a6e5f12b52b394244b5086a330a34 Gitweb: http://git.kernel.org/tip/54aa3b99982a6e5f12b52b394244b5086a330a34 Author: Sukadev Bhattiprolu AuthorDate: Sat, 6 Apr 2013 09:52:05 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 29 May 2013 16:09:42 +0300 perf

[tip:perf/core] perf: Power7: Make CPI stack events available in sysfs

2013-05-31 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: bd1060eb7b46968a8fbdc58e7d8b4575406a5c93 Gitweb: http://git.kernel.org/tip/bd1060eb7b46968a8fbdc58e7d8b4575406a5c93 Author: Sukadev Bhattiprolu AuthorDate: Sat, 6 Apr 2013 08:48:26 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 29 May 2013 16:04:18 +0300 perf

[tip:perf/core] perf tests: Fix compile errors in bp_signal files

2013-05-31 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: b3539d214f6000217aae97b5ae32df5b03faf850 Gitweb: http://git.kernel.org/tip/b3539d214f6000217aae97b5ae32df5b03faf850 Author: Sukadev Bhattiprolu AuthorDate: Fri, 26 Apr 2013 10:17:56 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 28 May 2013 16:23:57 +0300 perf

[tip:perf/core] perf tools: Fix bug in isupper() and islower()

2013-05-31 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: 6956664a5c4c32d5aa48fe96d5e2421a3e3f72d5 Gitweb: http://git.kernel.org/tip/6956664a5c4c32d5aa48fe96d5e2421a3e3f72d5 Author: Sukadev Bhattiprolu AuthorDate: Fri, 29 Mar 2013 12:14:43 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 28 May 2013 16:23:51 +0300 perf

[PATCH] perf: Rename cpu_map__all() to cpu_map__empty()

2013-05-22 Thread Sukadev Bhattiprolu
From: Sukadev Bhattiprolu Date: Wed, 22 May 2013 17:42:38 -0700 Subject: [PATCH] Rename cpu_map__all() to cpu_map__empty(). The CPU map is in an "empty" (or not-applicable) state when monitoring specific threads. cpu_map__all() returns true if the CPU map is in this empty state (i

[PATCH] perf: Add --objdump option to perf top

2013-05-14 Thread Sukadev Bhattiprolu
perf: Add objdump option to 'perf top' Like with 'perf annotate' add the --objdump option to perf top so users can specify an alternate path to the /usr/bin/objdump binary. Reported-by: David A. Gilbert Signed-off-by: Sukadev Bhattiprolu --- tools/perf/builtin-top.c |

Re: [PATCH] perf: Power7: Make CPI stack events available in sysfs

2013-05-11 Thread Sukadev Bhattiprolu
Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote: | Michael Ellerman [mich...@ellerman.id.au] wrote: | | On Sat, Apr 06, 2013 at 09:48:03AM -0700, Sukadev Bhattiprolu wrote: | | > From bdeacf7175241f6c79b5b2be0fa6b20b0d0b7d1c Mon Sep 17 00:00:00 2001 | | > From: Sukadev Bhatt

[PATCH] perf: powerpc: Fix compile errors in bp_signal files

2013-04-26 Thread Sukadev Bhattiprolu
>From 0e27e218def9ae630cc07efbd21664c150a3727a Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Fri, 26 Apr 2013 10:17:56 -0700 Subject: [PATCH] perf: powerpc: Fix compile errors in bp_signal files When building on powerpc, we get compile errors in bp_signal.c and bp_signal_overflo

Re: [PATCH] perf: Power7: Make CPI stack events available in sysfs

2013-04-22 Thread Sukadev Bhattiprolu
Michael Ellerman [mich...@ellerman.id.au] wrote: | On Sat, Apr 06, 2013 at 09:48:03AM -0700, Sukadev Bhattiprolu wrote: | > From bdeacf7175241f6c79b5b2be0fa6b20b0d0b7d1c Mon Sep 17 00:00:00 2001 | > From: Sukadev Bhattiprolu | > Date: Sat, 6 Apr 2013 08:48:26 -0700 | > Subject:

perf --version inconsistency

2013-04-09 Thread Sukadev Bhattiprolu
Following commit replaced 'git describe' with 'git tag -l | tail -1' to speed up the build: commit acddedfba0df1e47fa99035a04661082b679ee9c Author: Ingo Molnar Date: Tue Oct 30 09:46:00 2012 +0100 perf tools: Speed up the perf build time by simplifying the perf

[PATCH] perf: Power7 Update testing ABI to list CPI-stack events

2013-04-06 Thread Sukadev Bhattiprolu
>From 03a785f9d19249d2e524f31d8ead539f15d28a9f Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Sat, 6 Apr 2013 09:52:05 -0700 Subject: [PATCH] perf: Power7 Update testing ABI to list CPI-stack events Following patch added several Power7 events into /sys/devices/cpu/events. Docum

[PATCH] perf: Power7: Make CPI stack events available in sysfs

2013-04-06 Thread Sukadev Bhattiprolu
>From bdeacf7175241f6c79b5b2be0fa6b20b0d0b7d1c Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Sat, 6 Apr 2013 08:48:26 -0700 Subject: [PATCH] perf: Power7: Make CPI stack events available in sysfs A set of Power7 events are often used for Cycles Per Instruction (CPI) stack analy

[PATCH] perf: fix bug in isupper() and islower()

2013-03-29 Thread Sukadev Bhattiprolu
>From fd349681226bf7b27c9d0f72b0f3941b5aa94f78 Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Fri, 29 Mar 2013 12:14:43 -0700 Subject: [PATCH] perf: fix bug in isupper() and islower() One of the reasons 'perf test' is failing on Power appears to be due to a bug in isupper(

Re: [PATCH v2] perf: add callgrind conversion tool

2013-03-28 Thread Sukadev Bhattiprolu
Roberto Vitillo [raviti...@lbl.gov] wrote: | The proposed patch adds the convert tool to perf which allows to convert a | perf.data file to a set of callgrind data files which can subsequently be | displayed with kcachegrind. Sounds interesting and useful. My only comment is that 'convert' is a ge

perf test failures on Power

2013-03-28 Thread Sukadev Bhattiprolu
The 'perf' tool has some built-in test cases and one of them checks to see if the symbols in vmlinux match those in /proc/kallsyms. This test is failing on Power for several reasons. I fixed a couple of them (described briefly at the end of the mail) and these fixes take the test further. One p

[tip:perf/urgent] perf/POWER7: Create a sysfs format entry for Power7 events

2013-03-18 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: 3bf7b07ece6e00747602938f68c1db8001b9925f Gitweb: http://git.kernel.org/tip/3bf7b07ece6e00747602938f68c1db8001b9925f Author: Sukadev Bhattiprolu AuthorDate: Tue, 5 Mar 2013 21:48:26 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Mar 2013 17:01:04 -0300 perf

Re: [PATCH 5/6][v4]: perf: Create a sysfs entry for Power event format

2013-03-05 Thread Sukadev Bhattiprolu
from one place ? Sukadev --- >From 50c7a46f14083c0ed10d66b7aed66ba76e798550 Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Tue, 5 Mar 2013 21:20:56 -0800 Subject: [PATCH] [PATCH 5/6][v4]: perf Create a sysfs format entry for Power7 events Create a sysfs entry, '/sys/bus/even

Re: [PATCH 5/6][v4]: perf: Create a sysfs entry for Power event format

2013-02-26 Thread Sukadev Bhattiprolu
Michael Ellerman [mich...@ellerman.id.au] wrote: | On Tue, Jan 22, 2013 at 10:26:13PM -0800, Sukadev Bhattiprolu wrote: | > | > [PATCH 5/6][v4]: perf: Create a sysfs entry for Power event format | > | > Create a sysfs entry, '/sys/bus/event_source/devices/cpu/format/event

Re: [PATCH v7 07/18] perf: add generic memory sampling interface

2013-02-15 Thread Sukadev Bhattiprolu
> > * Stephane Eranian wrote: > > > This patch adds PERF_SAMPLE_DSRC. > > > > PERF_SAMPLE_DSRC collects the data source, i.e., where > > did the data associated with the sampled instruction > > come from. Information is stored in a perf_mem_dsrc > > structure. It contains opcode, mem level, tlb

[tip:perf/core] perf/powerpc: Fix build error

2013-02-06 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: f2b4367a69c60c644a1df36f63a65e0e677d3b0f Gitweb: http://git.kernel.org/tip/f2b4367a69c60c644a1df36f63a65e0e677d3b0f Author: Sukadev Bhattiprolu AuthorDate: Tue, 5 Feb 2013 15:04:49 -0800 Committer: Ingo Molnar CommitDate: Wed, 6 Feb 2013 12:07:21 +0100 perf/powerpc: Fix

[PATCH] perf/powerpc: Fix compile warnings

2013-02-05 Thread Sukadev Bhattiprolu
From: Sukadev Bhattiprolu Date: Tue, 5 Feb 2013 15:04:49 -0800 Subject: [PATCH] perf/powerpc: Fix compile warnings Fix compile errors like those below: CC arch/powerpc/perf/power7-pmu.o /home/git/linux/arch/powerpc/perf/power7-pmu.c:397:2: error: initialization from incompatible pointer

[tip:perf/core] perf: Document the ABI of perf sysfs entries

2013-02-01 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: 2ac3634a7e1c8eedc961030c87c5c36ebd5bbf8e Gitweb: http://git.kernel.org/tip/2ac3634a7e1c8eedc961030c87c5c36ebd5bbf8e Author: Sukadev Bhattiprolu AuthorDate: Tue, 22 Jan 2013 22:26:45 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 31 Jan 2013 13:07:51 -0300 perf

[tip:perf/core] perf/POWER7: Make some POWER7 events available in sysfs

2013-02-01 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: 886c3b2d677fe248cce8101fa66a1b3e05c3ba16 Gitweb: http://git.kernel.org/tip/886c3b2d677fe248cce8101fa66a1b3e05c3ba16 Author: Sukadev Bhattiprolu AuthorDate: Tue, 22 Jan 2013 22:25:29 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 31 Jan 2013 13:07:51 -0300 perf

[tip:perf/core] perf/POWER7: Make generic event translations available in sysfs

2013-02-01 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: 1c53a270724df91276d28d66f8e5a302fc6a5d74 Gitweb: http://git.kernel.org/tip/1c53a270724df91276d28d66f8e5a302fc6a5d74 Author: Sukadev Bhattiprolu AuthorDate: Tue, 22 Jan 2013 22:24:54 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 31 Jan 2013 13:07:50 -0300 perf

[tip:perf/core] perf: Make EVENT_ATTR global

2013-02-01 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: 2663960c159f23cbfb8e196c96e9fc9f3b5f1a8d Gitweb: http://git.kernel.org/tip/2663960c159f23cbfb8e196c96e9fc9f3b5f1a8d Author: Sukadev Bhattiprolu AuthorDate: Tue, 22 Jan 2013 22:24:23 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 31 Jan 2013 13:07:50 -0300 perf

[tip:perf/core] perf/Power7: Use macros to identify perf events

2013-02-01 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: bbdc7aa442630a84feae45f4ca2dd7ed01abc868 Gitweb: http://git.kernel.org/tip/bbdc7aa442630a84feae45f4ca2dd7ed01abc868 Author: Sukadev Bhattiprolu AuthorDate: Tue, 22 Jan 2013 22:23:53 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 31 Jan 2013 13:07:50 -0300 perf

[tip:perf/core] perf tools, powerpc: Fix compile warnings in tests/attr.c

2013-01-31 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: e3541ec75219819d3235f80125a1a75d798ff6e1 Gitweb: http://git.kernel.org/tip/e3541ec75219819d3235f80125a1a75d798ff6e1 Author: Sukadev Bhattiprolu AuthorDate: Wed, 23 Jan 2013 21:44:39 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 30 Jan 2013 10:37:14 -0300 perf

[tip:perf/core] perf tools: Fix PMU format parsing test failure

2013-01-25 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: 15268138e334bd0362f8395edac4822351714a22 Gitweb: http://git.kernel.org/tip/15268138e334bd0362f8395edac4822351714a22 Author: Sukadev Bhattiprolu AuthorDate: Thu, 17 Jan 2013 09:11:30 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 24 Jan 2013 16:40:47 -0300 perf

[PATCH][v2] perf tools, powerpc: Fix compile warnings in tests/attr.c

2013-01-23 Thread Sukadev Bhattiprolu
o '-Werror'. By defining __SANE_USERSPACE_TYPES__ we include and define __u64 as unsigned long long. Changelog[v2]: [Michael Ellerman] Use __SANE_USERSPACE_TYPES__ and avoid PRIu64 format specifier - which as Jiri Olsa pointed out, breaks on x86-64. Signed-off-by: Sukadev

Re: [PATCH] perf: Fix compile warnings in tests/attr.c

2013-01-23 Thread Sukadev Bhattiprolu
Michael Ellerman [mich...@ellerman.id.au] wrote: | > | make: *** [tests/attr.o] Error 1 | > | | > | i386 compiles fine | > | > __u64 is 'unsigned long long' on x86 and PRIu64 is 'llu' which is fine. | > | > __u64 is 'unsigned long' on Power and PRIu64 is 'lu' which is again fine. | > | > But __

[PATCH 6/6][v4]: perf: Document the ABI of perf sysfs entries

2013-01-22 Thread Sukadev Bhattiprolu
testing/' Changelog[v3]: [Greg KH] Include ABI documentation. Signed-off-by: Sukadev Bhattiprolu Acked-by: Jiri Olsa --- .../testing/sysfs-bus-event_source-devices-events | 62 1 files changed, 62 insertions(+), 0 deletions(-) delete mode 100644 Documenta

[PATCH 5/6][v4]: perf: Create a sysfs entry for Power event format

2013-01-22 Thread Sukadev Bhattiprolu
change is common in the code common to POWER cpus. This code is based on corresponding code in x86. Changelog[v2]: [Jiri Osla] Use PMU_FORMAT_ATTR() rather than duplicating it. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/include/asm/perf_event_server.h |6 ++ arch/powerpc/perf/cor

[PATCH 4/6][v4]: perf/POWER7: Make some POWER7 events available in sysfs

2013-01-22 Thread Sukadev Bhattiprolu
are POWER specific and the others are the generic events. This will enable users to specify these events with their symbolic names rather than with their raw code. perf stat -e 'cpu/PM_CYC' ... Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/include/asm/perf_event_serv

[PATCH 3/6][v4]: perf/POWER7: Make generic event translations available in sysfs

2013-01-22 Thread Sukadev Bhattiprolu
a47473939db20e3961b200eb00acf5fcf084d755 Author: Jiri Olsa Date: Wed Oct 10 14:53:11 2012 +0200 perf/x86: Make hardware event translations available in sysfs Changelog:[v2] [Jiri Osla] Drop EVENT_ID() macro since it is only used once. Signed-off-by: Sukadev Bhattiprolu

[PATCH 2/6][v4]: perf: Make EVENT_ATTR global

2013-01-22 Thread Sukadev Bhattiprolu
need to define PMU_EVENT_PTR() Signed-off-by: Sukadev Bhattiprolu Acked-by: Jiri Olsa --- arch/x86/kernel/cpu/perf_event.c | 13 +++-- include/linux/perf_event.h | 11 +++ 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/arch/x86/kernel/cpu/perf_event.c b

[PATCH 1/6][v4]: perf/Power7: Use macros to identify perf events

2013-01-22 Thread Sukadev Bhattiprolu
[PATCH 1/6][v4]: perf/Power7: Use macros to identify perf events Define and use macros to identify perf events codes This would make it easier and more readable when these event codes need to be used in more than one place. Signed-off-by: Sukadev Bhattiprolu Acked-by: Jiri Olsa --- arch

[PATCH 0/6][v4]: perf: Make POWER7 events available in sysfs

2013-01-22 Thread Sukadev Bhattiprolu
nation/ABI Changelog[v2]: [Jiri Olsa] Use PMU_FORMAT_ATTR() rather than duplicating code. Sukadev Bhattiprolu (6): perf/Power7: Use macros to identify perf events perf: Make EVENT_ATTR global perf/POWER7: Make generic event translations available in sysfs perf/POWER7: Make some POWER

Re: [PATCH] perf: Fix compile warnings in tests/attr.c

2013-01-21 Thread Sukadev Bhattiprolu
Jiri Olsa [jo...@redhat.com] wrote: | On Fri, Jan 18, 2013 at 05:30:52PM -0800, Sukadev Bhattiprolu wrote: | > From 4d266e5040c33103f5d226b0d16b89f8ef79e3ad Mon Sep 17 00:00:00 2001 | > From: Sukadev Bhattiprolu | > Date: Fri, 18 Jan 2013 11:14:28 -0800 | > Subject: [PATCH] perf:

[PATCH] perf: Fix compile warnings in tests/attr.c

2013-01-18 Thread Sukadev Bhattiprolu
>From 4d266e5040c33103f5d226b0d16b89f8ef79e3ad Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Fri, 18 Jan 2013 11:14:28 -0800 Subject: [PATCH] perf: Fix compile warnings in tests/attr.c Replace '%llu' in printf()s with 'PRIu64' in 'tools/perf/tests/att

Re: [PATCH 6/6][v3] perf: Document the ABI of perf sysfs entries

2013-01-18 Thread Sukadev Bhattiprolu
the updated patch. --- >From 1e3cc6b3ef87f533985b10574af472361e39eecd Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Tue, 8 Jan 2013 22:31:49 -0800 Subject: [PATCH] perf: Document the ABI of perf sysfs entries This patchset addes two new sets of files to sysfs for POWER architecture. - perf event config format

[PATCH] perf: Fix PMU format parsing test failure

2013-01-17 Thread Sukadev Bhattiprolu
>From 776e6d7942754f139c27753213c9cf4617536618 Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Thu, 17 Jan 2013 09:11:30 -0800 Subject: [PATCH] perf; Fix PMU format parsing test failure On POWER, the 'perf format parsing' test always fails. Looks like it is because mems

Re: [PATCH 6/6][v3] perf: Document the ABI of perf sysfs entries

2013-01-16 Thread Sukadev Bhattiprolu
Jiri Olsa [jo...@redhat.com] wrote: | On Tue, Jan 15, 2013 at 03:57:59PM -0300, Arnaldo Carvalho de Melo wrote: | > Em Wed, Jan 09, 2013 at 05:07:03PM -0800, Sukadev Bhattiprolu escreveu: | > > [PATCH 6/6][v3] perf: Document the ABI of perf sysfs entries | > > | > > This p

[PATCH 6/6][v3] perf: Document the ABI of perf sysfs entries

2013-01-09 Thread Sukadev Bhattiprolu
which would become part of the ABI. Changelog[v3]: [Greg KH] Include ABI documentation. Signed-off-by: Sukadev Bhattiprolu --- Documentation/ABI/stable/sysfs-devices-cpu-events | 54 + Documentation/ABI/stable/sysfs-devices-cpu-format | 27 ++ 2 files

[PATCH 5/6][v3] perf: Create a sysfs entry for Power event format

2013-01-09 Thread Sukadev Bhattiprolu
change is common in the code common to POWER cpus. This code is based on corresponding code in x86. Changelog[v2]: [Jiri Olsa] Use PMU_FORMAT_ATTR() rather than duplicating it. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/include/asm/perf_event_server.h |6 ++ arch/powerpc/perf/cor

[PATCH 4/6][v3] perf/POWER7: Make some POWER7 events available in sysfs

2013-01-09 Thread Sukadev Bhattiprolu
are POWER specific and the others are the generic events. This will enable users to specify these events with their symbolic names rather than with their raw code. perf stat -e 'cpu/PM_CYC/' ... Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/include/asm/perf_event_serv

[PATCH 3/6][v3] perf/POWER7: Make generic event translations available in sysfs

2013-01-09 Thread Sukadev Bhattiprolu
a47473939db20e3961b200eb00acf5fcf084d755 Author: Jiri Olsa Date: Wed Oct 10 14:53:11 2012 +0200 perf/x86: Make hardware event translations available in sysfs Changelog:[v3] [Jiri Olsa] Drop EVENT_ID() macro since it is only used once. Signed-off-by: Sukadev Bhattiprolu

[PATCH 2/6][v3] perf: Make EVENT_ATTR global

2013-01-09 Thread Sukadev Bhattiprolu
need to define PMU_EVENT_PTR() Signed-off-by: Sukadev Bhattiprolu --- arch/x86/kernel/cpu/perf_event.c | 13 +++-- include/linux/perf_event.h | 11 +++ 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu

[PATCH 1/6][v3] perf/Power7: Use macros to identify perf events

2013-01-09 Thread Sukadev Bhattiprolu
[PATCH 1/6][v3] perf/Power7: Use macros to identify perf events Define and use macros to identify perf events codes. This would make it easier and more readable when these event codes need to be used in more than one place. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/perf/power7-pmu.c

Re: [PATCH 2/5] perf: Make EVENT_ATTR and EVENT_PTR global

2013-01-04 Thread Sukadev Bhattiprolu
Jiri Olsa [jo...@redhat.com] wrote: | On Tue, Dec 18, 2012 at 11:28:02PM -0800, Sukadev Bhattiprolu wrote: | > | > Rename EVENT_ATTR() and EVENT_PTR() PMU_EVENT_ATTR() and PMU_EVENT_PTR(). | > Make them global so they are available to all architectures. | > | > Further to allo

Re: [PATCH 3/5] perf/POWER7: Make generic event translations available in sysfs

2012-12-19 Thread Sukadev Bhattiprolu
Greg KH [g...@kroah.com] wrote: | On Tue, Dec 18, 2012 at 11:28:49PM -0800, Sukadev Bhattiprolu wrote: | > | > [PATCH 3/5] perf/POWER7: Make generic event translations available in sysfs | | As you are adding new sysfs files, you must also add new | Documentation/ABI entries at the sam

[PATCH 5/5] perf: Create a sysfs entry for Power event format

2012-12-18 Thread Sukadev Bhattiprolu
s based on corresponding code in x86. Changelog[v2]: [Jiri Osla] Use PMU_FORMAT_ATTR() rather than duplicating it. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/include/asm/perf_event_server.h |6 ++ arch/powerpc/perf/core-book3s.c | 12 arch/powerpc/perf/po

[PATCH 4/5] perf/POWER7: Make some POWER7 events available in sysfs

2012-12-18 Thread Sukadev Bhattiprolu
able users to specify these events with their symbolic names rather than with their raw code. perf stat -e 'cpu/PM_CYC' ... Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/include/asm/perf_event_server.h |2 ++ arch/powerpc/perf/power7-pmu.c | 18 +++

[PATCH 3/5] perf/POWER7: Make generic event translations available in sysfs

2012-12-18 Thread Sukadev Bhattiprolu
a47473939db20e3961b200eb00acf5fcf084d755 Author: Jiri Olsa Date: Wed Oct 10 14:53:11 2012 +0200 perf/x86: Make hardware event translations available in sysfs Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/include/asm/perf_event_server.h | 25 +++ arch/powerpc/perf

[PATCH 2/5] perf: Make EVENT_ATTR and EVENT_PTR global

2012-12-18 Thread Sukadev Bhattiprolu
Rename EVENT_ATTR() and EVENT_PTR() PMU_EVENT_ATTR() and PMU_EVENT_PTR(). Make them global so they are available to all architectures. Further to allow architectures flexibility, have PMU_EVENT_PTR() pass in the variable name as a parameter. Signed-off-by: Sukadev Bhattiprolu --- arch/x86

[PATCH 1/5] perf/Power7: Use macros to identify perf events

2012-12-18 Thread Sukadev Bhattiprolu
Define and use macros to identify perf events codes This would make it easier and more readable when these event codes need to be used in more than one place. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/perf/power7-pmu.c | 28 1 files changed, 20

[tip:perf/core] perf powerpc: Use uapi/ unistd.h to fix build error

2012-12-08 Thread tip-bot for Sukadev Bhattiprolu
Commit-ID: 1483c2ae90738e7453bfe446a3bbcdd0ba9abf36 Gitweb: http://git.kernel.org/tip/1483c2ae90738e7453bfe446a3bbcdd0ba9abf36 Author: Sukadev Bhattiprolu AuthorDate: Wed, 31 Oct 2012 11:21:28 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 14 Nov 2012 16:53:39 -0300 perf

Re: [PATCH 3/4] perf/POWER7: Make event translations available in sysfs

2012-11-16 Thread Sukadev Bhattiprolu
Jiri Olsa [jo...@redhat.com] wrote: | > | > Can we remove the assumption that the event id is a generic event that | > has PERF_COUNT_HW_ prefix and also let the architectures pass in a "show" | > function ? This would allow architectures to display any arch specific | > events that don't yet have

Re: [PATCH 3/4] perf/POWER7: Make event translations available in sysfs

2012-11-14 Thread Sukadev Bhattiprolu
Jiri Olsa [jo...@redhat.com] wrote: | On Wed, Nov 07, 2012 at 11:19:28AM -0800, Sukadev Bhattiprolu wrote: | | SNIP | | > +struct perf_pmu_events_attr { | > + struct device_attribute attr; | > + u64 id; | > +}; | > + | > +extern ssize_t power_events_sysfs_show(

perf: POWER-event translation questions

2012-11-07 Thread Sukadev Bhattiprolu
Looking for feedback on this prototype for making POWER-specific event translations available in sysfs. It is based on the patchset: https://lkml.org/lkml/2012/11/7/402 which makes the translations for _generic_ events in POWER available in sysfs: Since this is in POWER7 specific code

[PATCH 4/4] perf: Create a sysfs entry for Power event format

2012-11-07 Thread Sukadev Bhattiprolu
>From bafc551c31ce23c1cba0b75d23de6c46aba90f26 Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Tue, 6 Nov 2012 16:30:28 -0800 Subject: [PATCH 4/4] perf: Create a sysfs entry for Power event format Create a sysfs entry, '/sys/bus/event_source/devices/cpu/format/event' wh

[PATCH 3/4] perf/POWER7: Make event translations available in sysfs

2012-11-07 Thread Sukadev Bhattiprolu
>From d05d1ce6d55bf339eee6230ded9f5dd1351f60e5 Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Tue, 6 Nov 2012 14:07:36 -0800 Subject: [PATCH 3/4] perf/POWER7: Make event translations available in sysfs Make the perf events supported by POWER7 available via sysfs. $ ls /

[PATCH 2/4] perf/Power7: Use macros to identify perf events

2012-11-07 Thread Sukadev Bhattiprolu
>From 8a0dbd8f3fce2834292efa50c15ca64d4f6a6536 Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Wed, 7 Nov 2012 09:36:14 -0800 Subject: [PATCH 2/4] perf/Power7: Use macros to identify perf events Define and use macros to identify perf events codes This would make it easier and m

[PATCH 1/4] perf/powerpc: Use uapi/unistd.h to fix build error

2012-11-07 Thread Sukadev Bhattiprolu
>From b8beef080260c1625c8f801105504a82005295e5 Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Wed, 31 Oct 2012 11:21:28 -0700 Subject: [PATCH 1/4] perf/powerpc: Use uapi/unistd.h to fix build error Use the 'unistd.h' from arch/powerpc/include/uapi to build the perf tool

[PATCH] perf: powerpc: Use uapi/unistd.h to fix build error

2012-11-02 Thread Sukadev Bhattiprolu
From: Sukadev Bhattiprolu Date: Wed, 31 Oct 2012 11:21:28 -0700 Subject: [PATCH] perf: powerpc: Use uapi/unistd.h to fix build error Use the 'unistd.h' from arch/powerpc/include/uapi to build the perf tool. Signed-off-by: Sukadev Bhattiprolu --- tools/perf/perf.h |2 +- 1 fil

Re: [RFC][PATCH] perf: Add a few generic stalled-cycles events

2012-10-30 Thread Sukadev Bhattiprolu
Peter Zijlstra [pet...@infradead.org] wrote: | On Tue, 2012-10-16 at 11:31 -0700, Sukadev Bhattiprolu wrote: | > On a side note, how does the kernel on x86 use the 'config' information in | > say /sys/bus/event_source/devices/cpu/format/cccr ? On Power7, the raw | > code enco

[PATCH] perf: x86 filter_events() - use hw event id ?

2012-10-30 Thread Sukadev Bhattiprolu
>From c3b53a5733fdea35807f4513255bca05e3aee5c5 Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Tue, 30 Oct 2012 23:05:05 -0700 Subject: [PATCH] perf: x86 filter_events() - use hw event id ? The ->event_map() operation expects to index through the _hardware event id_. But filter_

Re: [RFC][PATCH] perf: Add a few generic stalled-cycles events

2012-10-19 Thread Sukadev Bhattiprolu
Stephane Eranian [eran...@google.com] wrote: | So all in all, I think this is not a very good idea. You have to put | this into the tool or a library that auto-detects the | host CPU and programs the right set of events. | | We've had that discussion many times. Just reiterating my personal | opin

Re: [RFC][PATCH] perf: Add a few generic stalled-cycles events

2012-10-16 Thread Sukadev Bhattiprolu
Robert Richter [robert.rich...@amd.com] wrote: | Sukadev, | | On 15.10.12 17:55:34, Robert Richter wrote: | > On 11.10.12 18:28:39, Sukadev Bhattiprolu wrote: | > > + { .type = PERF_TYPE_HARDWARE, .config = PERF_COUNT_HW_STALLED_CYCLES_FIXED_POINT }, | > > + { .type = PER

[RFC][PATCH] perf: Add a few generic stalled-cycles events

2012-10-11 Thread Sukadev Bhattiprolu
>From 89cb6a25b9f714e55a379467a832ee015014ed11 Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Tue, 18 Sep 2012 10:59:01 -0700 Subject: [PATCH] perf: Add a few generic stalled-cycles events The existing generic event 'stalled-cycles-backend' corresponds to PM_CMPLU_S

Re: PID namespaces break initrd+hibernate combination?

2007-11-05 Thread Sukadev Bhattiprolu
Nigel Cunningham wrote: Hi all. Please excuse me if this has already been answered. I'm not currently subscribed to LKML. I've just been preparing a new tux-on-ice release against Linus' current tree, and encountered a failure to freeze pid 1 when seeking to resume, using an initrd: [ 74.

Re: [PATCH] sigqueue_free: fix the race with collect_signal()

2007-08-25 Thread Sukadev Bhattiprolu
Oleg Nesterov wrote: On 08/24, Sukadev Bhattiprolu wrote: Oleg Nesterov wrote: On 08/24, taoyue wrote: Oleg Nesterov wrote: collect_signal: sigqueue_free: list_del_init(&first-&

Re: [PATCH] sigqueue_free: fix the race with collect_signal()

2007-08-24 Thread Sukadev Bhattiprolu
Oleg Nesterov wrote: On 08/24, taoyue wrote: Oleg Nesterov wrote: collect_signal: sigqueue_free: list_del_init(&first->list); spin_lock_irqsave(lock, flags);

Re: [PATCH] sigqueue_free: fix the race with collect_signal()

2007-08-23 Thread Sukadev Bhattiprolu
Oleg Nesterov wrote: Spotted by taoyue <[EMAIL PROTECTED]> and Jeremy Katz <[EMAIL PROTECTED]>. collect_signal: sigqueue_free: list_del_init(&first->list); if (!list_empty(&q->list)) {

[PATCH 2/2] Explicitly set pgid/sid of init

2007-01-20 Thread Sukadev Bhattiprolu
Pls treat this patch as Patch 2/2 where Patch 1/2 is http://lkml.org/lkml/2007/1/19/159 --- From: Sukadev Bhattiprolu <[EMAIL PROTECTED]> Explicitly set pgid and sid of init process to 1. Signed-off-by: Sukadev Bhattiprolu <[EMAIL PROTECTED]> Cc: Cedric Le Goater <[

[PATCH] Statically initialize struct pid for swapper

2007-01-19 Thread Sukadev Bhattiprolu
From: Sukadev Bhattiprolu <[EMAIL PROTECTED]> Subject: [PATCH] Statically initialize struct pid for swapper Statically initialize a struct pid for the swapper process (pid_t == 0) and attach it to init_task. This is needed so task_pid(), task_pgrp() and task_session() interfaces work

Re: [BUG] 2.6.20-rc4-mm1: Panic in e1000_write_vfta_82543()

2007-01-18 Thread Sukadev Bhattiprolu
Auke Kok [EMAIL PROTECTED] wrote: | Sukadev Bhattiprolu wrote: | >I get following panic on 2.6.20-rc4-mm1 on a 2-cpu AMD Opteron system. | > | >Same basic config file seems to work with 2.6.20-rc2-mm1 on this same | >system. Have not tried -rc3-mm1 yet. | > | >Attached are conf

[BUG] 2.6.20-rc4-mm1: Panic in e1000_write_vfta_82543()

2007-01-18 Thread Sukadev Bhattiprolu
I get following panic on 2.6.20-rc4-mm1 on a 2-cpu AMD Opteron system. Same basic config file seems to work with 2.6.20-rc2-mm1 on this same system. Have not tried -rc3-mm1 yet. Attached are config file and "lspci -vv" output. Let me know if you need more info. Suka --- [ 168.925840] Freeing

[PATCH] Remove find_attach_pid()

2007-01-11 Thread Sukadev Bhattiprolu
As Eric Biederman pointed out, find_attach_pid() is not really necessary. --- From: Sukadev Bhattiprolu <[EMAIL PROTECTED]> Remove find_attach_pid() interface and have callers of attach_pid() pass in a struct pid. Signed-off-by: Sukadev Bhattiprolu <[EMAIL PROTECTED]> Cc: Cedr

[PATCH] attach_pid() with struct pid parameter

2007-01-11 Thread Sukadev Bhattiprolu
From: Sukadev Bhattiprolu <[EMAIL PROTECTED]> Implement a new version of attach_pid() with a struct pid parameter and wrap find_attach_pid() around it. attach_pid() would also be used in subsequent container patches. Signed-off-by: Sukadev Bhattiprolu <[EMAIL PROTECTED]> Cc: Cedr

[PATCH] Rename attach_pid() to find_attach_pid()

2007-01-11 Thread Sukadev Bhattiprolu
From: Sukadev Bhattiprolu <[EMAIL PROTECTED]> attach_pid() currently takes a pid_t parameter and uses find_pid() to find the struct pid associated with the pid_t. With containers, we sometimes already have the struct pid and could skip the find_pid() - if we have a version of attach_pid(

<    4   5   6   7   8   9