Measure total CPU time for leak(), add it to the ouput alongside the git revision

This commit is contained in:
Samuel Aubertin
2022-04-13 12:45:14 +02:00
parent 5a49d14360
commit 54abc38327
4 changed files with 90 additions and 22 deletions

View File

@@ -74,6 +74,8 @@ GCCV:= $(shell (gcc -v 2>&1 | grep 'gcc version') || (apk info -a gcc 2> /dev/n
VULN1:= $(shell (cat /sys/devices/system/cpu/vulnerabilities/spectre_v1 2> /dev/null || printf unknown))
VULN2:= $(shell (cat /sys/devices/system/cpu/vulnerabilities/spectre_v2 2> /dev/null || printf unknown))
REVISION:= $(shell git rev-parse --short HEAD)
CFLAGS+= -DREVISION=\"$(REVISION)\"
define BANNER
printf '\033[1m\033[94m________ __\n'
printf '\\_____ \\ _____/ |_ ____ ______ __ __ ______\n'