Skip to content

Commit

Permalink
perf_counter: add sample user-space to Documentation/perf_counter/
Browse files Browse the repository at this point in the history
Initial version of kerneltop.c and perfstat.c.

Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Apr 6, 2009
1 parent 6f9f791 commit e0143ba
Show file tree
Hide file tree
Showing 3 changed files with 1,489 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Documentation/perf_counter/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BINS = kerneltop perfstat

all: $(BINS)

kerneltop: kerneltop.c perfcounters.h
cc -O6 -Wall -lrt `pkg-config --cflags --libs glib-2.0` -o $@ $<

perfstat: kerneltop
ln -sf kerneltop perfstat

clean:
rm $(BINS)
Loading

0 comments on commit e0143ba

Please sign in to comment.