profile: fix infinite recursion for allocation miss event
Change-Id: I248c2abc7d02a9d9bffce20b3183724ddc8c2c1c
This commit is contained in:
committed by
Masamichi Takagi
parent
ba04c8a7b9
commit
8fb42631f2
@ -100,8 +100,13 @@ void profile_event_add(enum profile_event_type type, uint64_t tsc)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (!cpu_local_var(current)->profile_events) {
|
if (!cpu_local_var(current)->profile_events) {
|
||||||
if (profile_alloc_events(cpu_local_var(current)) < 0)
|
if (type == PROFILE_mpol_alloc_missed) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (profile_alloc_events(cpu_local_var(current)) < 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type < PROFILE_EVENT_MAX) {
|
if (type < PROFILE_EVENT_MAX) {
|
||||||
|
|||||||
Reference in New Issue
Block a user