Skip to content

Commit

Permalink
WIP: remove gprof
Browse files Browse the repository at this point in the history
  • Loading branch information
Mes0903 committed Jan 26, 2025
1 parent fb3bf51 commit 2172626
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ DTC ?= dtc
E :=
S := $E $E

LDFLAGS := -pg

SMP ?= 1
CFLAGS += -D SEMU_BOOT_TARGET_TIME=10
.PHONY: riscv-harts.dtsi
Expand Down
8 changes: 0 additions & 8 deletions auto_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,11 @@ for N in $(seq 1 32); do
echo "Starting experiment with SMP=$N"
echo "============================================="

# 2) Build and run checks with SMP=N, capturing emulator output
# The 'tee' command copies output to the terminal AND a log file
echo "Building and running 'make check SMP=$N'..."
make check SMP=$N 2>&1 | tee "logs/emulator_SMP_${N}.log"

# 3) After the emulator run, record gprof output
# We assume 'gprof ./semu' uses data from 'gmon.out'
echo "Running gprof for SMP=$N..."
gprof ./semu > "logs/gprof_SMP_${N}.log" 2>&1

echo "Done with SMP=$N. Logs saved:"
echo " - logs/emulator_SMP_${N}.log"
echo " - logs/gprof_SMP_${N}.log"
echo
done

Expand Down

0 comments on commit 2172626

Please sign in to comment.