fix cycles_available
This commit is contained in:
parent
e9f3e9a236
commit
a62653dba9
|
@ -40,7 +40,7 @@ static inline uint64_t read_time_ns(void){
|
|||
int rvprof_timing_test_cycle_counter(void){
|
||||
// set up signal handler for illegal instruction
|
||||
struct sigaction old_action, new_action;
|
||||
new_action.sa_handler = sigill_handler;
|
||||
new_action.sa_handler = sigkill_handler;
|
||||
sigemptyset(&new_action.sa_mask);
|
||||
new_action.sa_flags = 0;
|
||||
|
||||
|
@ -82,7 +82,7 @@ rvprof_error_t rvprof_timing_init(void){
|
|||
g_rvprof.use_cycles = 0;
|
||||
|
||||
// test if cycle counter is available for informational display
|
||||
g_rvprof.cycles_available = rvprof_timing_test_cycle_counter();
|
||||
g_rvprof.cycles_avaiable = rvprof_timing_test_cycle_counter();
|
||||
|
||||
return RVPROF_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue