[PATCH] media: cx25840: mark pad sig_types to fix cx231xx init

2019-01-14 Thread Cody P Schafer
quot;) Cc: sta...@vger.kernel.org Signed-off-by: Cody P Schafer --- drivers/media/i2c/cx25840/cx25840-core.c | 3 ++- drivers/media/i2c/cx25840/cx25840-core.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/cx25840/cx25840-core.c b/drivers/media/i2c/c

[PATCH] rbtree: clarify documentation of rbtree_postorder_for_each_entry_safe()

2015-10-04 Thread Cody P Schafer
ds of rb_node & cgwb_congested_tree as required by other users of those structures. CC: Tejun Heo Signed-off-by: Cody P Schafer --- include/linux/rbtree.h | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/linux/rbtree.h b/include/linux/rbtree.h inde

Re: [PATCH v7 7/7] powerpc/perf/hv-24x7: Document sysfs event description entries

2015-02-22 Thread Cody P Schafer
On Fri, Jan 30, 2015 at 4:46 PM, Sukadev Bhattiprolu wrote: > From: Cody P Schafer > > Signed-off-by: Cody P Schafer > Signed-off-by: Sukadev Bhattiprolu > --- > Changelog[v6] > Update Contact info to Linux on Power Developer list > > .../testing/sysfs-bus-e

Re: [RFC][PATCH] perf: Implement read_group() PMU operation

2015-02-22 Thread Cody P Schafer
On Thu, Feb 5, 2015 at 9:59 PM, Sukadev Bhattiprolu wrote: > From: Sukadev Bhattiprolu > Date: Thu Feb 5 20:56:20 EST 2015 -0300 > Subject: [RFC][PATCH] perf: Implement read_group() PMU operation > > This is a lightly tested, exploratory patch to allow PMUs to return > several counters at once.

[tip:perf/core] perf tools: Support parsing parameterized events

2015-01-28 Thread tip-bot for Cody P Schafer
Commit-ID: 688d4dfcdd624192cbf03c08402e444d1d11f294 Gitweb: http://git.kernel.org/tip/688d4dfcdd624192cbf03c08402e444d1d11f294 Author: Cody P Schafer AuthorDate: Wed, 7 Jan 2015 17:13:50 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 21 Jan 2015 13:24:32 -0300 perf tools

[tip:perf/core] perf tools: Extend format_alias() to include event parameters

2015-01-28 Thread tip-bot for Cody P Schafer
Commit-ID: aaea36174991ff39c7a18044660db86527100c55 Gitweb: http://git.kernel.org/tip/aaea36174991ff39c7a18044660db86527100c55 Author: Cody P Schafer AuthorDate: Wed, 7 Jan 2015 17:13:51 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 21 Jan 2015 13:24:33 -0300 perf tools

[tip:perf/core] perf tools: Document parameterized and symbolic events

2015-01-28 Thread tip-bot for Cody P Schafer
Commit-ID: f9ab9c196d015f3bd8f6bd1c30785c5a49542323 Gitweb: http://git.kernel.org/tip/f9ab9c196d015f3bd8f6bd1c30785c5a49542323 Author: Cody P Schafer AuthorDate: Wed, 7 Jan 2015 17:13:53 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 21 Jan 2015 13:24:33 -0300 perf tools

[tip:perf/core] perf Documentation: Add event parameters

2015-01-28 Thread tip-bot for Cody P Schafer
Commit-ID: 98a43e0e9917059da32db89829b0eb95453a11ee Gitweb: http://git.kernel.org/tip/98a43e0e9917059da32db89829b0eb95453a11ee Author: Cody P Schafer AuthorDate: Wed, 7 Jan 2015 17:13:52 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 21 Jan 2015 13:24:33 -0300 perf

Re: [PATCH v5 1/4] tools/perf: support parsing parameterized events

2014-12-05 Thread Cody P Schafer
On Thu, Dec 4, 2014 at 7:44 AM, Jiri Olsa wrote: > On Tue, Dec 02, 2014 at 06:09:35PM -0800, Sukadev Bhattiprolu wrote: >> From: Cody P Schafer >> >> Enable event specification like: >> >> pmu/event_name,param1=0x1,param2=0x4/ >> >> Assuming t

Re: [PATCH v5 6/6] powerpc/perf/hv-24x7: Document sysfs event description entries

2014-12-03 Thread Cody P Schafer
sting/sysfs-bus-event_source-devices-hv_24x7 > @@ -21,3 +21,25 @@ Contact: Linux on PowerPC Developer List > > +Contact: Cody P Schafer Probably want someone else to be the contact here. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

[tip:perf/urgent] perf Documentation: Remove Ruplicated docs for powerpc cpu specific events

2014-10-15 Thread tip-bot for Cody P Schafer
Commit-ID: b56d5beff4825f9f216f1fc4a54a5d07d4b68b71 Gitweb: http://git.kernel.org/tip/b56d5beff4825f9f216f1fc4a54a5d07d4b68b71 Author: Cody P Schafer AuthorDate: Tue, 30 Sep 2014 23:03:20 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 15 Oct 2014 16:00:37 -0300 perf

[tip:perf/urgent] perf Documentation: sysfs events/ interfaces

