Skip to content

Commit

Permalink
schbench: measure scheduler wakeup latencies
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Mason <[email protected]>
  • Loading branch information
masoncl committed Apr 4, 2016
0 parents commit 36d859a
Show file tree
Hide file tree
Showing 2 changed files with 733 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
CC = gcc
CFLAGS = -Wall -O0 -g -W
ALL_CFLAGS = $(CFLAGS) -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

PROGS = schbench
ALL = $(PROGS)

$(PROGS): | depend

all: $(ALL)

%.o: %.c
$(CC) -o $*.o -c $(ALL_CFLAGS) $<

schbench: schbench.o
$(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) -lm -lpthread

depend:
@$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend

clean:
-rm -f *.o $(PROGS) .depend

ifneq ($(wildcard .depend),)
include .depend
endif

Loading

0 comments on commit 36d859a

Please sign in to comment.