mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
8fc07ebe63
commit
d522b2cdfe
|
@ -1,2 +1,2 @@
|
||||||
subdir-y := accounting blackfin \
|
subdir-y := blackfin \
|
||||||
laptops pcmcia
|
laptops pcmcia
|
||||||
|
|
|
@ -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
|
|
|
@ -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
|
task of a thread group, the per-tgid statistics are also sent. More details
|
||||||
are given in the taskstats interface description.
|
are given in the taskstats interface description.
|
||||||
|
|
||||||
The getdelays.c userspace utility in this directory allows simple commands to
|
The getdelays.c userspace utility in tools/accounting directory allows simple
|
||||||
be run and the corresponding delay statistics to be displayed. It also serves
|
commands to be run and the corresponding delay statistics to be displayed. It
|
||||||
as an example of using the taskstats interface.
|
also serves as an example of using the taskstats interface.
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
CC := $(CROSS_COMPILE)gcc
|
||||||
|
CFLAGS := -I../../usr/include
|
||||||
|
|
||||||
|
PROGS := getdelays
|
||||||
|
|
||||||
|
all: $(PROGS)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -fr $(PROGS)
|
Loading…
Reference in New Issue