diff --git a/[refs] b/[refs] index 17ca4951a999..d44ffb2e9ffa 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 806839b22cbda90176d7f8d421889bddd7826e93 +refs/heads/master: b2f8fb237e9cc407a02aca401369c15babae35dd diff --git a/trunk/kernel/perf_event.c b/trunk/kernel/perf_event.c index 126a302c481c..c5fa717cf099 100644 --- a/trunk/kernel/perf_event.c +++ b/trunk/kernel/perf_event.c @@ -6136,7 +6136,7 @@ static void perf_event_exit_task_context(struct task_struct *child, int ctxn) * scheduled, so we are now safe from rescheduling changing * our context. */ - child_ctx = rcu_dereference_raw(child->perf_event_ctxp[ctxn]); + child_ctx = rcu_dereference(child->perf_event_ctxp[ctxn]); task_ctx_sched_out(child_ctx, EVENT_ALL); /* diff --git a/trunk/tools/perf/util/symbol.c b/trunk/tools/perf/util/symbol.c index 15ccfba8cdf8..e32478effed8 100644 --- a/trunk/tools/perf/util/symbol.c +++ b/trunk/tools/perf/util/symbol.c @@ -1161,6 +1161,13 @@ static int dso__load_sym(struct dso *self, struct map *map, const char *name, section_name = elf_sec__name(&shdr, secstrs); + /* On ARM, symbols for thumb functions have 1 added to + * the symbol address as a flag - remove it */ + if ((ehdr.e_machine == EM_ARM) && + (map->type == MAP__FUNCTION) && + (sym.st_value & 1)) + --sym.st_value; + if (self->kernel != DSO_TYPE_USER || kmodule) { char dso_name[PATH_MAX];