Skip to content

Commit b57cea5

Browse files
committed
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
2 parents 2437dcb + 46cd6a7 commit b57cea5

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

kernel/events/callchain.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ int get_callchain_buffers(void)
115115
}
116116

117117
err = alloc_callchain_buffers();
118-
if (err)
119-
release_callchain_buffers();
120118
exit:
121119
mutex_unlock(&callchain_mutex);
122120

kernel/events/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ static void update_event_times(struct perf_event *event)
815815
* here.
816816
*/
817817
if (is_cgroup_event(event))
818-
run_end = perf_event_time(event);
818+
run_end = perf_cgroup_event_time(event);
819819
else if (ctx->is_active)
820820
run_end = ctx->time;
821821
else

0 commit comments

Comments
 (0)