In case of segfault, log a failure instead of nothing.
This commit is contained in:
6
Makefile
6
Makefile
@@ -22,7 +22,7 @@ DEPENDENCIES := $(foreach exec,$(EXECUTABLES), $(if $(shell which $(exec) 2> /de
|
||||
|
||||
### Generic flags
|
||||
SRCS= spectre_v1 spectre_v2
|
||||
CFLAGS= -march=native -g
|
||||
CFLAGS= -march=native
|
||||
CFLAGS+= -W
|
||||
CFLAGS+= -Wall
|
||||
CFLAGS+= -Werror -Wextra
|
||||
@@ -32,7 +32,7 @@ LDFLAGS= -fuse-ld=lld
|
||||
|
||||
### Octopus flags
|
||||
CCS= clang gcc
|
||||
OPTIMIZATIONS= 0 1 2 3
|
||||
OPTIMIZATIONS= 0 1 2 3 fast s
|
||||
RETPOLINE= mretpoline
|
||||
UUID:= $(shell uuid)
|
||||
RESULTS_FILE:= results-$(UUID).json
|
||||
@@ -148,7 +148,7 @@ $(RESULTS_FILE): build
|
||||
for p in $(PROGS); do \
|
||||
for t in $$(seq $(TIMES)); do \
|
||||
sleep 0.1; \
|
||||
taskset 01 ./$$p $(FLAGS) >> $@; \
|
||||
(taskset 01 ./$$p $(FLAGS) || printf "{ \"$$p\": false }")>> $@; \
|
||||
if ! [ "$$p" = "$(lastword $(PROGS))" ]; \
|
||||
then echo ',' >> $@; \
|
||||
else if ! [ $$t -eq $(TIMES) ]; \
|
||||
|
||||
Reference in New Issue
Block a user