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
@ -55,6 +55,8 @@ enum ihk_perfctr_type {
|
||||
PERFCTR_MAX_TYPE,
|
||||
};
|
||||
|
||||
#define IHK_MC_PERFCTR_DISABLE_INTERRUPT 1
|
||||
|
||||
#ifdef POSTK_DEBUG_TEMP_FIX_29
|
||||
int ihk_mc_perfctr_init(int counter, uint64_t config, int mode);
|
||||
int ihk_mc_perfctr_init_raw(int counter, uint64_t config, int mode);
|
||||
@ -64,7 +66,7 @@ int ihk_mc_perfctr_init_raw(int counter, unsigned int code, int mode);
|
||||
#endif/*POSTK_DEBUG_TEMP_FIX_29*/
|
||||
int ihk_mc_perfctr_set_extra(struct mc_perf_event *event);
|
||||
int ihk_mc_perfctr_start(unsigned long counter_mask);
|
||||
int ihk_mc_perfctr_stop(unsigned long counter_mask);
|
||||
int ihk_mc_perfctr_stop(unsigned long counter_mask, int flags);
|
||||
int ihk_mc_perfctr_reset(int counter);
|
||||
int ihk_mc_perfctr_set(int counter, long value);
|
||||
int ihk_mc_perfctr_read_mask(unsigned long counter_mask, unsigned long *value);
|
||||
|
||||
Reference in New Issue
Block a user