mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 00:23:30 +00:00
Organize companion code and materials by book part: part-01/ Foundations part-02/ Kernel & driver fundamentals part-03/ Character & block devices part-04/ Networking & storage part-05/ Buses & advanced topics part-06/ Debugging & performance part-07/ Real-world drivers appendices/ Supplementary material README.md Overview and build instructions
28 lines
612 B
Makefile
28 lines
612 B
Makefile
# Makefile for Appendix F DTrace / INVARIANTS / WITNESS overhead
|
|
# workloads.
|
|
#
|
|
# Build with BSD make on FreeBSD 14.3-amd64:
|
|
# make
|
|
# Run (root only for DTrace):
|
|
# sh run_overhead_suite.sh
|
|
# dtrace -q -s dtrace_overhead.d # in another terminal
|
|
# Clean:
|
|
# make clean
|
|
|
|
CC?= cc
|
|
CFLAGS?= -O2 -Wall -Wextra -pedantic -std=c11
|
|
|
|
PROGS= workload_syscalls workload_locks
|
|
|
|
all: ${PROGS}
|
|
|
|
workload_syscalls: workload_syscalls.c
|
|
${CC} ${CFLAGS} -o $@ workload_syscalls.c
|
|
|
|
workload_locks: workload_locks.c
|
|
${CC} ${CFLAGS} -o $@ workload_locks.c -lpthread
|
|
|
|
clean:
|
|
rm -f ${PROGS}
|
|
|
|
.PHONY: all clean
|