perf: set event period

Change-Id: Ibf569de7af8697e766c10b8d70905b8cdc4df083
This commit is contained in:
TOIDA,Suguru
2019-11-19 14:18:17 +09:00
parent 86c45484e3
commit 343121c3d0
5 changed files with 54 additions and 0 deletions

View File

@ -788,6 +788,7 @@ static void armv8pmu_handle_irq(void *priv)
long irqstate;
struct mckfd *fdp;
struct pt_regs *regs = (struct pt_regs *)priv;
struct mc_perf_event *event = NULL;
/*
* Get and reset the IRQ flags
@ -821,6 +822,11 @@ static void armv8pmu_handle_irq(void *priv)
else {
set_signal(SIGIO, regs, NULL);
}
if (event) {
ihk_mc_event_set_period(event);
}
return;
}
static void armv8pmu_enable_user_access_pmu_regs(void)