[PATCH 17/25] perf tests: Add attr record branch filter tests

2012-10-30 Thread Jiri Olsa
From: "jo...@redhat.com" Adding test to validate perf_event_attr data for command: 'record -j any' 'record -j any_call' 'record -j any_ret' 'record -j hv' 'record -j ind_call' 'record -j k' 'record -j u' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc

[PATCH 14/25] perf tests: Add attr record raw test

2012-10-30 Thread Jiri Olsa
From: "jo...@redhat.com" Adding test to validate perf_event_attr data for command: 'record -R' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-record-raw

[PATCH 15/25] perf tests: Add attr record no delay test

2012-10-30 Thread Jiri Olsa
From: "jo...@redhat.com" Adding test to validate perf_event_attr data for command: 'record -D' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-record-no-

[PATCH 06/25] perf tests: Add attr record event syntax group test

2012-10-30 Thread Jiri Olsa
Adding test to validate perf_event_attr data for command: 'record group -e {cycles,instructions}' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-record-gr

[PATCH 01/25] perf tools: Remove BINDIR define from exec_cmd.o compilation

2012-10-30 Thread Jiri Olsa
It's not needed. Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/perf/Makefile b/tools/perf/Makefile index

[PATCH 10/25] perf tests: Add attr record period test

2012-10-30 Thread Jiri Olsa
Adding test to validate perf_event_attr data for command: 'record -c 100 -P' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-record-period | 7 +++ 1 f

[PATCH 04/25] perf tests: Add attr record basic test

2012-10-30 Thread Jiri Olsa
Adding test to validate perf_event_attr data for command: 'record' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/base-record | 40 ++

[PATCH 11/25] perf tests: Add attr record no samples test

2012-10-30 Thread Jiri Olsa
Adding test to validate perf_event_attr data for command: 'record -n' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-record-no-samples | 6 ++ 1 file

[PATCH 07/25] perf tests: Add attr record freq test

2012-10-30 Thread Jiri Olsa
Adding test to validate perf_event_attr data for command: 'record -F 100' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-record-freq | 6 ++ 1 file ch

[PATCH 05/25] perf tests: Add attr record group test

2012-10-30 Thread Jiri Olsa
Adding test to validate perf_event_attr data for command: 'record --group -e cycles,instructions' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-record-gr

Re: Out of memory on 3.5 kernels

2012-10-30 Thread Nico Schottelius
Good morning, update: this problem still exists on 3.6.2-1-ARCH and it got worse: I reformatted the external disk to use xfs, but as the my root filesystem is still jfs, it still appears: Active / Total Objects (% used): 642732 / 692268 (92.8%) Active / Total Slabs (% used) : 24801 /

[PATCH 03/25] perf tests: Add framework for automated perf_event_attr tests

2012-10-30 Thread Jiri Olsa
Adding automated test to check event's perf_event_attr values. The idea is run perf session with kidnapping sys_perf_event_open function. For each sys_perf_event_open call we store the perf_event_attr data to the file to be checked later against what we expect. You can run this by: $ python ./t

Re: [PATCH] scripts/coccinelle/misc/semicolon.cocci: Add unnecessary semicolon test

2012-10-30 Thread Julia Lawall
On Tue, 30 Oct 2012, Peter Senna Tschudin wrote: > This semantic patch looks for semicolons that can be removed without > changing the semantics of the code. The confidence is moderate > because there are some false positives on cases like: > > drivers/mmc/host/cb710-mmc.c:589 > brea

[PATCH] exynos: mmc: use correct variable for MODULE_DEVICE_TABLE

2012-10-30 Thread Sergei Trofimovich
From: Sergei Trofimovich Found by gcc: linux-2.6/drivers/mmc/host/dw_mmc-exynos.c: At top level: linux-2.6/drivers/mmc/host/dw_mmc-exynos.c:226:1: error: '__mod_of_device_table' aliased to undefined symbol 'dw_mci_pltfm_match' CC: Chris Ball CC: Thomas Abraham CC: Will Newton CC: li

Re: [sqlite] light weight write barriers

2012-10-30 Thread Vladislav Bolkhovitin
Theodore Ts'o, on 10/27/2012 12:44 AM wrote: On Fri, Oct 26, 2012 at 09:54:53PM -0400, Vladislav Bolkhovitin wrote: What different in our positions is that you are considering storage as something you can connect to your desktop, while in my view storage is something, which stores data and serv

Re: [PATCH v2] mm: memmap_init_zone() performance improvement

2012-10-30 Thread Andrew Morton
On Fri, 26 Oct 2012 16:47:47 -0600 Mike Yoknis wrote: > memmap_init_zone() loops through every Page Frame Number (pfn), > including pfn values that are within the gaps between existing > memory sections. The unneeded looping will become a boot > performance issue when machines configure larger m

Re: [PATCH] New Nokia RX-51 power supply battery driver

2012-10-30 Thread Anton Vorontsov
On Tue, Oct 30, 2012 at 09:04:55PM +0100, Pali Rohár wrote: > I'm working on full BME replacement for Nokia N900. BME is Nokia > proprietary buggy userspace software which charging battery. [...] > Except Nokia RX-51 Schematics there is no available documentation > about battery, charging and madc

Re: fs/proc/base.c: text md5sums; tgid vs tid; and INF vs ONE?

2012-10-30 Thread Eric W. Biederman
Arvid Brodin writes: > Hi, > > Below is a patch that adds a file /proc/PID/text_md5sum which when read > returns the md5 > checksum of a process' text segment. (This would be used e.g. to make sure a > process' > code hasn't been tampered with.) > > However, I have a few questions: > > * What's

Re: [PATCH 1/2] mm: refactor reinsert of swap_info in sys_swapoff

2012-10-30 Thread Cesar Eduardo Barros
Em 30-10-2012 19:04, Andrew Morton escreveu: Your patch doesn't change this, but... it is very unusual for any subsystem's ->init method to be called under a spinlock. Because it is highly likely that such a method will wish to do things such as memory allocation. It is rare and unlikely for a

[GIT PULL] GPIO fixes for v3.7

2012-10-30 Thread Linus Walleij
Hi Linus, here is a set of GPIO fixes accumulated since -rc1 that have been trickling in. Condensed description of the contents is in the tag. Please pull them in! Yours, Linus Walleij The following changes since commit ddffeb8c4d0331609ef2581d84de4d763607bd37: Linux 3.7-rc1 (2012-10-14 14:

Re: [PATCHv2] Input: omap4-keypad: Add pinctrl support

2012-10-30 Thread Rafael J. Wysocki
On Tuesday, October 30, 2012 10:51:11 PM Linus Walleij wrote: > On Tue, Oct 30, 2012 at 7:37 PM, Mark Brown > wrote: > > > More seriously the amount of time we seem to have been spending recently > > on changes which end up requiring us to go through essentially every > > driver and add code to t

Crashes in extent_io.c after "btrfs bad mapping eb" notice

2012-10-30 Thread Franke
Hello, I have been having some crashes like this. Since I upgraded to 3.6.4 they have become common. The crashes happen pretty randomly during normal system usage. After the syslog messages the system stays semi usable for a minute, but when I run any new program it hangs. I had to downgrade to

Re: [PATCH 03/25] perf tests: Add framework for automated perf_event_attr tests

2012-10-30 Thread Jiri Olsa
On Tue, Oct 30, 2012 at 11:01:44PM +0100, Jiri Olsa wrote: > Adding automated test to check event's perf_event_attr values. > > The idea is run perf session with kidnapping sys_perf_event_open > function. For each sys_perf_event_open call we store the > perf_event_attr data to the file to be check

Re: [PATCH v4 5/7] efi_pstore: Add a sequence counter to a variable name

2012-10-30 Thread Rafael J. Wysocki
On Tuesday, October 30, 2012 08:02:54 PM Seiji Aguchi wrote: > > [Issue] > > Currently, a variable name, which identifies each entry, consists of type, id > and ctime. > But if multiple events happens in a short time, a second/third event may fail > to log because > efi_pstore can't distinguish

Re: Process Hang in __read_seqcount_begin

2012-10-30 Thread Peter LaDow
Ok. More of an update. We've managed to create a scenario that exhibits the problem much earlier. We can now cause the lockup to occur within a few hours (rather than the 12 to 24 hours in our other scenario). Our setup is to to have a a lot of traffic constantly being processed by the netfilt

[PATCH RFC] mm: simplify frontswap_init()

2012-10-30 Thread Cesar Eduardo Barros
The function frontswap_init() uses the passed parameter only to check for the presence of the frontswap_map. It is also passed down to frontswap_ops.init(), but all implementations of it in the kernel ignore the parameter. Do the check for frontswap_map in the caller instead and remove the paramet

Re: [PATCH V2 0/3] mmc: remove MMC_CAP_NEEDS_POLL setting in sdhci_add_host

2012-10-30 Thread Anton Vorontsov
On Tue, Oct 30, 2012 at 05:30:00PM +0800, yongd wrote: > Sorry for my so late. And eventually these updated patches are here for your > review. Thanks in advance. > For patch 1, add SDHCI_QUIRK_BROKEN_CARD_DETECTION setting for ESDHC_CD_GPIO > type, > or the host controller detection interrupts wi

Re: [PATCH] omap2-clk: Add missing lcdc clock definition

2012-10-30 Thread Paul Walmsley
+ Vaibhav Hiremath On Tue, 30 Oct 2012, Tony Lindgren wrote: > * Pantelis Antoniou [121030 11:04]: > > Looks like the lcdc clock definition got dropped. > > It is required for the LCD controller to work. Reintroduce. > > This looks like a regression, can you also add the commit > causing it? L

Re: memcg/cgroup: do not fail fail on pre_destroy callbacks

2012-10-30 Thread Michal Hocko
On Mon 29-10-12 16:26:02, Tejun Heo wrote: > Hello, Michal. > > > Tejun is planning to build on top of that and make some more cleanups > > in the cgroup core (namely get rid of of the whole retry code in > > cgroup_rmdir). > > I applied 1-3 to the following branch which is based on top of v3.6.

Re: [PATCH 3/4] cpufreq, powernow-k8: Change email address

2012-10-30 Thread Rafael J. Wysocki
On Tuesday, October 30, 2012 12:31:00 AM Borislav Petkov wrote: > On Tue, Oct 30, 2012 at 12:33:15AM +0100, Rafael J. Wysocki wrote: > > On Monday, October 29, 2012 06:52:21 PM Andreas Herrmann wrote: > > > > > > Signed-off-by: Andreas Herrmann > > > > Am I supposed to take this one? > > Yes pl

Re: [linux-next PATCH] PM / devfreq: documentation cleanups for devfreq header

2012-10-30 Thread Rafael J. Wysocki
On Tuesday, October 30, 2012 08:09:09 AM MyungJoo Ham wrote: > > On 10/29/2012 06:02 AM, Nishanth Menon wrote: > > > > > struct parameters need to have ':' in documentation for > > > scripts/kernel-doc to parse appropriately. > > > > > > Fix the errors reported by: > > > ./scripts/kernel-doc incl

Re: [REGRESSION] 3.7-rc2 kernel BUG at kernel/power/snapshot.c:517!

2012-10-30 Thread Rafael J. Wysocki
On Tuesday, October 30, 2012 09:35:48 PM Maciej Rutecki wrote: > On niedziela, 28 października 2012 o 22:45:26 Rafael J. Wysocki wrote: > > On Sunday, October 28, 2012 10:12:49 PM Maciej Rutecki wrote: > > > On niedziela, 21 października 2012 o 17:12:28 Maciej Rutecki wrote: > > > > Error: kernel B

Re: [PATCH 3/4] cpufreq, powernow-k8: Change email address

2012-10-30 Thread Borislav Petkov
On Wed, Oct 31, 2012 at 12:42:01AM +0100, Rafael J. Wysocki wrote: > On Tuesday, October 30, 2012 12:31:00 AM Borislav Petkov wrote: > > On Tue, Oct 30, 2012 at 12:33:15AM +0100, Rafael J. Wysocki wrote: > > > On Monday, October 29, 2012 06:52:21 PM Andreas Herrmann wrote: > > > > > > > > Signed-o

Re: [sqlite] light weight write barriers

2012-10-30 Thread Nico Williams
[Dropping sqlite-users. Note that I'm not subscribed to any of the other lists cc'ed.] On Thu, Oct 25, 2012 at 1:02 AM, Theodore Ts'o wrote: > On Thu, Oct 25, 2012 at 12:18:47AM -0500, Nico Williams wrote: >> >> By trusting fsync(). And if you don't care about immediate Durability >> you can ru

Re: [PATCH 04/32] x86: New cpuset nohz irq vector

2012-10-30 Thread Frederic Weisbecker
2012/10/30 Steven Rostedt : > On Mon, 2012-10-29 at 16:27 -0400, Steven Rostedt wrote: >> plain text document attachment >> (0004-x86-New-cpuset-nohz-irq-vector.patch) >> From: Frederic Weisbecker >> >> We need a way to send an IPI (remote or local) in order to >> asynchronously restart the tick f

Re: [net-next v4 0/7] Multiqueue support in tuntap

2012-10-30 Thread Stephen Hemminger
I am testing BQL for tuntap. It wouldn't be hard to do BQL in the multi-queue version. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the

Re: [PATCH 10/32] nohz/cpuset: Restart the tick if printk needs it

2012-10-30 Thread Frederic Weisbecker
2012/10/30 Steven Rostedt : > Probably need to at least disable preemption. I don't see any > requirement that wake_up_klogd() needs to be called with preemption > disabled. > > The this_cpu_or() doesn't care which CPU it triggers, but the enabling > of nohz does. This patch is deemed to be replac

Re: [RFC 2/7] capebus: Add beaglebone board support

2012-10-30 Thread Tony Lindgren
* Pantelis Antoniou [121030 13:18]: > On Oct 30, 2012, at 9:39 PM, Tony Lindgren wrote: > > > * Pantelis Antoniou [121030 12:00]: > >> + > >> + priv->lcdc_oh = omap_hwmod_lookup("lcdc"); > >> + if (priv->lcdc_oh == NULL) { > >> + dev_err(&pdev->dev, "Failed to lookup omap_hwmod lcdc\n

Re: [PATCH 04/32] x86: New cpuset nohz irq vector

2012-10-30 Thread Steven Rostedt
On Wed, 2012-10-31 at 00:51 +0100, Frederic Weisbecker wrote: > > Probably just use irq_work for self ipis, and normal ipis for other > > CPUs. > > Right. And that's one more reason why we want to know if the arch > implements irq work with self ipis or not. If the arch can't, then we > just don'

Re: [PATCH 2/4] arch/arm: move secure_computing into trace

2012-10-30 Thread Kees Cook
On Mon, Oct 29, 2012 at 7:05 PM, Al Viro wrote: > On Mon, Oct 29, 2012 at 05:41:20PM -0700, Kees Cook wrote: >> From: Will Drewry >> >> There is very little difference in the TIF_SECCOMP and TIF_SYSCALL_TRACE >> path in entry-common.S. In order to add support for >> CONFIG_HAVE_ARCH_SECCOMP_FILTE

Re: [PATCH 0/6] cpufreq: add support for Calxeda ECX-1000 (highbank)

2012-10-30 Thread Rafael J. Wysocki
On Tuesday, October 30, 2012 04:04:10 PM Mark Langsdorf wrote: > This patch series adds cpufreq support for the Calxeda ECX-1000 (highbank) > SoCs. The driver is based on the cpufreq-cpu0 driver. Because of the > unique way that highbank uses the EnergyCore Management Engine to manage > voltages,

Re: [PATCH 2/3] ext4: introduce ext4_error_remove_page

2012-10-30 Thread Dave Chinner
On Mon, Oct 29, 2012 at 06:11:58PM +, Luck, Tony wrote: > > What I would recommend is adding a > > > > #define FS_CORRUPTED_FL 0x0100 /* File is corrupted */ > > > > ... and which could be accessed and cleared via the lsattr and chattr > > programs. > > Good - but we need some

[PATCH RT 2/4] rcu: Disable RCU_FAST_NO_HZ on RT

2012-10-30 Thread Steven Rostedt
From: Thomas Gleixner This uses a timer_list timer from the irq disabled guts of the idle code. Disable it for now to prevent wreckage. Signed-off-by: Thomas Gleixner Cc: stable...@vger.kernel.org --- init/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/Kcon

[PATCH RT 0/4] [ANNOUNCE] 3.4.15-rt26-rc1 stable review

2012-10-30 Thread Steven Rostedt
Dear RT Folks, This is the RT stable review cycle of patch 3.4.15-rt26-rc1. Please scream at me if I messed something up. Please test the patches too. The -rc release will be uploaded to kernel.org and will be deleted when the final release is out. This is just a review release (or release cand

[PATCH RT 1/4] hrtimer: Raise softirq if hrtimer irq stalled

2012-10-30 Thread Steven Rostedt
From: Watanabe When the hrtimer stall detection hits the softirq is not raised. Signed-off-by: Thomas Gleixner Cc: stable...@vger.kernel.org --- kernel/hrtimer.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 8b3d423..9

[PATCH RT 4/4] Linux 3.4.15-rt26-rc1

2012-10-30 Thread Steven Rostedt
From: Steven Rostedt --- localversion-rt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localversion-rt b/localversion-rt index c5b71f9..02556f4 100644 --- a/localversion-rt +++ b/localversion-rt @@ -1 +1 @@ --rt25 +-rt26-rc1 -- 1.7.10.4 -- To unsubscribe from this lis

[PATCH RT 3/4] net: netfilter: Serialize xt_write_recseq sections on RT

2012-10-30 Thread Steven Rostedt
From: Thomas Gleixner The netfilter code relies only on the implicit semantics of local_bh_disable() for serializing wt_write_recseq sections. RT breaks that and needs explicit serialization here. Reported-by: Peter LaDow Signed-off-by: Thomas Gleixner Cc: stable...@vger.kernel.org --- includ

[PATCH RT 4/4] Linux 3.2.32-rt49-rc1

2012-10-30 Thread Steven Rostedt
From: Steven Rostedt --- localversion-rt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localversion-rt b/localversion-rt index 2470798..623b4c9 100644 --- a/localversion-rt +++ b/localversion-rt @@ -1 +1 @@ --rt48 +-rt49-rc1 -- 1.7.10.4 -- To unsubscribe from this lis

[PATCH RT 0/4] [ANNOUNCE] 3.2.32-rt49-rc1 stable review

2012-10-30 Thread Steven Rostedt
Dear RT Folks, This is the RT stable review cycle of patch 3.2.32-rt49-rc1. Please scream at me if I messed something up. Please test the patches too. The -rc release will be uploaded to kernel.org and will be deleted when the final release is out. This is just a review release (or release cand

[PATCH RT 1/4] hrtimer: Raise softirq if hrtimer irq stalled

2012-10-30 Thread Steven Rostedt
From: Watanabe When the hrtimer stall detection hits the softirq is not raised. Signed-off-by: Thomas Gleixner Cc: stable...@vger.kernel.org --- kernel/hrtimer.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index bca6928..9

[PATCH RT 2/4] rcu: Disable RCU_FAST_NO_HZ on RT

2012-10-30 Thread Steven Rostedt
From: Thomas Gleixner This uses a timer_list timer from the irq disabled guts of the idle code. Disable it for now to prevent wreckage. Signed-off-by: Thomas Gleixner Cc: stable...@vger.kernel.org --- init/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/Kcon

[PATCH RT 3/4] net: netfilter: Serialize xt_write_recseq sections on RT

2012-10-30 Thread Steven Rostedt
From: Thomas Gleixner The netfilter code relies only on the implicit semantics of local_bh_disable() for serializing wt_write_recseq sections. RT breaks that and needs explicit serialization here. Reported-by: Peter LaDow Signed-off-by: Thomas Gleixner Cc: stable...@vger.kernel.org --- includ

Re: Process Hang in __read_seqcount_begin

2012-10-30 Thread Thomas Gleixner
On Tue, 30 Oct 2012, Peter LaDow wrote: > Anyway, based on earlier discussion, is there any reason not to use a > lock (presuming any solution properly takes into account possible > recursion)? I understand that the mainline is protected, but perhaps > in the RT version we can use seqlock (and pre

[PATCH RT 3/4] net: netfilter: Serialize xt_write_recseq sections on RT

2012-10-30 Thread Steven Rostedt
From: Thomas Gleixner The netfilter code relies only on the implicit semantics of local_bh_disable() for serializing wt_write_recseq sections. RT breaks that and needs explicit serialization here. Reported-by: Peter LaDow Signed-off-by: Thomas Gleixner Cc: stable...@vger.kernel.org --- includ

[PATCH RT 1/4] hrtimer: Raise softirq if hrtimer irq stalled

2012-10-30 Thread Steven Rostedt
From: Watanabe When the hrtimer stall detection hits the softirq is not raised. Signed-off-by: Thomas Gleixner Cc: stable...@vger.kernel.org --- kernel/hrtimer.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 7327846..8

[PATCH RT 0/4] [ANNOUNCE] 3.0.48-rt72-rc1 stable review

2012-10-30 Thread Steven Rostedt
Dear RT Folks, This is the RT stable review cycle of patch 3.0.48-rt72-rc1. Please scream at me if I messed something up. Please test the patches too. The -rc release will be uploaded to kernel.org and will be deleted when the final release is out. This is just a review release (or release cand

[PATCH RT 2/4] rcu: Disable RCU_FAST_NO_HZ on RT

2012-10-30 Thread Steven Rostedt
From: Thomas Gleixner This uses a timer_list timer from the irq disabled guts of the idle code. Disable it for now to prevent wreckage. Signed-off-by: Thomas Gleixner Cc: stable...@vger.kernel.org --- init/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/Kcon

Re: [PATCH v8 01/16] hashtable: introduce a small and naive hashtable

2012-10-30 Thread Sasha Levin
On Tue, Oct 30, 2012 at 5:42 PM, Tejun Heo wrote: > Hello, > > Just some nitpicks. > > On Tue, Oct 30, 2012 at 02:45:57PM -0400, Sasha Levin wrote: >> +/* Use hash_32 when possible to allow for fast 32bit hashing in 64bit >> kernels. */ >> +#define hash_min(val, bits)

perf PMU support for Haswell v5

2012-10-30 Thread Andi Kleen
[Updated version for the latest master tree and various fixes, addressing review feedback. See end for details. This should be ready for merging now. Arnaldo, especially needs attention from you for the user space part.] This adds perf PMU support for the upcoming Haswell core. The patchkit is

[PATCH 01/32] perf, x86: Add PEBSv2 record support

2012-10-30 Thread Andi Kleen
From: Andi Kleen Add support for the v2 PEBS format. It has a superset of the v1 PEBS fields, but has a longer record so we need to adjust the code paths. The main advantage is the new "EventingRip" support which directly gives the instruction, not off-by-one instruction. So with precise == 2 we

[PATCH 02/32] perf, x86: Basic Haswell PMU support v2

2012-10-30 Thread Andi Kleen
From: Andi Kleen Add basic Haswell PMU support. Similar to SandyBridge, but has a few new events. Further differences are handled in followon patches. There are some new counter flags that need to be prevented from being set on fixed counters. Contains fixes from Stephane Eranian v2: Folded T

[PATCH 30/32] perf, x86: Add a Haswell precise instructions event v2

2012-10-30 Thread Andi Kleen
From: Andi Kleen Add a instructions-p event alias that uses the PDIR randomized instruction retirement event. This is useful to avoid some systematic sampling shadow problems. Normally PEBS sampling has a systematic shadow. With PDIR enabled the hardware adds some randomization that statistically

[PATCH 28/32] perf, x86: Add Haswell TSX event aliases v2

2012-10-30 Thread Andi Kleen
From: Andi Kleen Add infrastructure to generate event aliases in /sys/devices/cpu/events/ And use this to set up user friendly aliases for the common TSX events. TSX tuning relies heavily on the PMU, so it's important to be user friendly. This replaces the generic transaction events in an earli

[PATCH 31/32] perf, tools: Default to cpu// for events v3

2012-10-30 Thread Andi Kleen
From: Andi Kleen When an event fails to parse and it's not in a new style format, try to parse it again as a cpu event. This allows to use sysfs exported events directly without //, so I can use perf record -e tx-aborts ... instead of perf record -e cpu/tx-aborts/ v2: Handle multiple events

[PATCH 26/32] perf, x86: improve sysfs event mapping with event string

2012-10-30 Thread Andi Kleen
From: Stephane Eranian This patch extends Jiri's changes to make generic events mapping visible via sysfs. The patch extends the mechanism to non-generic events by allowing the mappings to be hardcoded in strings. This mechanism will be used by the PEBS-LL patch later on. [AK: Make events_sysfs

[PATCH 29/32] perf, tools: Add perf stat --transaction v2

2012-10-30 Thread Andi Kleen
From: Andi Kleen Add support to perf stat to print the basic transactional execution statistics: Total cycles, Cycles in Transaction, Cycles in aborted transsactions using the intx and intx_checkpoint qualifiers. Transaction Starts and Elision Starts, to compute the average transaction length.

Re: [PATCH 2/2] irq_work: Fix racy IRQ_WORK_BUSY flag setting

2012-10-30 Thread Frederic Weisbecker
2012/10/30 anish kumar : > As I understand without the memory barrier proposed by you the situation > would be as below: > CPU 0 CPU 1 > > data = something flags = IRQ_WORK_BUSY > smp_mb() (implicit with cmpxchg execute_work (sees data from C

[PATCH 27/32] perf, x86: Support CPU specific sysfs events

2012-10-30 Thread Andi Kleen
From: Andi Kleen Add a way for the CPU initialization code to register additional events, and merge them into the events attribute directory. Used in the next patch. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event.c | 29 + arch/x86/kernel/cpu/perf_ev

[PATCH 03/32] perf, x86: Basic Haswell PEBS support v3

2012-10-30 Thread Andi Kleen
From: Andi Kleen Add basic PEBS support for Haswell. The constraints are similar to SandyBridge with a few new events. v2: Readd missing pebs_aliases v3: Readd missing hunk. Fix some constraints. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event.h |2 ++ arch/x86/kernel

[PATCH 06/32] perf, x86: Support PERF_SAMPLE_ADDR on Haswell

2012-10-30 Thread Andi Kleen
From: Andi Kleen Haswell supplies the address for every PEBS memory event, so always fill it in when the user requested it. It will be 0 when not useful (no memory access) Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event_intel_ds.c |4 1 files changed, 4 insertions(+), 0

[PATCH 25/32] tools, perf: Add a precise event qualifier

2012-10-30 Thread Andi Kleen
From: Andi Kleen Add a precise qualifier, like cpu/event=0x3c,precise=1/ This is needed so that the kernel can request enabling PEBS for TSX events. The parser bails out on any sysfs parse errors, so this is needed in any case to handle any event on the TSX perf kernel. Signed-off-by: Andi Klee

[PATCH 21/32] perf, tools: Add support for record transaction flags v2

2012-10-30 Thread Andi Kleen
From: Andi Kleen Add the glue in the user tools to record transaction flags with --transaction (-T was already taken) and dump them. Followon patches will use them. v2: Fix manpage Signed-off-by: Andi Kleen --- tools/perf/Documentation/perf-record.txt |4 +++- tools/perf/builtin-record.c

Re: [PATCH 1/5] fat: remove parent_logstart check in fat_get_parent

2012-10-30 Thread OGAWA Hirofumi
Namjae Jeon writes: > From: Namjae Jeon > > The root directory inode is added to the directory hash table in > fat_attach when mounted with nfs option. Since root dentry never > expires until umount, fat_dget never fails to return the root inode > for subdirectories of root inode.i.e., parent_lo

[PATCH 20/32] perf, x86: Add Haswell specific transaction flag reporting

2012-10-30 Thread Andi Kleen
From: Andi Kleen In the PEBS handler report the transaction flags using the new generic transaction flags facility. Most of them come from the "tsx_tuning" field in PEBSv2, but the abort code is derived from the RAX register reported in the PEBS record. Signed-off-by: Andi Kleen --- arch/x86/k

[PATCH 19/32] perf, core: Add generic transaction flags v2

2012-10-30 Thread Andi Kleen
From: Andi Kleen Add a generic qualifier for transaction events, as a new sample type that returns a flag word. This is particularly useful for qualifying aborts: to distinguish aborts which happen due to asynchronous events (like conflicts caused by another CPU) versus instructions that lead to

[PATCH 16/32] perf, tools: Add support for weight v3

2012-10-30 Thread Andi Kleen
From: Andi Kleen perf record has a new option -W that enables weightened sampling. Add sorting support in top/report for the average weight per sample and the total weight sum. This allows to both compare relative cost per event and the total cost over the measurement period. Add the necessary

[PATCH 14/32] perf, core: Add a concept of a weightened sample

2012-10-30 Thread Andi Kleen
From: Andi Kleen For some events it's useful to weight sample with a hardware provided number. This expresses how expensive the action the sample represent was. This allows the profiler to scale the samples to be more informative to the programmer. There is already the period which is used simi

[PATCH 24/32] perf, tools: Add arbitary aliases and support names with -

2012-10-30 Thread Andi Kleen
From: Andi Kleen - Add missing scanner symbol for arbitrary aliases inside the config region. - looks nicer than _, so allow - in the event names. Used for various of the arch perfmon and Haswell events. Signed-off-by: Andi Kleen --- tools/perf/util/parse-events.l |2 ++ 1 files changed, 2

[PATCH 18/32] perf, x86: Support for printing PMU state on spurious PMIs v3

2012-10-30 Thread Andi Kleen
From: Andi Kleen I had some problems with spurious PMIs, so print the PMU state on a spurious one. This will not interact well with other NMI users. Disabled by default, has to be explicitely enabled through sysfs. Optional, but useful for debugging. v2: Move to /sys/devices/cpu v3: Print in mo

[PATCH 17/32] perf, tools: Handle XBEGIN like a jump

2012-10-30 Thread Andi Kleen
From: Andi Kleen So that the browser still shows the abort label Signed-off-by: Andi Kleen --- tools/perf/util/annotate.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 7a34dd1..b14d4df 100644 --- a/tools/

[PATCH 22/32] perf, tools: Point --sort documentation to --help

2012-10-30 Thread Andi Kleen
From: Andi Kleen The --sort documentation for top and report was hopelessly out-of-date Instead of having two more places that would need to be updated, just point to --help. Signed-off-by: Andi Kleen --- tools/perf/Documentation/perf-report.txt |2 +- tools/perf/Documentation/perf-top.txt

Re: [PATCH RESEND] cpufreq: Make sure target freq is within limits

2012-10-30 Thread Rafael J. Wysocki
On Friday, October 26, 2012 06:05:21 PM Viresh Kumar wrote: > __cpufreq_driver_target() must not pass target frequency beyond the limits of > current policy. > > Today most of cpufreq platform drivers are doing this check in their target > routines. Why not move it to __cpufreq_driver_target(). >

Re: [PATCH] cpufreq: Avoid calling cpufreq driver's target() routine if target_freq == policy->cur

2012-10-30 Thread Rafael J. Wysocki
On Friday, October 26, 2012 01:17:12 PM Rafael J. Wysocki wrote: > On Friday, October 26, 2012 03:06:26 PM Viresh Kumar wrote: > > Avoid calling cpufreq driver's target() routine if new frequency is same as > > policies current frequency. > > > > Signed-off-by: Viresh Kumar > > Looks reasonable.

[PATCH 12/32] perf, x86: Support full width counting

2012-10-30 Thread Andi Kleen
From: Andi Kleen Recent Intel CPUs have a new alternative MSR range for perfctrs that allows writing the full counter width. Enable this range if the hardware reports it using a new capability bit. This lowers overhead of perf stat slightly because it has to do less interrupts to accumulate the c

Re: [for-next PATCH V2] PM / devfreq: Add sysfs node to expose available frequencies

2012-10-30 Thread Rafael J. Wysocki
On Friday, October 26, 2012 06:16:36 AM MyungJoo Ham wrote: > > devfreq governors such as ondemand are controlled by a min and > > max frequency, while governors like userspace governor allow us > > to set a specific frequency. > > However, for the same specific device, depending on the SoC, the >

[PATCH 13/32] perf, x86: Avoid checkpointed counters causing excessive TSX aborts v3

2012-10-30 Thread Andi Kleen
From: Andi Kleen With checkpointed counters there can be a situation where the counter is overflowing, aborts the transaction, is set back to a non overflowing checkpoint, causes interupt. The interrupt doesn't see the overflow because it has been checkpointed. This is then a spurious PMI, typic

[PATCH RT 4/4] Linux 3.0.48-rt72-rc1

2012-10-30 Thread Steven Rostedt
From: Steven Rostedt --- localversion-rt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localversion-rt b/localversion-rt index f38a3cc..70396d6 100644 --- a/localversion-rt +++ b/localversion-rt @@ -1 +1 @@ --rt71 +-rt72-rc1 -- 1.7.10.4 -- To unsubscribe from this lis

[PATCH 15/32] perf, x86: Support weight samples for PEBS

2012-10-30 Thread Andi Kleen
From: Andi Kleen When a weighted sample is requested, first try to report the TSX abort cost on Haswell. If that is not available report the memory latency. This allows profiling both by abort cost and by memory latencies. Memory latencies requires enabling a different PEBS mode (LL). When both

[PATCH 09/32] perf, x86: Support LBR filtering by INTX/NOTX/ABORT v2

2012-10-30 Thread Andi Kleen
From: Andi Kleen Add LBR filtering for branch in transaction, branch not in transaction or transaction abort. This is exposed as new sample types. v2: Rename ABORT to ABORTTX Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event_intel_lbr.c | 31 +-- include/ua

[PATCH 07/32] perf, x86: Support Haswell v4 LBR format

2012-10-30 Thread Andi Kleen
From: Andi Kleen Haswell has two additional LBR from flags for TSX: intx and abort, implemented as a new v4 version of the LBR format. Handle those in and adjust the sign extension code to still correctly extend. The flags are exported similarly in the LBR record to the existing misprediction fl

[PATCH 11/32] perf, tools: Support sorting by intx, abort branch flags

2012-10-30 Thread Andi Kleen
From: Andi Kleen Extend the perf branch sorting code to support sorting by intx or abort qualifiers. Also print out those qualifiers. Signed-off-by: Andi Kleen --- tools/perf/builtin-report.c |3 +- tools/perf/builtin-top.c|4 ++- tools/perf/perf.h |4 ++- tools/perf/

[PATCH 08/32] perf, x86: Disable LBR recording for unknown LBR_FMT

2012-10-30 Thread Andi Kleen
From: Andi Kleen When the LBR format is unknown disable LBR recording. This prevents crashes when the LBR address is misdecoded and mis-sign extended. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event_intel_lbr.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --g

[PATCH 10/32] perf, tools: Add abort_tx,no_tx,in_tx branch filter options to perf record -j v3

2012-10-30 Thread Andi Kleen
From: Andi Kleen Make perf record -j aware of the new in_tx,no_tx,abort_tx branch qualifiers. v2: ABORT -> ABORTTX v3: Add more _ Signed-off-by: Andi Kleen --- tools/perf/Documentation/perf-record.txt |3 +++ tools/perf/builtin-record.c |3 +++ 2 files changed, 6 insertion

[PATCH 32/32] perf, tools: List kernel supplied event aliases in perf list v2

2012-10-30 Thread Andi Kleen
From: Andi Kleen List the kernel supplied pmu event aliases in perf list It's better when the users can actually see them. v2: Fix pattern matching Signed-off-by: Andi Kleen --- tools/perf/Documentation/perf-list.txt |4 +- tools/perf/builtin-list.c |3 + tools/perf/util/

[PATCH 05/32] perf, kvm: Support the intx/intx_cp modifiers in KVM arch perfmon emulation v3

2012-10-30 Thread Andi Kleen
From: Andi Kleen This is not arch perfmon, but older CPUs will just ignore it. This makes it possible to do at least some TSX measurements from a KVM guest Cc: a...@redhat.com Cc: g...@redhat.com v2: Various fixes to address review feedback v3: Ignore the bits when no CPUID. No #GP. Force raw ev

[PATCH 04/32] perf, x86: Support the TSX intx/intx_cp qualifiers v2

2012-10-30 Thread Andi Kleen
From: Andi Kleen Implement the TSX transaction and checkpointed transaction qualifiers for Haswell. This allows e.g. to profile the number of cycles in transactions. The checkpointed qualifier requires forcing the event to counter 2, implement this with a custom constraint for Haswell. Also add

[PATCH 23/32] perf, tools: Add browser support for transaction flags v2

2012-10-30 Thread Andi Kleen
From: Andi Kleen Add histogram support for the transaction flags. Each flags instance becomes a separate histogram. Support sorting and displaying the flags in report and top. The patch is fairly large, but it's really mostly just plumbing to pass the flags around. v2: Increase column. Fix flag

Re: [PATCH 04/32] x86: New cpuset nohz irq vector

2012-10-30 Thread Frederic Weisbecker
2012/10/31 Steven Rostedt : > On Wed, 2012-10-31 at 00:51 +0100, Frederic Weisbecker wrote: > >> > Probably just use irq_work for self ipis, and normal ipis for other >> > CPUs. >> >> Right. And that's one more reason why we want to know if the arch >> implements irq work with self ipis or not. If

Re: [PATCH 5/5] fat: add mutex lock to fat_build_inode

2012-10-30 Thread OGAWA Hirofumi
Namjae Jeon writes: > 2012/10/30, Andrew Morton : >> On Sun, 28 Oct 2012 10:53:43 +0900 >> Namjae Jeon wrote: >> >>> From: Namjae Jeon >>> >>> fat_nfs_get_inode does not hold i_mutex of parent directory.So add >>> lock to fat_build_inode. >> > Hi. Andrew. >> Well.. why? Presumably this patch

Re: [PATCH 00/31] numa/core patches

2012-10-30 Thread Johannes Weiner
On Tue, Oct 30, 2012 at 02:29:25PM +0800, Zhouping Liu wrote: > On 10/29/2012 01:56 AM, Johannes Weiner wrote: > >On Fri, Oct 26, 2012 at 11:08:00AM +0200, Peter Zijlstra wrote: > >>On Fri, 2012-10-26 at 17:07 +0800, Zhouping Liu wrote: > >>>[ 180.918591] RIP: 0010:[] [] > >>>mem_cgroup_prepare_

<    2   3   4   5   6   7   8   9   >