Open saurabhtangri opened 2 years ago
Resolved and programmed event 'cpu_clk_unhalted.thread' to cpu/config=0x3c/ R1 UT1 ZT1 index: 0x1 pmc_width=0x30 offset=0x7fffffffffff time_enabled=0x124f4 time_running=0x124f4 rdtsc=0x156224e9bceac57 Resolved and programmed event 'inst_retired.any' to cpu/config=0xc0/ R1 UT1 ZT1 index: 0x40000001 pmc_width=0x30 offset=0x7fffffffffff time_enabled=0x119d time_running=0x119d rdtsc=0x156224e9bd6376b EventManager configured 2 events terminate called after throwing an instance of 'std::runtime_error' what(): MSR 408 read failed with error -2 scripts/data.sh: line 34: 18161 Aborted (core dumped) ./bench $test_name > "$TEMPDIR/temp.csv"
@saurabhtangri thanks for the report.
This can occur if the msr kernel module isn't loaded.
Does the file /dev/cpu/0/msr exist?
/dev/cpu/0/msr
What does lsmod | grep msr report?
lsmod | grep msr
You try modprobe msr and run it again.
modprobe msr
Resolved and programmed event 'cpu_clk_unhalted.thread' to cpu/config=0x3c/ R1 UT1 ZT1 index: 0x1 pmc_width=0x30 offset=0x7fffffffffff time_enabled=0x124f4 time_running=0x124f4 rdtsc=0x156224e9bceac57 Resolved and programmed event 'inst_retired.any' to cpu/config=0xc0/ R1 UT1 ZT1 index: 0x40000001 pmc_width=0x30 offset=0x7fffffffffff time_enabled=0x119d time_running=0x119d rdtsc=0x156224e9bd6376b EventManager configured 2 events terminate called after throwing an instance of 'std::runtime_error' what(): MSR 408 read failed with error -2 scripts/data.sh: line 34: 18161 Aborted (core dumped) ./bench $test_name > "$TEMPDIR/temp.csv"