perfctr_stop: add flags to no 'disable_intens'
The original fujitsu code added a whole new ihk_mc_perfctr_stop_first function, duplicating a lot of code - add a flag to existing function instead. Change-Id: Ic9ce0236d68f967ff72cf88e5d9f1bda5c98aa1b Fujitsu: POSTK_DEBUG_ARCH_DEP_107
This commit is contained in:
committed by
Dominique Martinet
parent
d0d99adfb3
commit
34a995d290
@ -3974,7 +3974,7 @@ perf_stop(struct mc_perf_event *event)
|
||||
}
|
||||
|
||||
if (counter_mask) {
|
||||
ihk_mc_perfctr_stop(counter_mask);
|
||||
ihk_mc_perfctr_stop(counter_mask, 0);
|
||||
cpu_local_var(current)->proc->monitoring_event = NULL;
|
||||
cpu_local_var(current)->proc->perf_status = PP_NONE;
|
||||
}
|
||||
@ -9302,13 +9302,15 @@ SYSCALL_DECLARE(pmc_start)
|
||||
SYSCALL_DECLARE(pmc_stop)
|
||||
{
|
||||
unsigned long counter = ihk_mc_syscall_arg0(ctx);
|
||||
return ihk_mc_perfctr_stop((int)counter);
|
||||
return ihk_mc_perfctr_stop((int)counter,
|
||||
IHK_MC_PERFCTR_DISABLE_INTERRUPT);
|
||||
}
|
||||
#else
|
||||
SYSCALL_DECLARE(pmc_stop)
|
||||
{
|
||||
unsigned long counter = ihk_mc_syscall_arg0(ctx);
|
||||
return ihk_mc_perfctr_stop(1 << counter);
|
||||
return ihk_mc_perfctr_stop(1 << counter,
|
||||
IHK_MC_PERFCTR_DISABLE_INTERRUPT);
|
||||
}
|
||||
#endif /*POSTK_DEBUG_TEMP_FIX_30*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user