[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-c2823ae46fb1641cc691c3dcc0eeb4356fce267a@git.kernel.org>
Date: Mon, 11 Feb 2013 04:33:43 -0800
From: tip-bot for Sasha Levin <sasha.levin@...cle.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, sasha.levin@...cle.com,
hpa@...or.com, mingo@...nel.org, a.p.zijlstra@...llo.nl,
torvalds@...ux-foundation.org, akpm@...ux-foundation.org,
tglx@...utronix.de
Subject: [tip:core/locking] liblockdep: Add the 'lockdep'
user-space utility
Commit-ID: c2823ae46fb1641cc691c3dcc0eeb4356fce267a
Gitweb: http://git.kernel.org/tip/c2823ae46fb1641cc691c3dcc0eeb4356fce267a
Author: Sasha Levin <sasha.levin@...cle.com>
AuthorDate: Sat, 9 Feb 2013 19:39:41 -0500
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Mon, 11 Feb 2013 10:12:41 +0100
liblockdep: Add the 'lockdep' user-space utility
This is a simple wrapper to make using liblockdep on existing
applications much easier.
After running 'make && make install', it becomes quite simple to
test things with liblockdep. For example, to try it on perf:
lockdep perf
No other integration required.
Signed-off-by: Sasha Levin <sasha.levin@...cle.com>
Cc: jamie.iles@...cle.com
Cc: penberg@...nel.org
Cc: acme@...stprotocols.net
Cc: paulus@...ba.org
Cc: namhyung@...nel.org
Cc: peterz@...radead.org
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: Thomas Gleixner <tglx@...utronix.de>
Link: http://lkml.kernel.org/r/1360456781-32462-11-git-send-email-sasha.levin@oracle.com
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
tools/lib/lockdep/Makefile | 12 ++++++++----
tools/lib/lockdep/lockdep | 3 +++
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile
index 245f8ba..b22122f 100644
--- a/tools/lib/lockdep/Makefile
+++ b/tools/lib/lockdep/Makefile
@@ -34,7 +34,9 @@ DESTDIR ?=
DESTDIR_SQ = '$(subst ','\'',$(DESTDIR))'
prefix ?= /usr/local
-bindir_relative = lib
+libdir_relative = lib
+libdir = $(prefix)/$(libdir_relative)
+bindir_relative = bin
bindir = $(prefix)/$(bindir_relative)
export DESTDIR DESTDIR_SQ INSTALL
@@ -90,13 +92,14 @@ objtree := $(CURDIR)
src := $(srctree)
obj := $(objtree)
-export prefix bindir src obj
+export prefix libdir bindir src obj
# Shell quotes
+libdir_SQ = $(subst ','\'',$(libdir))
bindir_SQ = $(subst ','\'',$(bindir))
-bindir_relative_SQ = $(subst ','\'',$(bindir_relative))
LIB_FILE = liblockdep.a liblockdep.so
+BIN_FILE = lockdep
CONFIG_INCLUDES =
CONFIG_LIBS =
@@ -229,7 +232,8 @@ define do_install
endef
install_lib: all_cmd
- $(Q)$(call do_install,$(LIB_FILE),$(bindir_SQ))
+ $(Q)$(call do_install,$(LIB_FILE),$(libdir_SQ))
+ $(Q)$(call do_install,$(BIN_FILE),$(bindir_SQ))
install: install_lib
diff --git a/tools/lib/lockdep/lockdep b/tools/lib/lockdep/lockdep
new file mode 100755
index 0000000..a805c81
--- /dev/null
+++ b/tools/lib/lockdep/lockdep
@@ -0,0 +1,3 @@
+#! /bin/bash
+
+LD_PRELOAD="liblockdep.so $LD_PRELOAD" "$@"
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists