* [GIT PULL 0/1] perf/urgent fix
@ 2016-04-18 14:15 Arnaldo Carvalho de Melo
2016-04-18 14:15 ` [PATCH 1/1] perf intel-pt: Fix segfault tracing transactions Arnaldo Carvalho de Melo
2016-04-19 6:42 ` [GIT PULL 0/1] perf/urgent fix Ingo Molnar
0 siblings, 2 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2016-04-18 14:15 UTC (permalink / raw)
To: Ingo Molnar
Cc: linux-kernel, Arnaldo Carvalho de Melo, Adrian Hunter, Andi Kleen,
Jiri Olsa, stable, #, v4.4+, Arnaldo Carvalho de Melo
Hi Ingo,
Please consider pulling,
- Arnaldo
The following changes since commit 85dc600263c2291cea33bffa90038808ee64198b:
perf/x86/amd/ibs: Fix pmu::stop() nesting (2016-03-31 09:54:08 +0200)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo-20160418
for you to fetch changes up to 1342e0b7a6c1a060c593037fbac9f4b717f1cb3b:
perf intel-pt: Fix segfault tracing transactions (2016-04-18 11:00:56 -0300)
----------------------------------------------------------------
perf/urgent fix:
- Fix segfault tracing transactions in Intel PT (Adrian Hunter)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
----------------------------------------------------------------
Adrian Hunter (1):
perf intel-pt: Fix segfault tracing transactions
tools/perf/util/intel-pt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH 1/1] perf intel-pt: Fix segfault tracing transactions
2016-04-18 14:15 [GIT PULL 0/1] perf/urgent fix Arnaldo Carvalho de Melo
@ 2016-04-18 14:15 ` Arnaldo Carvalho de Melo
2016-04-19 6:42 ` [GIT PULL 0/1] perf/urgent fix Ingo Molnar
1 sibling, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2016-04-18 14:15 UTC (permalink / raw)
To: Ingo Molnar
Cc: linux-kernel, Adrian Hunter, Jiri Olsa, stable, #, v4.4+,
Arnaldo Carvalho de Melo
From: Adrian Hunter <adrian.hunter@intel.com>
Tracing a workload that uses transactions gave a seg fault as follows:
perf record -e intel_pt// workload
perf report
Program received signal SIGSEGV, Segmentation fault.
0x000000000054b58c in intel_pt_reset_last_branch_rb (ptq=0x1a36110)
at util/intel-pt.c:929
929 ptq->last_branch_rb->nr = 0;
(gdb) p ptq->last_branch_rb
$1 = (struct branch_stack *) 0x0
(gdb) up
1148 intel_pt_reset_last_branch_rb(ptq);
(gdb) l
1143 if (ret)
1144 pr_err("Intel Processor Trace: failed to deliver transaction event
1145 ret);
1146
1147 if (pt->synth_opts.callchain)
1148 intel_pt_reset_last_branch_rb(ptq);
1149
1150 return ret;
1151 }
1152
(gdb) p pt->synth_opts.callchain
$2 = true
(gdb)
(gdb) bt
#0 0x000000000054b58c in intel_pt_reset_last_branch_rb (ptq=0x1a36110)
#1 0x000000000054c1e0 in intel_pt_synth_transaction_sample (ptq=0x1a36110)
#2 0x000000000054c5b2 in intel_pt_sample (ptq=0x1a36110)
Caused by checking the 'callchain' flag when it should have been the
'last_branch' flag. Fix that.
Reported-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: stable@vger.kernel.org # v4.4+
Fixes: f14445ee72c5 ("perf intel-pt: Support generating branch stack")
Link: http://lkml.kernel.org/r/1460977068-11566-1-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/util/intel-pt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c
index 407f11b97c8d..617578440989 100644
--- a/tools/perf/util/intel-pt.c
+++ b/tools/perf/util/intel-pt.c
@@ -1130,7 +1130,7 @@ static int intel_pt_synth_transaction_sample(struct intel_pt_queue *ptq)
pr_err("Intel Processor Trace: failed to deliver transaction event, error %d\n",
ret);
- if (pt->synth_opts.callchain)
+ if (pt->synth_opts.last_branch)
intel_pt_reset_last_branch_rb(ptq);
return ret;
--
2.5.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [GIT PULL 0/1] perf/urgent fix
2016-04-18 14:15 [GIT PULL 0/1] perf/urgent fix Arnaldo Carvalho de Melo
2016-04-18 14:15 ` [PATCH 1/1] perf intel-pt: Fix segfault tracing transactions Arnaldo Carvalho de Melo
@ 2016-04-19 6:42 ` Ingo Molnar
1 sibling, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2016-04-19 6:42 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo
Cc: linux-kernel, Adrian Hunter, Andi Kleen, Jiri Olsa, stable, #,
v4.4+, Arnaldo Carvalho de Melo
* Arnaldo Carvalho de Melo <acme@kernel.org> wrote:
> Hi Ingo,
>
> Please consider pulling,
>
> - Arnaldo
>
> The following changes since commit 85dc600263c2291cea33bffa90038808ee64198b:
>
> perf/x86/amd/ibs: Fix pmu::stop() nesting (2016-03-31 09:54:08 +0200)
>
> are available in the git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo-20160418
>
> for you to fetch changes up to 1342e0b7a6c1a060c593037fbac9f4b717f1cb3b:
>
> perf intel-pt: Fix segfault tracing transactions (2016-04-18 11:00:56 -0300)
>
> ----------------------------------------------------------------
> perf/urgent fix:
>
> - Fix segfault tracing transactions in Intel PT (Adrian Hunter)
>
> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
>
> ----------------------------------------------------------------
> Adrian Hunter (1):
> perf intel-pt: Fix segfault tracing transactions
>
> tools/perf/util/intel-pt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Pulled, thanks a lot Arnaldo!
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-19 6:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-18 14:15 [GIT PULL 0/1] perf/urgent fix Arnaldo Carvalho de Melo
2016-04-18 14:15 ` [PATCH 1/1] perf intel-pt: Fix segfault tracing transactions Arnaldo Carvalho de Melo
2016-04-19 6:42 ` [GIT PULL 0/1] perf/urgent fix Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).