cachepc-qemu

Fork of AMDESE/qemu with changes for cachepc side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-qemu
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

Makefile.ebpf (505B)


      1OBJS = rss.bpf.o
      2
      3LLC ?= llc
      4CLANG ?= clang
      5INC_FLAGS = `$(CLANG) -print-file-name=include`
      6EXTRA_CFLAGS ?= -O2 -emit-llvm -fno-stack-protector
      7
      8all: $(OBJS)
      9
     10.PHONY: clean
     11
     12clean:
     13	rm -f $(OBJS)
     14
     15$(OBJS):  %.o:%.c
     16	$(CLANG) $(INC_FLAGS) \
     17                -D__KERNEL__ -D__ASM_SYSREG_H \
     18                -I../include $(LINUXINCLUDE) \
     19                $(EXTRA_CFLAGS) -c $< -o -| $(LLC) -march=bpf -filetype=obj -o $@
     20	bpftool gen skeleton rss.bpf.o > rss.bpf.skeleton.h
     21	cp rss.bpf.skeleton.h ../../ebpf/