lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 22 Oct 2010 13:03:40 GMT From: tip-bot for Peter Zijlstra <a.p.zijlstra@...llo.nl> To: linux-tip-commits@...r.kernel.org Cc: linux-kernel@...r.kernel.org, eranian@...gle.com, hpa@...or.com, mingo@...hat.com, a.p.zijlstra@...llo.nl, tglx@...utronix.de, mingo@...e.hu Subject: [tip:perf/urgent] perf, x86: Fixup the precise_ip computation Commit-ID: 5553be2620ac901c21a25657bd5b59f73254e6d5 Gitweb: http://git.kernel.org/tip/5553be2620ac901c21a25657bd5b59f73254e6d5 Author: Peter Zijlstra <a.p.zijlstra@...llo.nl> AuthorDate: Tue, 19 Oct 2010 14:38:11 +0200 Committer: Ingo Molnar <mingo@...e.hu> CommitDate: Fri, 22 Oct 2010 14:18:25 +0200 perf, x86: Fixup the precise_ip computation In case we don't have PEBS, the LBR fixup doesn't make sense. Signed-off-by: Peter Zijlstra <a.p.zijlstra@...llo.nl> Acked-by: Stephane Eranian <eranian@...gle.com> LKML-Reference: <20101019134808.354429461@...llo.nl> Signed-off-by: Ingo Molnar <mingo@...e.hu> --- arch/x86/kernel/cpu/perf_event.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c index fe73c18..f369c53 100644 --- a/arch/x86/kernel/cpu/perf_event.c +++ b/arch/x86/kernel/cpu/perf_event.c @@ -497,12 +497,13 @@ static int x86_pmu_hw_config(struct perf_event *event) int precise = 0; /* Support for constant skid */ - if (x86_pmu.pebs) + if (x86_pmu.pebs) { precise++; - /* Support for IP fixup */ - if (x86_pmu.lbr_nr) - precise++; + /* Support for IP fixup */ + if (x86_pmu.lbr_nr) + precise++; + } if (event->attr.precise_ip > precise) return -EOPNOTSUPP; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists