Skip to content

Commit

Permalink
Update several more tests to pass -no_core_sharded or update output f…
Browse files Browse the repository at this point in the history
…or now-core-sharded
  • Loading branch information
derekbruening committed Oct 15, 2024
1 parent adb7f41 commit c6fff3b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions clients/drcachesim/tests/offline-tlb_simulator_v2p.templatex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifdef AARCH64
TLB simulation results:
Core #0 \(1 thread\(s\)\)
Core #0 \(traced CPU\(s\): #0\)
L1I stats:
Hits: *18[,\.]?577
Misses: 141
Expand Down Expand Up @@ -42,7 +42,7 @@ Core #1 \(2 thread\(s\)\)
Local miss rate: 91.30%
Child hits: *65[,\.]?932
Total miss rate: 0.03%
Core #2 \(1 thread\(s\)\)
Core #2 \(traced CPU\(s\): #0\)
L1I stats:
Hits: *26[,\.]?827
Misses: 12
Expand All @@ -63,7 +63,7 @@ Core #2 \(1 thread\(s\)\)
Local miss rate: 90.48%
Child hits: *32[,\.]?953
Total miss rate: 0.06%
Core #3 \(1 thread\(s\)\)
Core #3 \(traced CPU\(s\): #0\)
L1I stats:
Hits: *26[,\.]?870
Misses: 12
Expand Down
12 changes: 7 additions & 5 deletions suite/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3972,6 +3972,7 @@ if (BUILD_CLIENTS)
set(core_sharded_dir
"${PROJECT_SOURCE_DIR}/clients/drcachesim/tests/drmemtrace.threadsig-core-sharded.x64.tracedir")
torunonly_simtool(core_on_disk ${ci_shared_app}
# Avoid the default core-sharded from re-scheduling the trace.
"-indir ${core_sharded_dir} -tool basic_counts" "")
set(tool.core_on_disk_rawtemp ON) # no preprocessor

Expand All @@ -3982,7 +3983,8 @@ if (BUILD_CLIENTS)

# Test -only_shards on core-sharded-on-disk traces.
torunonly_simtool(only_shards ${ci_shared_app}
"-indir ${core_sharded_dir} -tool schedule_stats -only_shards 2,3" "")
# Avoid the default core-sharded from re-scheduling the trace.
"-indir ${core_sharded_dir} -tool schedule_stats -only_shards 2,3 -no_core_sharded" "")
set(tool.core_on_disk_rawtemp ON) # no preprocessor
endif ()
endif ()
Expand Down Expand Up @@ -4751,9 +4753,9 @@ if (BUILD_CLIENTS)
# Run the record filter tool with a null filter.
set(${testname}_postcmd2 "${CMAKE_COMMAND}@-E@make_directory@${outdir}")
set(${testname}_postcmd3 ${launch_cmd})
# Run the analyzer on the result.
# Run the analyzer on the result. Avoid double-core-sharding.
set(${testname}_postcmd4
"${drcachesim_path}@-indir@${outdir}@-tool@${analyzer}")
"${drcachesim_path}@-indir@${outdir}@-tool@${analyzer}@-no_core_sharded")
endmacro ()

set(testname "tool.record_filter")
Expand Down Expand Up @@ -4877,7 +4879,7 @@ if (BUILD_CLIENTS)
file(MAKE_DIRECTORY ${outdir})
torunonly_api(tool.record_filter_as_traced "${drcachesim_path}"
"record_filter_as_traced"
"" "-tool;schedule_stats;-indir;${outdir}" OFF OFF)
"" "-tool;schedule_stats;-no_core_sharded;-indir;${outdir}" OFF OFF)
set(tool.record_filter_as_traced_runcmp "${CMAKE_CURRENT_SOURCE_DIR}/runmulti.cmake")
set(tool.record_filter_as_traced_precmd
"${drcachesim_path}@-tool@record_filter@-cpu_schedule_file@${sched_file}@-core_sharded@-cores@7@-indir@${trace_dir}@-outdir@${outdir}")
Expand All @@ -4894,7 +4896,7 @@ if (BUILD_CLIENTS)
file(MAKE_DIRECTORY ${outdir})
torunonly_api(tool.record_filter_start_idle "${drcachesim_path}"
"record_filter_start_idle"
"" "-tool;schedule_stats;-indir;${outdir}" OFF OFF)
"" "-tool;schedule_stats;-indir;${outdir};-no_core_sharded" OFF OFF)
set(tool.record_filter_start_idle_runcmp "${CMAKE_CURRENT_SOURCE_DIR}/runmulti.cmake")
set(tool.record_filter_start_idle_precmd
"${drcachesim_path}@-tool@record_filter@-cpu_schedule_file@${sched_file}@-core_sharded@-cores@4@-indir@${trace_dir}@-outdir@${outdir}")
Expand Down

0 comments on commit c6fff3b

Please sign in to comment.