Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752006AbbDLR0v (ORCPT ); Sun, 12 Apr 2015 13:26:51 -0400 Received: from terminus.zytor.com ([198.137.202.10]:39164 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751946AbbDLR0p (ORCPT ); Sun, 12 Apr 2015 13:26:45 -0400 Date: Sun, 12 Apr 2015 10:26:20 -0700 From: tip-bot for Denys Vlasenko Message-ID: Cc: paulus@samba.org, tglx@linutronix.de, acme@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, dvlasenk@redhat.com, a.p.zijlstra@chello.nl, jolsa@redhat.com, mingo@kernel.org Reply-To: mingo@kernel.org, jolsa@redhat.com, a.p.zijlstra@chello.nl, dvlasenk@redhat.com, linux-kernel@vger.kernel.org, hpa@zytor.com, acme@kernel.org, tglx@linutronix.de, paulus@samba.org In-Reply-To: <1428671219-29341-2-git-send-email-dvlasenk@redhat.com> References: <1428671219-29341-2-git-send-email-dvlasenk@redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/asm] perf/x86/64: Do report user_regs-> cx while we are in syscall, in get_regs_user() Git-Commit-ID: 5df71b396b2d1fdd9d9f5a33e2eda5dc27c5632d X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1692 Lines: 42 Commit-ID: 5df71b396b2d1fdd9d9f5a33e2eda5dc27c5632d Gitweb: http://git.kernel.org/tip/5df71b396b2d1fdd9d9f5a33e2eda5dc27c5632d Author: Denys Vlasenko AuthorDate: Fri, 10 Apr 2015 15:06:57 +0200 Committer: Ingo Molnar CommitDate: Sat, 11 Apr 2015 13:08:53 +0200 perf/x86/64: Do report user_regs->cx while we are in syscall, in get_regs_user() Yes, it is true that cx contains return address. It's not clear why we trash it. Stop doing that. Signed-off-by: Denys Vlasenko Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1428671219-29341-2-git-send-email-dvlasenk@redhat.com Signed-off-by: Ingo Molnar --- arch/x86/kernel/perf_regs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/kernel/perf_regs.c b/arch/x86/kernel/perf_regs.c index 7ab198a..a8d4e48 100644 --- a/arch/x86/kernel/perf_regs.c +++ b/arch/x86/kernel/perf_regs.c @@ -177,8 +177,6 @@ void perf_get_regs_user(struct perf_regs *regs_user, * than just blindly copying user_regs. */ regs_user->abi = PERF_SAMPLE_REGS_ABI_64; - /* usually contains return address (same as ->ip) */ - regs_user_copy->cx = -1; } else { /* We're probably in an interrupt or exception. */ regs_user->abi = user_64bit_mode(user_regs) ? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/