perf_event_open: Add support for counting REF_CPU_CYCLES
Using thread's tsc count instead of performance counter Refs: #1025 Change-Id: I1d7a18f1c52f1d52087002d31818638a6b206014
This commit is contained in:
committed by
Masamichi Takagi
parent
bc06d68d84
commit
309145587f
39
test/issues/1025/Makefile
Normal file
39
test/issues/1025/Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
CC = gcc
|
||||
TARGET=perf_test perf_case_a perf_case_b perf_case_c perf_case_d perf_case_e perf_case_f
|
||||
|
||||
CPPFLAGS =
|
||||
LDFLAGS =
|
||||
|
||||
ARCH=$(shell uname -p)
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
perf_tool.o: perftool.c perftool.h
|
||||
|
||||
perf_test: perf_test.c perftool.o
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
perf_case_a: perf_case_a.c perftool.o
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
perf_case_b: perf_case_b.c perftool.o
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
perf_case_c: perf_case_c.c perftool.o
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
perf_case_d: perf_case_d.c perftool.o
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
perf_case_e: perf_case_e.c perftool.o
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
perf_case_f: perf_case_f.c perftool.o
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
test: all
|
||||
@sh ./C1025_$(ARCH).sh
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) *.o *.txt
|
||||
|
||||
Reference in New Issue
Block a user