]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
tools: move accounting tool from Documentation
authorShuah Khan <shuahkh@osg.samsung.com>
Wed, 21 Sep 2016 22:19:35 +0000 (16:19 -0600)
committerShuah Khan <shuahkh@osg.samsung.com>
Fri, 23 Sep 2016 19:07:15 +0000 (13:07 -0600)
Move accounting tool to tools and remove it from Documentation
Makefile. Update location information for this tool. Create a
new Makefile to build accounting. It can be built from top level
directory or from accounting directory:

Run make -C tools/accounting or cd tools/accounting; make

Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Documentation/Makefile
Documentation/accounting/Makefile [deleted file]
Documentation/accounting/delay-accounting.txt
tools/accounting/.gitignore [moved from Documentation/accounting/.gitignore with 100% similarity]
tools/accounting/Makefile [new file with mode: 0644]
tools/accounting/getdelays.c [moved from Documentation/accounting/getdelays.c with 100% similarity]

index 0b8cd503224cf449be26484c07fb3c9a8de1df32..e4dd5e4614a420ae43c3deff0e4facac9fc2a0c7 100644 (file)
@@ -1,2 +1,2 @@
-subdir-y := accounting blackfin \
+subdir-y := blackfin \
        laptops pcmcia
diff --git a/Documentation/accounting/Makefile b/Documentation/accounting/Makefile
deleted file mode 100644 (file)
index 7e232cb..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# List of programs to build
-hostprogs-y := getdelays
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
-HOSTCFLAGS_getdelays.o += -I$(objtree)/usr/include
index 8a12f0730c94da018615aebc8e657daf65eadd80..042ea59b5853bdbb328d12591fc124c03f0ebcdd 100644 (file)
@@ -54,9 +54,9 @@ are sent to userspace without requiring a command. If it is the last exiting
 task of a thread group, the per-tgid statistics are also sent. More details
 are given in the taskstats interface description.
 
-The getdelays.c userspace utility in this directory allows simple commands to
-be run and the corresponding delay statistics to be displayed. It also serves
-as an example of using the taskstats interface.
+The getdelays.c userspace utility in tools/accounting directory allows simple
+commands to be run and the corresponding delay statistics to be displayed. It
+also serves as an example of using the taskstats interface.
 
 Usage
 -----
diff --git a/tools/accounting/Makefile b/tools/accounting/Makefile
new file mode 100644 (file)
index 0000000..647c94a
--- /dev/null
@@ -0,0 +1,9 @@
+CC := $(CROSS_COMPILE)gcc
+CFLAGS := -I../../usr/include
+
+PROGS := getdelays
+
+all: $(PROGS)
+
+clean:
+       rm -fr $(PROGS)