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:
Dominique Martinet
2019-01-29 15:10:55 +09:00
committed by Dominique Martinet
parent d0d99adfb3
commit 34a995d290
5 changed files with 32 additions and 25 deletions

View File

@ -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*/