* [GIT PULL] liblockdep fixes for v3.14
@ 2014-02-05 23:12 Sasha Levin
2014-02-09 12:53 ` Ingo Molnar
0 siblings, 1 reply; 3+ messages in thread
From: Sasha Levin @ 2014-02-05 23:12 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Ira W. Snyder, LKML, Peter Zijlstra
The following changes since commit 65370bdf881e20907e7a53abab9b8c0bc5f60a6b:
Merge branch 'linus' into core/locking (2014-02-02 09:43:20 +0100)
are available in the git repository at:
https://github.com/sashalevin/liblockdep.git liblockdep-fixes
for you to fetch changes up to a521b55af18ac72c969c1ba41b660d77dae37357:
liblockdep: add a stub for new rcu_is_watching (2014-02-05 18:03:54 -0500)
----------------------------------------------------------------
Ira W. Snyder (3):
tools: lockdep: fix initialization code path
tools: lockdep: fix include of asm/hash.h
tools: lockdep: add include directory to allow tests to compile
Sasha Levin (2):
liblockdep: mark runtests.sh as executable
liblockdep: add a stub for new rcu_is_watching
tools/lib/lockdep/Makefile | 2 +-
tools/lib/lockdep/preload.c | 2 +-
tools/lib/lockdep/run_tests.sh | 0
tools/lib/lockdep/uinclude/asm/hash.h | 6 ++++++
tools/lib/lockdep/uinclude/linux/rcu.h | 5 +++++
5 files changed, 13 insertions(+), 2 deletions(-)
mode change 100644 => 100755 tools/lib/lockdep/run_tests.sh
create mode 100644 tools/lib/lockdep/uinclude/asm/hash.h
diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile
index da8b7aa..e8dd749 100644
--- a/tools/lib/lockdep/Makefile
+++ b/tools/lib/lockdep/Makefile
@@ -112,7 +112,7 @@ export Q VERBOSE
LIBLOCKDEP_VERSION = $(LL_VERSION).$(LL_PATCHLEVEL).$(LL_EXTRAVERSION)
-INCLUDES = -I. -I/usr/local/include -I./uinclude $(CONFIG_INCLUDES)
+INCLUDES = -I. -I/usr/local/include -I./uinclude -I./include $(CONFIG_INCLUDES)
# Set compile option CFLAGS if not set elsewhere
CFLAGS ?= -g -DCONFIG_LOCKDEP -DCONFIG_STACKTRACE -DCONFIG_PROVE_LOCKING
-DBITS_PER_LONG=__WORDSIZE -DLIBLOCKDEP_VERSION='"$(LIBLOCKDEP_VERSION)"' -rdynamic -O0 -g
diff --git a/tools/lib/lockdep/preload.c b/tools/lib/lockdep/preload.c
index f8465a8..23bd69c 100644
--- a/tools/lib/lockdep/preload.c
+++ b/tools/lib/lockdep/preload.c
@@ -418,7 +418,7 @@ int pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
__attribute__((constructor)) static void init_preload(void)
{
- if (__init_state != done)
+ if (__init_state == done)
return;
#ifndef __GLIBC__
diff --git a/tools/lib/lockdep/run_tests.sh b/tools/lib/lockdep/run_tests.sh
old mode 100644
new mode 100755
diff --git a/tools/lib/lockdep/uinclude/asm/hash.h b/tools/lib/lockdep/uinclude/asm/hash.h
new file mode 100644
index 0000000..d82b170b
--- /dev/null
+++ b/tools/lib/lockdep/uinclude/asm/hash.h
@@ -0,0 +1,6 @@
+#ifndef __ASM_GENERIC_HASH_H
+#define __ASM_GENERIC_HASH_H
+
+/* Stub */
+
+#endif /* __ASM_GENERIC_HASH_H */
diff --git a/tools/lib/lockdep/uinclude/linux/rcu.h b/tools/lib/lockdep/uinclude/linux/rcu.h
index 4c99fcb..042ee8e 100644
--- a/tools/lib/lockdep/uinclude/linux/rcu.h
+++ b/tools/lib/lockdep/uinclude/linux/rcu.h
@@ -13,4 +13,9 @@ static inline int rcu_is_cpu_idle(void)
return 1;
}
+static inline bool rcu_is_watching(void)
+{
+ return false;
+}
+
#endif
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [GIT PULL] liblockdep fixes for v3.14
2014-02-05 23:12 [GIT PULL] liblockdep fixes for v3.14 Sasha Levin
@ 2014-02-09 12:53 ` Ingo Molnar
2014-02-10 1:36 ` Sasha Levin
0 siblings, 1 reply; 3+ messages in thread
From: Ingo Molnar @ 2014-02-09 12:53 UTC (permalink / raw)
To: Sasha Levin; +Cc: Ira W. Snyder, LKML, Peter Zijlstra, Thomas Gleixner
* Sasha Levin <sasha.levin@oracle.com> wrote:
> The following changes since commit 65370bdf881e20907e7a53abab9b8c0bc5f60a6b:
>
> Merge branch 'linus' into core/locking (2014-02-02 09:43:20 +0100)
>
> are available in the git repository at:
>
>
> https://github.com/sashalevin/liblockdep.git liblockdep-fixes
>
> for you to fetch changes up to a521b55af18ac72c969c1ba41b660d77dae37357:
>
> liblockdep: add a stub for new rcu_is_watching (2014-02-05 18:03:54 -0500)
>
> ----------------------------------------------------------------
> Ira W. Snyder (3):
> tools: lockdep: fix initialization code path
> tools: lockdep: fix include of asm/hash.h
> tools: lockdep: add include directory to allow tests to compile
>
> Sasha Levin (2):
> liblockdep: mark runtests.sh as executable
> liblockdep: add a stub for new rcu_is_watching
So I have a couple of nits about the commits:
1)
Please use the following standard tags/prefixes:
tools/liblockdep: Fix initialization code path
...
and also capitalize sentences properly.
2)
Faulty SOB sequences:
Author: Ira W. Snyder <iws@ovro.caltech.edu>
Date: Fri Jan 31 13:35:32 2014 -0800
tools: lockdep: add include directory to allow tests to compile
Acked-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
That's not how we do signoffs, maintainer commits should be:
Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
As a side note, that's not a valid Ack sequence either, which if done
should be the other way around:
Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Acked-by: Sasha Levin <sasha.levin@oracle.com>
3)
It's not clear which patch you are referring to here:
This patch mirrors the fix used for perf, titled "tools: perf:
util: fix include for non x86 architectures".
It's neither in the series, nor in upstream.
Thanks,
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [GIT PULL] liblockdep fixes for v3.14
2014-02-09 12:53 ` Ingo Molnar
@ 2014-02-10 1:36 ` Sasha Levin
0 siblings, 0 replies; 3+ messages in thread
From: Sasha Levin @ 2014-02-10 1:36 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Ira W. Snyder, LKML, Peter Zijlstra, Thomas Gleixner
On 02/09/2014 07:53 AM, Ingo Molnar wrote:
>
> * Sasha Levin <sasha.levin@oracle.com> wrote:
>
>> The following changes since commit 65370bdf881e20907e7a53abab9b8c0bc5f60a6b:
>>
>> Merge branch 'linus' into core/locking (2014-02-02 09:43:20 +0100)
>>
>> are available in the git repository at:
>>
>>
>> https://github.com/sashalevin/liblockdep.git liblockdep-fixes
>>
>> for you to fetch changes up to a521b55af18ac72c969c1ba41b660d77dae37357:
>>
>> liblockdep: add a stub for new rcu_is_watching (2014-02-05 18:03:54 -0500)
>>
>> ----------------------------------------------------------------
>> Ira W. Snyder (3):
>> tools: lockdep: fix initialization code path
>> tools: lockdep: fix include of asm/hash.h
>> tools: lockdep: add include directory to allow tests to compile
>>
>> Sasha Levin (2):
>> liblockdep: mark runtests.sh as executable
>> liblockdep: add a stub for new rcu_is_watching
>
> So I have a couple of nits about the commits:
>
> 1)
>
> Please use the following standard tags/prefixes:
>
> tools/liblockdep: Fix initialization code path
> ...
>
> and also capitalize sentences properly.
>
> 2)
>
> Faulty SOB sequences:
>
> Author: Ira W. Snyder <iws@ovro.caltech.edu>
> Date: Fri Jan 31 13:35:32 2014 -0800
>
> tools: lockdep: add include directory to allow tests to compile
>
> Acked-by: Sasha Levin <sasha.levin@oracle.com>
> Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
>
>
> That's not how we do signoffs, maintainer commits should be:
>
> Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
>
>
> As a side note, that's not a valid Ack sequence either, which if done
> should be the other way around:
>
> Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
> Acked-by: Sasha Levin <sasha.levin@oracle.com>
>
> 3)
>
> It's not clear which patch you are referring to here:
>
> This patch mirrors the fix used for perf, titled "tools: perf:
> util: fix include for non x86 architectures".
>
> It's neither in the series, nor in upstream.
Thanks for the review Ingo, this was my first time doing a pull request. I'll fix everything and resend.
About 3, Arnaldo pulled that patch into -tip a week ago (https://lkml.org/lkml/2014/2/2/34).
Thanks,
Sasha
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-10 1:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 23:12 [GIT PULL] liblockdep fixes for v3.14 Sasha Levin
2014-02-09 12:53 ` Ingo Molnar
2014-02-10 1:36 ` Sasha Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox