Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: perf: Call perf_cgroup_event_time() directly perf: Don't call release_callchain_buffers() if allocation fails
This commit is contained in:
commit
b57cea5e33
@ -115,8 +115,6 @@ int get_callchain_buffers(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
err = alloc_callchain_buffers();
|
err = alloc_callchain_buffers();
|
||||||
if (err)
|
|
||||||
release_callchain_buffers();
|
|
||||||
exit:
|
exit:
|
||||||
mutex_unlock(&callchain_mutex);
|
mutex_unlock(&callchain_mutex);
|
||||||
|
|
||||||
|
@ -815,7 +815,7 @@ static void update_event_times(struct perf_event *event)
|
|||||||
* here.
|
* here.
|
||||||
*/
|
*/
|
||||||
if (is_cgroup_event(event))
|
if (is_cgroup_event(event))
|
||||||
run_end = perf_event_time(event);
|
run_end = perf_cgroup_event_time(event);
|
||||||
else if (ctx->is_active)
|
else if (ctx->is_active)
|
||||||
run_end = ctx->time;
|
run_end = ctx->time;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user