blob: 1dd37ee7dbdc34da57de125a1ba031ed5fb8308f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
BINS = kerneltop perfstat perf-record perf-report
all: $(BINS)
kerneltop: kerneltop.c ../../include/linux/perf_counter.h
cc -O6 -Wall -lrt -o $@ $<
perf-record: perf-record.c ../../include/linux/perf_counter.h
cc -O6 -Wall -lrt -o $@ $<
perf-report: perf-report.cc ../../include/linux/perf_counter.h
g++ -O6 -Wall -lrt -o $@ $<
perfstat: kerneltop
ln -sf kerneltop perfstat
clean:
rm $(BINS)
|