On Thu, Oct 16, 2014 at 4:24 PM, Peter Zijlstra wrote:
> On Thu, Oct 16, 2014 at 12:49:43PM -0400, Patrick Palka wrote:
>> On Oct 16, 2014 4:02 AM, "Peter Zijlstra" wrote:
>> >
>> > On Wed, Oct 15, 2014 at 04:38:01PM -0400, Patrick Palka wrote:
>&
On Thu, Oct 16, 2014 at 4:24 PM, Peter Zijlstra pet...@infradead.org wrote:
On Thu, Oct 16, 2014 at 12:49:43PM -0400, Patrick Palka wrote:
On Oct 16, 2014 4:02 AM, Peter Zijlstra pet...@infradead.org wrote:
On Wed, Oct 15, 2014 at 04:38:01PM -0400, Patrick Palka wrote:
This patch fixes
...@kernel.org
Cc: Peter Zijlstra
Cc: Hans-Christian Egtvedt
Cc: "Paul E. McKenney"
Cc: Pranith Kumar
Signed-off-by: Patrick Palka
---
arch/x86/include/asm/atomic.h | 20
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/arch/x86/include/asm/atomic.
On Wed, Oct 15, 2014 at 3:08 PM, Patrick Palka wrote:
> On Wed, Oct 15, 2014 at 9:41 AM, Patrick Palka wrote:
>> Instead of open-coding the equivalent cmpxchg loop we can just use
>> atomic_set_mask and atomic_clear_mask to atomically OR or AND
>> the value in >record_di
On Wed, Oct 15, 2014 at 9:41 AM, Patrick Palka wrote:
> Instead of open-coding the equivalent cmpxchg loop we can just use
> atomic_set_mask and atomic_clear_mask to atomically OR or AND
> the value in >record_disabled.
>
> Cc: Steven Rostedt
> Cc: Ingo Molnar
> Sign
Instead of open-coding the equivalent cmpxchg loop we can just use
atomic_set_mask and atomic_clear_mask to atomically OR or AND
the value in >record_disabled.
Cc: Steven Rostedt
Cc: Ingo Molnar
Signed-off-by: Patrick Palka
---
NB: I have only tested this patch on x86_64 by boot
Instead of open-coding the equivalent cmpxchg loop we can just use
atomic_set_mask and atomic_clear_mask to atomically OR or AND
the value in buffer-record_disabled.
Cc: Steven Rostedt rost...@goodmis.org
Cc: Ingo Molnar mi...@redhat.com
Signed-off-by: Patrick Palka patr...@parcs.ath.cx
---
NB
On Wed, Oct 15, 2014 at 9:41 AM, Patrick Palka patr...@parcs.ath.cx wrote:
Instead of open-coding the equivalent cmpxchg loop we can just use
atomic_set_mask and atomic_clear_mask to atomically OR or AND
the value in buffer-record_disabled.
Cc: Steven Rostedt rost...@goodmis.org
Cc: Ingo
On Wed, Oct 15, 2014 at 3:08 PM, Patrick Palka patr...@parcs.ath.cx wrote:
On Wed, Oct 15, 2014 at 9:41 AM, Patrick Palka patr...@parcs.ath.cx wrote:
Instead of open-coding the equivalent cmpxchg loop we can just use
atomic_set_mask and atomic_clear_mask to atomically OR or AND
the value
: Peter Zijlstra pet...@infradead.org
Cc: Hans-Christian Egtvedt egtv...@samfundet.no
Cc: Paul E. McKenney paul...@linux.vnet.ibm.com
Cc: Pranith Kumar bobby.pr...@gmail.com
Signed-off-by: Patrick Palka patr...@parcs.ath.cx
---
arch/x86/include/asm/atomic.h | 20
1 file changed
cnprintf(text, ...);
into
text_len += vscnprintf(text + text_len, ...);
To fix this, this patch avoids setting text_len when logging the printk
recursion error. This patch also marks unlikely() the branch leading
up to this code.
Signed-off-by: Patrick Palka
---
kernel/printk/printk.c | 6 +
, ...);
into
text_len += vscnprintf(text + text_len, ...);
To fix this, this patch avoids setting text_len when logging the printk
recursion error. This patch also marks unlikely() the branch leading
up to this code.
Signed-off-by: Patrick Palka patr...@parcs.ath.cx
---
kernel/printk/printk.c | 6
sion error. This patch also performs a couple of local
micro-optimizations (use unlikely() and ARRAY_SIZE()).
Signed-off-by: Patrick Palka
---
kernel/printk/printk.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index e04c45
. This patch also performs a couple of local
micro-optimizations (use unlikely() and ARRAY_SIZE()).
Signed-off-by: Patrick Palka patr...@parcs.ath.cx
---
kernel/printk/printk.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index
Hi everybody,
I am trying to figure out the race condition that commit 7cccd8 fixes.
The commit disables preemption in between the retrieval of the per-cpu
slab and the subsequent read of the slab's tid. According to the
commit message, this change helps avoid allocating from the wrong node
in
Hi everybody,
I am trying to figure out the race condition that commit 7cccd8 fixes.
The commit disables preemption in between the retrieval of the per-cpu
slab and the subsequent read of the slab's tid. According to the
commit message, this change helps avoid allocating from the wrong node
in
On Fri, Jun 6, 2014 at 3:13 AM, Masami Hiramatsu
wrote:
> Improve the error message if we can not find given member in
> the given structure. Currently perf probe shows a wrong error
> message as below.
>
> -
> # perf probe getname_flags:65 "result->BOGUS"
> result(type:filename) has no
On Fri, Jun 6, 2014 at 3:13 AM, Masami Hiramatsu
masami.hiramatsu...@hitachi.com wrote:
Improve the error message if we can not find given member in
the given structure. Currently perf probe shows a wrong error
message as below.
-
# perf probe getname_flags:65 result-BOGUS
Commit-ID: 6eeefccdcfc2cc9697562e740bfe6c35fddd4e1c
Gitweb: http://git.kernel.org/tip/6eeefccdcfc2cc9697562e740bfe6c35fddd4e1c
Author: Patrick Palka
AuthorDate: Wed, 12 Mar 2014 18:40:51 -0400
Committer: Arnaldo Carvalho de Melo
CommitDate: Fri, 14 Mar 2014 13:45:54 -0300
perf bench
Commit-ID: 6eeefccdcfc2cc9697562e740bfe6c35fddd4e1c
Gitweb: http://git.kernel.org/tip/6eeefccdcfc2cc9697562e740bfe6c35fddd4e1c
Author: Patrick Palka patr...@parcs.ath.cx
AuthorDate: Wed, 12 Mar 2014 18:40:51 -0400
Committer: Arnaldo Carvalho de Melo a...@redhat.com
CommitDate: Fri, 14
On Thu, Mar 13, 2014 at 10:34 AM, Arnaldo Carvalho de Melo
wrote:
> Em Wed, Mar 12, 2014 at 06:40:51PM -0400, Patrick Palka escreveu:
>> for_each_bench() must check that the "benchmarks" field of a collection
>> is not NULL before dereferencing it because the "all&qu
On Thu, Mar 13, 2014 at 10:34 AM, Arnaldo Carvalho de Melo
a...@ghostprotocols.net wrote:
Em Wed, Mar 12, 2014 at 06:40:51PM -0400, Patrick Palka escreveu:
for_each_bench() must check that the benchmarks field of a collection
is not NULL before dereferencing it because the all collection
dereference when running "perf bench all".
Signed-off-by: Patrick Palka
---
tools/perf/builtin-bench.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/builtin-bench.c b/tools/perf/builtin-bench.c
index e47f90c..8a987d2 100644
--- a/tools/perf/builtin-bench.c
+
.
Signed-off-by: Patrick Palka patr...@parcs.ath.cx
---
tools/perf/builtin-bench.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/builtin-bench.c b/tools/perf/builtin-bench.c
index e47f90c..8a987d2 100644
--- a/tools/perf/builtin-bench.c
+++ b/tools/perf/builtin
On Thu, Feb 27, 2014 at 12:25 AM, Viresh Kumar wrote:
> Hi Rashika,
>
> On 26 February 2014 22:08, Rashika Kheria wrote:
>> Mark function as static in cpufreq.c because it is not
>> used outside this file.
>>
>> This eliminates the following warning in cpufreq.c:
>>
On Thu, Feb 27, 2014 at 12:25 AM, Viresh Kumar viresh.ku...@linaro.org wrote:
Hi Rashika,
On 26 February 2014 22:08, Rashika Kheria rashika.khe...@gmail.com wrote:
Mark function as static in cpufreq.c because it is not
used outside this file.
This eliminates the following warning in
in an ‘if’
statement [-Wempty-body]
mb_debug(1, "mballoc: %u PAs left\n", count);
Signed-off-by: Patrick Palka
---
fs/ext4/mballoc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4/mballoc.h b/fs/ext4/mballoc.h
index 08481ee..9347328 100644
--- a/fs/ext4
On Wed, Feb 12, 2014 at 9:59 PM, Joe Perches wrote:
> On Wed, 2014-02-12 at 21:13 -0500, Patrick Palka wrote:
>> When !defined(CONFIG_EXT4_DEBUG), mb_debug() should be defined as an
>> empty do-while statement so as to suppress the following compiler
>> warning:
>
>
-body]
mb_debug(1, "mballoc: %u PAs left\n", count);
Signed-off-by: Patrick Palka
---
fs/ext4/mballoc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4/mballoc.h b/fs/ext4/mballoc.h
index 08481ee..92eeb98 100644
--- a/fs/ext4/mballoc.h
+++ b/fs/ext4
-body]
mb_debug(1, mballoc: %u PAs left\n, count);
Signed-off-by: Patrick Palka patr...@parcs.ath.cx
---
fs/ext4/mballoc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4/mballoc.h b/fs/ext4/mballoc.h
index 08481ee..92eeb98 100644
--- a/fs/ext4/mballoc.h
+++ b/fs/ext4
On Wed, Feb 12, 2014 at 9:59 PM, Joe Perches j...@perches.com wrote:
On Wed, 2014-02-12 at 21:13 -0500, Patrick Palka wrote:
When !defined(CONFIG_EXT4_DEBUG), mb_debug() should be defined as an
empty do-while statement so as to suppress the following compiler
warning:
Hello Patrick.
fs
in an ‘if’
statement [-Wempty-body]
mb_debug(1, mballoc: %u PAs left\n, count);
Signed-off-by: Patrick Palka patr...@parcs.ath.cx
---
fs/ext4/mballoc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4/mballoc.h b/fs/ext4/mballoc.h
index 08481ee..9347328 100644
--- a/fs
On Mon, Jan 6, 2014 at 3:47 PM, Josh Triplett wrote:
> Does anyone have any objection to the use of "#pragma once" instead of
> the usual #ifndef-#define-...-#endif include guard? GCC, LLVM/clang,
> and the latest Sparse all support either method just fine. (I added
> support to Sparse myself.)
On Mon, Jan 6, 2014 at 3:47 PM, Josh Triplett j...@joshtriplett.org wrote:
Does anyone have any objection to the use of #pragma once instead of
the usual #ifndef-#define-...-#endif include guard? GCC, LLVM/clang,
and the latest Sparse all support either method just fine. (I added
support to
Commit-ID: d53e57d039c323fe3a43630e9f729df48134e2c9
Gitweb: http://git.kernel.org/tip/d53e57d039c323fe3a43630e9f729df48134e2c9
Author: Patrick Palka
AuthorDate: Fri, 25 Oct 2013 20:25:49 -0400
Committer: Arnaldo Carvalho de Melo
CommitDate: Mon, 11 Nov 2013 15:56:39 -0300
perf ui tui
Commit-ID: d53e57d039c323fe3a43630e9f729df48134e2c9
Gitweb: http://git.kernel.org/tip/d53e57d039c323fe3a43630e9f729df48134e2c9
Author: Patrick Palka patr...@parcs.ath.cx
AuthorDate: Fri, 25 Oct 2013 20:25:49 -0400
Committer: Arnaldo Carvalho de Melo a...@redhat.com
CommitDate: Mon, 11
sing 'q' immediately.)
Cc: Peter Zijlstra
Cc: Paul Mackerras
Cc: Arnaldo Carvalho de Melo
Cc: Namhyung Kim
Cc: Ingo Molnar
Acked-by: Ingo Molnar
Signed-off-by: Patrick Palka
---
Rebased against
git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git perf/core
And also CC'd two m
.)
Cc: Peter Zijlstra a.p.zijls...@chello.nl
Cc: Paul Mackerras pau...@samba.org
Cc: Arnaldo Carvalho de Melo a...@ghostprotocols.net
Cc: Namhyung Kim namhy...@kernel.org
Cc: Ingo Molnar mi...@kernel.org
Acked-by: Ingo Molnar mi...@kernel.org
Signed-off-by: Patrick Palka patr...@parcs.ath.cx
On Thu, Oct 24, 2013 at 4:13 PM, Arnaldo Carvalho de Melo
wrote:
> Em Wed, Oct 23, 2013 at 10:51:09PM -0400, Patrick Palka escreveu:
>> When I attempt to build perf on a system with slang but without libelf,
>> 'make' would wrongly complain that the slang library cou
On Thu, Oct 24, 2013 at 4:13 PM, Arnaldo Carvalho de Melo
a...@ghostprotocols.net wrote:
Em Wed, Oct 23, 2013 at 10:51:09PM -0400, Patrick Palka escreveu:
When I attempt to build perf on a system with slang but without libelf,
'make' would wrongly complain that the slang library could
without libelf
support.
Cc: Peter Zijlstra
Cc: Paul Mackerras
Cc: Ingo Molnar
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Signed-off-by: Patrick Palka
---
tools/perf/Makefile| 2 --
tools/perf/config/Makefile | 4
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools
data and pressing 'q' immediately.)
Cc: Peter Zijlstra
Cc: Paul Mackerras
Cc: Ingo Molnar
Signed-off-by: Patrick Palka
---
tools/perf/ui/tui/progress.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/perf/ui/tui/progress.c b/tools/perf/ui/tui/progress.c
index 6c2
' immediately.)
Cc: Peter Zijlstra a.p.zijls...@chello.nl
Cc: Paul Mackerras pau...@samba.org
Cc: Ingo Molnar mi...@redhat.com
Signed-off-by: Patrick Palka patr...@parcs.ath.cx
---
tools/perf/ui/tui/progress.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/perf/ui/tui/progress.c
without libelf
support.
Cc: Peter Zijlstra a.p.zijls...@chello.nl
Cc: Paul Mackerras pau...@samba.org
Cc: Ingo Molnar mi...@redhat.com
Cc: Arnaldo Carvalho de Melo a...@ghostprotocols.net
Cc: Jiri Olsa jo...@redhat.com
Signed-off-by: Patrick Palka patr...@parcs.ath.cx
---
tools/perf/Makefile
On Fri, Oct 18, 2013 at 8:16 PM, John Stultz wrote:
> On 10/11/2013 10:11 AM, Patrick Palka wrote:
>> sysfs_get_uname() is erroneously declared as returning size_t even
>> though it may return a negative value, specifically -EINVAL. Its
>> callers then check whether its retu
On Fri, Oct 18, 2013 at 8:16 PM, John Stultz john.stu...@linaro.org wrote:
On 10/11/2013 10:11 AM, Patrick Palka wrote:
sysfs_get_uname() is erroneously declared as returning size_t even
though it may return a negative value, specifically -EINVAL. Its
callers then check whether its return
and makes sure
its callers use ssize_t accordingly.
Signed-off-by: Patrick Palka
---
kernel/time/clockevents.c | 2 +-
kernel/time/clocksource.c | 6 +++---
kernel/time/tick-internal.h | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/kernel/time/clockevents.c b/kernel
and makes sure
its callers use ssize_t accordingly.
Signed-off-by: Patrick Palka patr...@parcs.ath.cx
---
kernel/time/clockevents.c | 2 +-
kernel/time/clocksource.c | 6 +++---
kernel/time/tick-internal.h | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/kernel/time
48 matches
Mail list logo