2014-10-15 Thread tip-bot for Cody P Schafer
Commit-ID: ed90a4466340e51699139ea83dbe0f4536360e6d Gitweb: http://git.kernel.org/tip/ed90a4466340e51699139ea83dbe0f4536360e6d Author: Cody P Schafer AuthorDate: Tue, 30 Sep 2014 23:03:19 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 15 Oct 2014 15:54:40 -0300 perf

Re: [PATCH v4 10/10] powerpc/perf/hv-24x7: Document sysfs event description entries

2014-09-30 Thread Cody P Schafer
> +What: /sys/bus/event_source/devices/hv_24x7/event_descs/ > +Date: February 2014 > +Contact: Cody P Schafer May want to change this contact email to an address that still works (perhaps the ppc devel list?) -- To unsubscribe from this list: send the line &qu

[tip:perf/core] perf tools: Annotate PMU related list_head members with type info

2014-08-18 Thread tip-bot for Cody P Schafer
Commit-ID: 885b5930d6632fc7df55445d9021b87d8bb17a9b Gitweb: http://git.kernel.org/tip/885b5930d6632fc7df55445d9021b87d8bb17a9b Author: Cody P Schafer AuthorDate: Fri, 15 Aug 2014 00:26:14 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 15 Aug 2014 10:42:40 -0300 perf tools

[tip:perf/core] perf tools: Allow overriding sysfs and proc finding with env var

2014-06-05 Thread tip-bot for Cody P Schafer
Commit-ID: f2d9627b2b31506204417bb6842a7ea88970b700 Gitweb: http://git.kernel.org/tip/f2d9627b2b31506204417bb6842a7ea88970b700 Author: Cody P Schafer AuthorDate: Tue, 27 May 2014 17:21:56 -0700 Committer: Jiri Olsa CommitDate: Tue, 3 Jun 2014 21:34:29 +0200 perf tools: Allow

Re: [PATCH 11/16] byteorder: provide a linux/byteorder.h with {be, le}_to_cpu() and cpu_to_{be, le}() macros

2014-05-28 Thread Cody P Schafer
On Wed, May 28, 2014 at 6:00 PM, Joe Perches wrote: > On Wed, 2014-05-28 at 17:11 -0500, Cody P Schafer wrote: >> On Wed, May 28, 2014 at 5:05 PM, Cody P Schafer wrote: >> > On Wed, May 28, 2014 at 3:45 AM, David Laight >> > wrote: >> >> From: Cody P Sc

Re: [PATCH 11/16] byteorder: provide a linux/byteorder.h with {be, le}_to_cpu() and cpu_to_{be, le}() macros

2014-05-28 Thread Cody P Schafer
On Wed, May 28, 2014 at 5:05 PM, Cody P Schafer wrote: > On Wed, May 28, 2014 at 3:45 AM, David Laight wrote: >> From: Cody P Schafer >>> Rather manually specifying the size of the integer to be converted, key >>> off of the type size. Reduces duplicate size info and t

Re: [PATCH 11/16] byteorder: provide a linux/byteorder.h with {be,le}_to_cpu() and cpu_to_{be,le}() macros

2014-05-28 Thread Cody P Schafer
On Tue, May 27, 2014 at 7:44 PM, Joe Perches wrote: > On Tue, 2014-05-27 at 17:22 -0700, Cody P Schafer wrote: >> Rather manually specifying the size of the integer to be converted, key >> off of the type size. Reduces duplicate size info and the occurance of >> certain typ

Re: [PATCH 11/16] byteorder: provide a linux/byteorder.h with {be, le}_to_cpu() and cpu_to_{be, le}() macros

2014-05-28 Thread Cody P Schafer
On Wed, May 28, 2014 at 3:45 AM, David Laight wrote: > From: Cody P Schafer >> Rather manually specifying the size of the integer to be converted, key >> off of the type size. Reduces duplicate size info and the occurance of >> certain types of bugs (using the w

[PATCH 14/16] perf: add PMU_EVENT_ATTR_STRING() helper

2014-05-27 Thread Cody P Schafer
Helper for constructing static struct perf_pmu_events_attr s. CC: Sukadev Bhattiprolu Signed-off-by: Cody P Schafer --- include/linux/perf_event.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 6c1d6dd..1313171 100644

[PATCH 15/16] powerpc/perf/{hv-gpci,hv-common}: generate requests with counters annotated

2014-05-27 Thread Cody P Schafer
exchange for this macro disaster, we get autogenerated event listing for GPCI in sysfs, build time field offset checking, and zero duplication of information about GPCI requests. CC: Sukadev Bhattiprolu Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-common.c | 10 +- arch

[PATCH 16/16] powerpc/perf/hv-gpci: add the remaining gpci requests

2014-05-27 Thread Cody P Schafer
Add the remaining gpci requests that contain counters suitable for use by perf. Omit those that don't contain any counters (but note their ommision). CC: Sukadev Bhattiprolu Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-gpci-requests.h | 179 +++ 1

[PATCH 12/16] powerpc/perf/hv-24x7: parse catalog and populate sysfs with events

2014-05-27 Thread Cody P Schafer
we'll also need to prevent old events from continuing to function (counter that is passed in via spare space in the config values?). CC: Sukadev Bhattiprolu Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-24x7-catalog.h | 25 ++ arch/powerpc/perf/hv-24x7-domains.h | 19 + arch/po

[PATCH 11/16] byteorder: provide a linux/byteorder.h with {be,le}_to_cpu() and cpu_to_{be,le}() macros

2014-05-27 Thread Cody P Schafer
Rather manually specifying the size of the integer to be converted, key off of the type size. Reduces duplicate size info and the occurance of certain types of bugs (using the wrong sized conversion). CC: Sukadev Bhattiprolu Signed-off-by: Cody P Schafer --- include/linux/byteorder.h | 34

[PATCH 13/16] powerpc/perf/hv-24x7: Documentaion for new sysfs entries which expose descriptions

2014-05-27 Thread Cody P Schafer
CC: Sukadev Bhattiprolu Signed-off-by: Cody P Schafer --- .../testing/sysfs-bus-event_source-devices-hv_24x7 | 22 ++ 1 file changed, 22 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7 b/Documentation/ABI/testing/sysfs-bus

[PATCH 07/16] tools/perf: support parsing parameterized events

2014-05-27 Thread Cody P Schafer
Enable event specification like: pmu/event_name,param1=0x1,param2=0x4/ Assuming that /sys/bus/event_source/devices/pmu/events/event_name Contains something like bar=param2,foo=1,baz=param1 CC: Sukadev Bhattiprolu Signed-off-by: Cody P Schafer --- tools/perf/util

[PATCH 09/16] tools/perf: document parameterized events and note symbolically formed events

2014-05-27 Thread Cody P Schafer
CC: Sukadev Bhattiprolu Signed-off-by: Cody P Schafer --- tools/perf/Documentation/perf-list.txt | 13 + tools/perf/Documentation/perf-record.txt | 5 + 2 files changed, 18 insertions(+) diff --git a/tools/perf/Documentation/perf-list.txt b/tools/perf/Documentation/perf

[PATCH 05/16] perf Documentation: add event parameters

2014-05-27 Thread Cody P Schafer
#x27;t possible because bindings between our cpus and physical cpus may not be fixed, and we probably won't have a "cpu" on each physical cpu. CC: Sukadev Bhattiprolu Signed-off-by: Cody P Schafer --- Documentation/ABI/testing/sysfs-bus-event_source-devices-events | 6 ++ 1 fi

[PATCH 08/16] tools/perf: extend format_alias() to include event parameters

2014-05-27 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- tools/perf/util/pmu.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index db53fac..7b8d067 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -741,10

[PATCH 10/16] perf: provide sysfs_show for struct perf_pmu_events_attr

2014-05-27 Thread Cody P Schafer
(struct perf_pmu_events_attr) is defined in include/linux/perf_event.h, but the only "show" for it is in x86 and contains x86 specific stuff. Make a generic one for those of us who are just using the event_str. CC: Sukadev Bhattiprolu Signed-off-by: Cody P Schafer --- inc

[PATCH 06/16] tools/perf: annotate list_head with type info

2014-05-27 Thread Cody P Schafer
CC: Sukadev Bhattiprolu Signed-off-by: Cody P Schafer --- tools/perf/util/pmu.c | 4 ++-- tools/perf/util/pmu.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 00a7dcb..906ae40 100644 --- a/tools/perf/util/pmu.c

[PATCH 02/16] powerpc/perf/hv-24x7: use kmem_cache instead of aligned stack allocations

2014-05-27 Thread Cody P Schafer
Cody P Schafer --- arch/powerpc/perf/hv-24x7.c | 52 - 1 file changed, 37 insertions(+), 15 deletions(-) diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c index e0766b8..9a7a830 100644 --- a/arch/powerpc/perf/hv-24x7.c +++ b

[PATCH 03/16] perf Documentation: sysfs events/ interfaces

2014-05-27 Thread Cody P Schafer
Add documentation for the , .scale, and .unit files in sysfs. .scale and .unit were undocumented. was previously documented only for specific powerpc pmu events. CC: Sukadev Bhattiprolu Signed-off-by: Cody P Schafer --- .../testing/sysfs-bus-event_source-devices-events | 60

[PATCH 04/16] perf Documentation: remove duplicated docs for powerpc cpu specific events

2014-05-27 Thread Cody P Schafer
tents. CC: Sukadev Bhattiprolu Signed-off-by: Cody P Schafer --- .../testing/sysfs-bus-event_source-devices-events | 573 - 1 file changed, 573 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-events b/Documentation/ABI/testing/sysfs-bus-ev

[PATCH 01/16] tools/perf: allow overriding sysfs and proc finding with env var

2014-05-27 Thread Cody P Schafer
SYSFS_PATH and PROC_PATH environment variables now let the user override the detection of sysfs and proc locations for testing purposes. CC: Sukadev Bhattiprolu Signed-off-by: Cody P Schafer --- tools/lib/api/fs/fs.c | 43 ++- 1 file changed, 42

[PATCH 00/16] perf: add support for parameterized events from sysfs (powerpc 24x7)

2014-05-27 Thread Cody P Schafer
example: hv_gpci/dtbp_ptitc,phys_processor_idx=?/ This means that when provided as an event, a value for phys_processor_idx must also be supplied. For example: perf stat -e 'hv_gpci/dtbp_ptitc,phys_processor_idx=0x2/' ... Cody P Schafer (16)

Re: [PATCH v2] powerpc/perf/hv-24x7: use kmem_cache instead of aligned stack allocations

2014-05-22 Thread Cody P Schafer
On 05/22/2014 04:49 PM, Stephen Rothwell wrote: Hi Cody, On Thu, 22 May 2014 15:44:25 -0700 Cody P Schafer wrote: if (ret) { if (success_expected) pr_err_ratelimited("hcall failed: %d %#x %#x %d => 0x%lx (%ld) detail=0x%x failing

[PATCH v2] powerpc/perf/hv-24x7: use kmem_cache instead of aligned stack allocations

2014-05-22 Thread Cody P Schafer
Ian pointed out the use of __aligned(4096) caused rather large stack consumption in single_24x7_request(), so use the kmem_cache hv_page_cache (which we've already got set up for other allocations) insead of allocating locally. Reported-by: Ian Munsie Signed-off-by: Cody P Schafer ---

Re: [PATCH] powerpc/perf/hv-24x7: use kmem_cache instead of aligned stack allocations

2014-05-22 Thread Cody P Schafer
On 05/22/2014 03:38 PM, Stephen Rothwell wrote: Hi Cody, On Thu, 22 May 2014 15:29:08 -0700 Cody P Schafer wrote: - *res = be64_to_cpu(result_buffer.result); + *res = be64_to_cpu(result_buffer->result); + kfree(result_buffer); + kfree(request_buffer); + ret

[PATCH] powerpc/perf/hv-24x7: use kmem_cache instead of aligned stack allocations

2014-05-22 Thread Cody P Schafer
Ian pointed out the use of __aligned(4096) caused rather large stack consumption in single_24x7_request(), so use the kmem_cache hv_page_cache (which we've already got set up for other allocations) insead of allocating locally. Reported-by: Ian Munsie Signed-off-by: Cody P Schafer ---

Re: [PATCH v4 09/11] powerpc/perf: add support for the hv 24x7 interface

2014-05-22 Thread Cody P Schafer
On 05/22/2014 01:19 AM, Ian Munsie wrote: Hi Cody, I just tried building this with gcc 4.5, which failed with the following warning (treated as an error): cc1: warnings being treated as errors arch/powerpc/perf/hv-24x7.c: In function 'single_24x7_request': arch/powerpc/perf/hv-24x7.c:346:1: err

Re: [PATCH] powerpc/pseries: relocate "config DTL" so KConfig nests properly

2014-05-13 Thread Cody P Schafer
look at the KConfig to find out that config DTL depends on config PPC_SPLPAR. Essentially, this enables menuconfig to provide a visual hint about the dependencies between options. Mikey On Mon, 2014-05-12 at 20:09 -0700, Cody P Schafer wrote: Signed-off-by: Cody P Schafer --- arch/powerpc/

[PATCH] powerpc/pseries: relocate "config DTL" so KConfig nests properly

2014-05-12 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- arch/powerpc/platforms/pseries/Kconfig | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig index 2cb8b77..e00dd4d 100644 --- a/arch/powerpc

[PATCH v3] tools/perf: allow overriding sysfs and proc finding with env var

2014-05-01 Thread Cody P Schafer
SYSFS_PATH and PROC_PATH environment variables now let the user override the detection of sysfs and proc locations for testing purposes. Signed-off-by: Cody P Schafer --- Since v2: use strncpy() when copying into fs->path Since v1: rebased onto acme's perf/core tools/lib/api/fs/f

Re: [PATCH v2 6/6] powerpc/perf/hv-24x7: catalog version number is be64, not be32

2014-04-27 Thread Cody P Schafer
On 04/27/2014 09:47 PM, Benjamin Herrenschmidt wrote: On Tue, 2014-04-15 at 10:10 -0700, Cody P Schafer wrote: The catalog version number was changed from a be32 (with proceeding 32bits of padding) to a be64, update the code to treat it as a be64 Signed-off-by: Cody P Schafer -- Have you

[PATCH v2] tools/perf: allow overriding sysfs and proc finding with env var

2014-04-16 Thread Cody P Schafer
SYSFS_PATH and PROC_PATH environment variables now let the user override the detection of sysfs and proc locations for testing purposes. Signed-off-by: Cody P Schafer --- Since v1: rebased onto acme's perf/core tools/lib/api/fs/fs.c | 43 ++- 1

[tip:perf/urgent] perf tools: Instead of redirecting flex output, use -o

2014-04-15 Thread tip-bot for Cody P Schafer
Commit-ID: c9e87a472594fd237b2d19dcbe4a3424297f0b1a Gitweb: http://git.kernel.org/tip/c9e87a472594fd237b2d19dcbe4a3424297f0b1a Author: Cody P Schafer AuthorDate: Mon, 14 Apr 2014 12:47:01 +0200 Committer: Jiri Olsa CommitDate: Tue, 15 Apr 2014 13:57:21 +0200 perf tools: Instead of

[PATCH v2 2/6] powerpc/perf/hv_gpci: probe failures use pr_debug(), and padding reduced

2014-04-15 Thread Cody P Schafer
fixup for "powerpc/perf: Add support for the hv gpci (get performance counter info) interface". Makes the "not enabled" message less awful (and hidden unless debugging). Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-gpci.c | 4 ++-- 1 file changed, 2 insert

[PATCH v2 0/6] powerpc/perf/hv_{gpci,24x7}: fixes

2014-04-15 Thread Cody P Schafer
- 24x7 and gpci probing now uses pr_debug() and doesn't pad to 80 characters - Catalog access is fixed for LE kernels - remove c99 feature sparse doesn't like - 1 device attr made static Cody P Schafer (6): powerpc/perf/hv_24x7: probe errors changed to pr_debug(), padding

[PATCH v2 4/6] powerpc/perf/hv-24x7: use (unsigned long) not (u32) values when calling plpar_hcall_norets()

2014-04-15 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-24x7.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c index f5bca73..3e8f60a 100644 --- a/arch/powerpc/perf/hv-24x7.c +++ b/arch/powerpc

[PATCH v2 3/6] powerpc/perf/hv-gpci: make device attr static

2014-04-15 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-gpci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/perf/hv-gpci.c b/arch/powerpc/perf/hv-gpci.c index 8fee1dc..c9d399a 100644 --- a/arch/powerpc/perf/hv-gpci.c +++ b/arch/powerpc/perf/hv-gpci.c @@ -78,7

[PATCH v2 5/6] powerpc/perf/hv-24x7: remove [static 4096], sparse chokes on it

2014-04-15 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-24x7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c index 3e8f60a..95a67f8 100644 --- a/arch/powerpc/perf/hv-24x7.c +++ b/arch/powerpc/perf/hv-24x7.c @@ -170,7

[PATCH v2 1/6] powerpc/perf/hv_24x7: probe errors changed to pr_debug(), padding fixed

2014-04-15 Thread Cody P Schafer
fixup for "powerpc/perf: Add support for the hv 24x7 interface" Makes the "not enabled" message less awful (and hides it in most cases). Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-24x7.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/

[PATCH v2 6/6] powerpc/perf/hv-24x7: catalog version number is be64, not be32

2014-04-15 Thread Cody P Schafer
The catalog version number was changed from a be32 (with proceeding 32bits of padding) to a be64, update the code to treat it as a be64 Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-24x7.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/perf/hv

[PATCH] tools/perf: instead of redirecting flex output, use -o

2014-04-04 Thread Cody P Schafer
This gives us a real filename instead of having '' show up all over the place when debugging. Signed-off-by: Cody P Schafer --- tools/perf/Makefile.perf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf ind

[PATCH] tools/perf: allow overriding sysfs and proc finding with env var

2014-04-04 Thread Cody P Schafer
SYSFS_PATH and PROC_PATH environment variables now let the user override the detection of sysfs and proc locations for testing purposes. Signed-off-by: Cody P Schafer --- tools/perf/util/fs.c | 36 1 file changed, 36 insertions(+) diff --git a/tools/perf

[PATCH 1/2] fixup: "powerpc/perf: Add support for the hv 24x7 interface"

2014-04-02 Thread Cody P Schafer
Make the "not enabled" message less awful. Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-24x7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c index 297c9105..3246ea2 100644 --- a/arch/powerpc/perf

[PATCH 2/2] fixup: "powerpc/perf: Add support for the hv gpci (get performance counter info) interface"

2014-04-02 Thread Cody P Schafer
Make the "not enabled" message less awful. Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-gpci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/perf/hv-gpci.c b/arch/powerpc/perf/hv-gpci.c index 278ba7b..f6c471d 100644 --- a/arch/powerpc/perf

[PATCH 0/2] powerpc/perf: fixup 2 patches from the 24x7 series

2014-04-02 Thread Cody P Schafer
kept them as pr_info() instead of converting to pr_debug(). Cody P Schafer (2): fixup: "powerpc/perf: Add support for the hv 24x7 interface" fixup: "powerpc/perf: Add support for the hv gpci (get performance counter info) interface" arch/powerpc/perf/hv-24x7.c | 2 +

Re: [PATCH v4 09/11] powerpc/perf: add support for the hv 24x7 interface

2014-03-25 Thread Cody P Schafer
On 03/25/2014 03:43 AM, Anton Blanchard wrote: Hi Cody, hv-24x7: could not obtain capabilities, error 0x fffe, not enabling hv-gpci: could not obtain capabilities, error 0x

Re: [PATCH v4 09/11] powerpc/perf: add support for the hv 24x7 interface

2014-03-25 Thread Cody P Schafer
On 03/25/2014 03:43 AM, Anton Blanchard wrote: Hi Cody, hv-24x7: could not obtain capabilities, error 0x fffe, not enabling hv-gpci: could not obtain capabilities, error 0x

[PATCH 0/2] perf: add documentation for sysfs interfaces

2014-03-05 Thread Cody P Schafer
re instead (acme, feel like making one?). -- Cody P Schafer (2): perf Documentation: sysfs events/ interfaces perf Documentation: remove duplicated docs for powerpc cpu specific events .../testing/sysfs-bus-event_source-devices-events | 92 +++--- 1 file changed, 47 inserti

[PATCH 1/2] perf Documentation: sysfs events/ interfaces

2014-03-05 Thread Cody P Schafer
inevitably) add more 'event.' files. Signed-off-by: Cody P Schafer --- .../testing/sysfs-bus-event_source-devices-events | 59 ++ 1 file changed, 59 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-events b/Documentat

[PATCH 2/2] perf Documentation: remove duplicated docs for powerpc cpu specific events

2014-03-05 Thread Cody P Schafer
ned-off-by: Cody P Schafer --- .../testing/sysfs-bus-event_source-devices-events | 57 -- 1 file changed, 57 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-events b/Documentation/ABI/testing/sysfs-bus-event_source-devices-events index

Re: [PATCH v3 02/11] perf: add PMU_FORMAT_RANGE() helper for use by sw-like pmus

2014-03-05 Thread Cody P Schafer
On 03/04/2014 12:09 AM, Cody P Schafer wrote: On 03/03/2014 09:19 PM, Michael Ellerman wrote: On Thu, 2014-27-02 at 21:04:55 UTC, Cody P Schafer wrote: Add PMU_FORMAT_RANGE() and PMU_FORMAT_RANGE_RESERVED() (for reserved areas) which generate functions to extract the relevent bits from event

[PATCH v4 01/11] sysfs: create bin_attributes under the requested group

2014-03-05 Thread Cody P Schafer
shows that no one is using bin_attrs in a named attribute group yet, so we can do this without breaking anything in usespace. Note that I do not add is_visible() support to bin_attributes, though that could be done as well. Signed-off-by: Cody P Schafer Signed-off-by: Greg Kroah-Hartman

[PATCH v4 03/11] perf: provide a common perf_event_nop_0() for use with .event_idx

2014-03-05 Thread Cody P Schafer
tions. Signed-off-by: Cody P Schafer --- include/linux/perf_event.h | 1 + kernel/events/core.c | 10 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 5c12009..23da668 100644 --- a/include/linux/perf_event.h

[PATCH v4 02/11] perf: add PMU_FORMAT_RANGE() helper for use by sw-like pmus

2014-03-05 Thread Cody P Schafer
Add PMU_FORMAT_RANGE() and PMU_FORMAT_RANGE_RESERVED() (for reserved areas) which generate functions to extract the relevent bits from event->attr.config{,1,2} for use by sw-like pmus where the 'config{,1,2}' values don't map directly to hardware registers. Signed-off-

[PATCH v4 11/11] powerpc/perf/hv_{gpci,24x7}: add documentation of device attributes

2014-03-05 Thread Cody P Schafer
gpci and 24x7 expose some device specific attributes. Add some documentation for them. Signed-off-by: Cody P Schafer --- .../testing/sysfs-bus-event_source-devices-hv_24x7 | 23 .../testing/sysfs-bus-event_source-devices-hv_gpci | 43 ++ 2 files changed, 66

[PATCH v4 09/11] powerpc/perf: add support for the hv 24x7 interface

2014-03-05 Thread Cody P Schafer
7; ' sleep 0.1 Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-24x7.c | 493 1 file changed, 493 insertions(+) create mode 100644 arch/powerpc/perf/hv-24x7.c diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c new fi

[PATCH v4 10/11] powerpc/perf: add kconfig option for hypervisor provided counters

2014-03-05 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- arch/powerpc/perf/Makefile | 2 ++ arch/powerpc/platforms/pseries/Kconfig | 12 2 files changed, 14 insertions(+) diff --git a/arch/powerpc/perf/Makefile b/arch/powerpc/perf/Makefile index 60d71ee..f9c083a 100644 --- a/arch/powerpc

[PATCH v4 05/11] powerpc/perf: add hv_gpci interface header

2014-03-05 Thread Cody P Schafer
n linux at this time. Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-gpci.h | 73 + 1 file changed, 73 insertions(+) create mode 100644 arch/powerpc/perf/hv-gpci.h diff --git a/arch/powerpc/perf/hv-gpci.h b/arch/powerpc/perf/hv-gpci.h new

[PATCH v4 06/11] powerpc/perf: add 24x7 interface headers

2014-03-05 Thread Cody P Schafer
n overflow, these are completely disjoint from the typical power pmu. This method of obtaining performance counters from the hypervisor is intended to paritialy replace the gpci interface. Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-24x7-catalog.h | 33 +++ arch/powerpc/perf

[PATCH v4 07/11] powerpc/perf: add a shared interface to get gpci version and capabilities

2014-03-05 Thread Cody P Schafer
s are simply exposed in sysfs to inform the user. Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-common.c | 39 +++ arch/powerpc/perf/hv-common.h | 17 + 2 files changed, 56 insertions(+) create mode 100644 arch/powerpc/perf/hv-common.c c

[PATCH v4 00/11] powerpc: Add support for Power Hypervisor supplied performance counters

2014-03-05 Thread Cody P Schafer
give the user 1024 bytes to play with - clarify some comments (the list of fw versions is now labeled) - provide and event_24x7_request() that wraps single_24x7_request() - probably some other small fixes I'm forgetting. Cody P Schafer (11): sysfs: create bin_attributes under the requested grou

[PATCH v4 04/11] powerpc: add hvcalls for 24x7 and gpci (get performance counter info)

2014-03-05 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- arch/powerpc/include/asm/hvcall.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h index d8b600b..5dbbb29 100644 --- a/arch/powerpc/include/asm/hvcall.h +++ b/arch/powerpc/include/asm

[PATCH v4 08/11] powerpc/perf: add support for the hv gpci (get performance counter info) interface

2014-03-05 Thread Cody P Schafer
dex=0,starting_index=0x,request=0x10/' -r 0 -C 0 -x ' ' sleep 0.1 Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-gpci.c | 277 1 file changed, 277 insertions(+) create mode 100644 arch/powerpc/perf/hv-gpci.c diff --git a/arch/po

Re: [PATCH v3 02/11] perf: add PMU_FORMAT_RANGE() helper for use by sw-like pmus

2014-03-04 Thread Cody P Schafer
On 03/03/2014 09:19 PM, Michael Ellerman wrote: On Thu, 2014-27-02 at 21:04:55 UTC, Cody P Schafer wrote: Add PMU_FORMAT_RANGE() and PMU_FORMAT_RANGE_RESERVED() (for reserved areas) which generate functions to extract the relevent bits from event->attr.config{,1,2} for use by sw-like pmus wh

Re: [PATCH v3 03/11] perf: provide a common perf_event_nop_0() for use with .event_idx

2014-03-03 Thread Cody P Schafer
On 03/03/2014 09:19 PM, Michael Ellerman wrote: On Thu, 2014-27-02 at 21:04:56 UTC, Cody P Schafer wrote: Rather an having every pmu that needs a function that just returns 0 for .event_idx define their own copy, reuse the one in kernel/events/core.c. Rename from perf_swevent_event_idx

[PATCH v3 00/11] powerpc: Add support for Power Hypervisor supplied performance counters

2014-02-27 Thread Cody P Schafer
bytes to play with - clarify some comments (the list of fw versions is now labeled) - provide and event_24x7_request() that wraps single_24x7_request() - probably some other small fixes I'm forgetting. Cody P Schafer (11): sysfs: create bin_attributes under the requested group perf: ad

[PATCH v3 02/11] perf: add PMU_FORMAT_RANGE() helper for use by sw-like pmus

2014-02-27 Thread Cody P Schafer
Add PMU_FORMAT_RANGE() and PMU_FORMAT_RANGE_RESERVED() (for reserved areas) which generate functions to extract the relevent bits from event->attr.config{,1,2} for use by sw-like pmus where the 'config{,1,2}' values don't map directly to hardware registers. Signed-off-

[PATCH v3 05/11] powerpc/perf: add hv_gpci interface header

2014-02-27 Thread Cody P Schafer
n linux at this time. Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-gpci.h | 73 + 1 file changed, 73 insertions(+) create mode 100644 arch/powerpc/perf/hv-gpci.h diff --git a/arch/powerpc/perf/hv-gpci.h b/arch/powerpc/perf/hv-gpci.h new

[PATCH v3 08/11] powerpc/perf: add support for the hv gpci (get performance counter info) interface

2014-02-27 Thread Cody P Schafer
dex=0,starting_index=0x,request=0x10/' -r 0 -C 0 -x ' ' sleep 0.1 Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-gpci.c | 277 1 file changed, 277 insertions(+) create mode 100644 arch/powerpc/perf/hv-gpci.c diff --git a/arch/po

[PATCH v3 10/11] powerpc/perf: add kconfig option for hypervisor provided counters

2014-02-27 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- arch/powerpc/perf/Makefile | 2 ++ arch/powerpc/platforms/pseries/Kconfig | 12 2 files changed, 14 insertions(+) diff --git a/arch/powerpc/perf/Makefile b/arch/powerpc/perf/Makefile index 60d71ee..f9c083a 100644 --- a/arch/powerpc

[PATCH v3 07/11] powerpc/perf: add a shared interface to get gpci version and capabilities

2014-02-27 Thread Cody P Schafer
s are simply exposed in sysfs to inform the user. Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-common.c | 39 +++ arch/powerpc/perf/hv-common.h | 17 + 2 files changed, 56 insertions(+) create mode 100644 arch/powerpc/perf/hv-common.c c

[PATCH v3 01/11] sysfs: create bin_attributes under the requested group

2014-02-27 Thread Cody P Schafer
shows that no one is using bin_attrs in a named attribute group yet, so we can do this without breaking anything in usespace. Note that I do not add is_visible() support to bin_attributes, though that could be done as well. Signed-off-by: Cody P Schafer Signed-off-by: Greg Kroah-Hartman --- No

[PATCH v3 04/11] powerpc: add hvcalls for 24x7 and gpci (get performance counter info)

2014-02-27 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- arch/powerpc/include/asm/hvcall.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h index d8b600b..5dbbb29 100644 --- a/arch/powerpc/include/asm/hvcall.h +++ b/arch/powerpc/include/asm

[PATCH v3 06/11] powerpc/perf: add 24x7 interface headers

2014-02-27 Thread Cody P Schafer
n overflow, these are completely disjoint from the typical power pmu. This method of obtaining performance counters from the hypervisor is intended to paritialy replace the gpci interface. Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-24x7-catalog.h | 33 +++ arch/powerpc/perf

[PATCH v3 09/11] powerpc/perf: add support for the hv 24x7 interface

2014-02-27 Thread Cody P Schafer
7; ' sleep 0.1 Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-24x7.c | 492 1 file changed, 492 insertions(+) create mode 100644 arch/powerpc/perf/hv-24x7.c diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c new fi

[PATCH v3 11/11] powerpc/perf/hv_{gpci,24x7}: add documentation of device attributes

2014-02-27 Thread Cody P Schafer
gpci and 24x7 expose some device specific attributes. Add some documentation for them. Signed-off-by: Cody P Schafer --- .../testing/sysfs-bus-event_source-devices-hv_24x7 | 23 .../testing/sysfs-bus-event_source-devices-hv_gpci | 43 ++ 2 files changed, 66

[PATCH v3 03/11] perf: provide a common perf_event_nop_0() for use with .event_idx

2014-02-27 Thread Cody P Schafer
tions. Signed-off-by: Cody P Schafer --- include/linux/perf_event.h | 1 + kernel/events/core.c | 10 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 3da5081..24a7b45 100644 --- a/include/linux/perf_event.h

Re: [PATCH v2 02/11] perf core: export swevent hrtimer helpers

2014-02-27 Thread Cody P Schafer
On 02/26/2014 12:29 AM, Peter Zijlstra wrote: On Tue, Feb 25, 2014 at 01:38:31PM -0800, Cody P Schafer wrote: On 02/25/2014 02:20 AM, Peter Zijlstra wrote: On Tue, Feb 25, 2014 at 02:33:26PM +1100, Michael Ellerman wrote: On Fri, 2014-14-02 at 22:02:06 UTC, Cody P Schafer wrote: Export the

Re: [PATCH] powerpc: warn users of smt-snooze-delay that the API isn't there anymore

2014-02-25 Thread Cody P Schafer
On 02/24/2014 08:53 PM, Madhavan Srinivasan wrote: On Saturday 22 February 2014 05:44 AM, Cody P Schafer wrote: /sys/devices/system/cpu/cpu*/smt-snooze-delay was converted into a NOP in commit 3fa8cad82b94d0bed002571bd246f2299ffc876b, and now does nothing. Add a pr_warn() to convince any users

Re: [PATCH v2 01/11] perf: add PMU_RANGE_ATTR() helper for use by sw-like pmus

2014-02-25 Thread Cody P Schafer
On 02/25/2014 12:33 PM, Cody P Schafer wrote: On 02/24/2014 07:33 PM, Michael Ellerman wrote: On Fri, 2014-14-02 at 22:02:05 UTC, Cody P Schafer wrote: Add PMU_RANGE_ATTR() and PMU_RANGE_RESV() (for reserved areas) which generate functions to extract the relevent bits from event->attr.con

Re: [PATCH v2 02/11] perf core: export swevent hrtimer helpers

2014-02-25 Thread Cody P Schafer
On 02/25/2014 02:20 AM, Peter Zijlstra wrote: On Tue, Feb 25, 2014 at 02:33:26PM +1100, Michael Ellerman wrote: On Fri, 2014-14-02 at 22:02:06 UTC, Cody P Schafer wrote: Export the swevent hrtimer helpers currently only used in events/core.c to allow the addition of architecture specific sw

Re: [PATCH v2 10/11] powerpc/perf: add kconfig option for hypervisor provided counters

2014-02-25 Thread Cody P Schafer
On 02/24/2014 07:33 PM, Michael Ellerman wrote: On Fri, 2014-14-02 at 22:02:14 UTC, Cody P Schafer wrote: Signed-off-by: Cody P Schafer --- arch/powerpc/perf/Makefile | 2 ++ arch/powerpc/platforms/Kconfig.cputype | 6 ++ 2 files changed, 8 insertions(+) diff --git a/arch

Re: [PATCH v2 08/11] powerpc/perf: add support for the hv gpci (get performance counter info) interface

2014-02-25 Thread Cody P Schafer
On 02/24/2014 07:33 PM, Michael Ellerman wrote: On Fri, 2014-14-02 at 22:02:12 UTC, Cody P Schafer wrote: This provides a basic link between perf and hv_gpci. Notably, it does not yet support transactions and does not list any events (they can still be manually composed). Can you explain how

Re: [PATCH v2 07/11] powerpc: add a shared interface to get gpci version and capabilities

2014-02-25 Thread Cody P Schafer
On 02/24/2014 07:33 PM, Michael Ellerman wrote: [PATCH v2 07/11] powerpc: add a shared interface to get gpci version and capabilities All the patches that touch perf should be "powerpc/perf: foo" Ok. On Fri, 2014-14-02 at 22:02:11 UTC, Cody P Schafer wrote: ... I realise

Re: [PATCH v2 04/11] powerpc: add hvcalls for 24x7 and gpci (get performance counter info)

2014-02-25 Thread Cody P Schafer
On 02/24/2014 07:33 PM, Michael Ellerman wrote: On Fri, 2014-14-02 at 22:02:08 UTC, Cody P Schafer wrote: Signed-off-by: Cody P Schafer --- arch/powerpc/include/asm/hvcall.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include

Re: [PATCH v2 09/11] powerpc/perf: add support for the hv 24x7 interface

2014-02-25 Thread Cody P Schafer
On 02/24/2014 07:33 PM, Michael Ellerman wrote: On Fri, 2014-14-02 at 22:02:13 UTC, Cody P Schafer wrote: This provides a basic interface between hv_24x7 and perf. Similar to the one provided for gpci, it lacks transaction support and does not list any events. Signed-off-by: Cody P Schafer

  1   2   3   4   5   >