Hello,
At the moment there is no dependencies on header files in blktracer's
Makefiles,
and this cause some problems. This tiny patch simply adds needed deps.
--- ./btt/Makefile.make-header 2007-02-07 01:36:55.000000000 +0300
+++ ./btt/Makefile 2007-02-07 03:01:44.000000000 +0300
@@ -10,10 +10,11 @@ OBJS = args.o bt_timeline.o devmap.o dev
misc.o output.o proc.o seek.o trace.o trace_complete.o trace_im.o \
trace_issue.o trace_queue.o trace_remap.o trace_requeue.o rbtree.o \
mmap.o
+HEADERS = globals.h inlines.h list.h ../blktrace.h ../rbtree.h
all: depend $(PROGS)
-rbtree.o: ../rbtree.c
+rbtree.o: ../rbtree.c ../rbtree.h
$(CC) -o $*.o -c $(ALL_CFLAGS) $<
depend:
@@ -22,7 +23,7 @@ depend:
clean:
-rm -f *.o $(PROGS) .depend
-%.o: %.c
+%.o: %.c $(HEADERS)
$(CC) -o $*.o -c $(ALL_CFLAGS) $<
btt: $(OBJS)
--- ./Makefile.make-header 2007-02-07 02:03:38.000000000 +0300
+++ ./Makefile 2007-02-07 02:57:05.000000000 +0300
@@ -4,11 +4,12 @@ ALL_CFLAGS = $(CFLAGS) -D_GNU_SOURCE -D_
PROGS = blkparse blktrace verify_blkparse blkrawverify
LIBS = -lpthread
SCRIPTS = btrace
+HEADERS = blktrace.h barrier.h blktrace_api.h jhash.h rbtree.h
all: depend $(PROGS) $(SCRIPTS)
$(MAKE) -C btt
-%.o: %.c
+%.o: %.c $(HEADERS)
$(CC) -o $*.o -c $(ALL_CFLAGS) $<
blkparse: blkparse.o blkparse_fmt.o rbtree.o act_mask.o