Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: move accounting tool from Documentation

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>

+13 -11
+1 -1
Documentation/Makefile
··· 1 - subdir-y := accounting blackfin \ 1 + subdir-y := blackfin \ 2 2 laptops pcmcia
Documentation/accounting/.gitignore tools/accounting/.gitignore
-7
Documentation/accounting/Makefile
··· 1 - # List of programs to build 2 - hostprogs-y := getdelays 3 - 4 - # Tell kbuild to always build the programs 5 - always := $(hostprogs-y) 6 - 7 - HOSTCFLAGS_getdelays.o += -I$(objtree)/usr/include
+3 -3
Documentation/accounting/delay-accounting.txt
··· 54 54 task of a thread group, the per-tgid statistics are also sent. More details 55 55 are given in the taskstats interface description. 56 56 57 - The getdelays.c userspace utility in this directory allows simple commands to 58 - be run and the corresponding delay statistics to be displayed. It also serves 59 - as an example of using the taskstats interface. 57 + The getdelays.c userspace utility in tools/accounting directory allows simple 58 + commands to be run and the corresponding delay statistics to be displayed. It 59 + also serves as an example of using the taskstats interface. 60 60 61 61 Usage 62 62 -----
Documentation/accounting/getdelays.c tools/accounting/getdelays.c
+9
tools/accounting/Makefile
··· 1 + CC := $(CROSS_COMPILE)gcc 2 + CFLAGS := -I../../usr/include 3 + 4 + PROGS := getdelays 5 + 6 + all: $(PROGS) 7 + 8 + clean: 9 + rm -fr $(PROGS)