Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031360AbbKFDBq (ORCPT ); Thu, 5 Nov 2015 22:01:46 -0500 Received: from e35.co.us.ibm.com ([32.97.110.153]:47934 "EHLO e35.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965402AbbKFDBp (ORCPT ); Thu, 5 Nov 2015 22:01:45 -0500 X-IBM-Helo: d03dlp01.boulder.ibm.com X-IBM-MailFrom: sukadev@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org Date: Thu, 5 Nov 2015 18:58:45 -0800 From: Sukadev Bhattiprolu To: Peter Zijlstra Cc: Madhavan Srinivasan , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Thomas Gleixner , Ingo Molnar , Jiri Olsa , Arnaldo Carvalho de Melo , Stephane Eranian , Russell King , Catalin Marinas , Will Deacon , Benjamin Herrenschmidt , Michael Ellerman Subject: Re: [RFC PATCH 0/3]perf/core: extend perf_reg and perf_sample_regs_intr Message-ID: <20151106025844.GA28859@us.ibm.com> References: <1446669978-6366-1-git-send-email-maddy@linux.vnet.ibm.com> <20151105130716.GC3604@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151105130716.GC3604@twins.programming.kicks-ass.net> X-Operating-System: Linux 2.0.32 on an i486 User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15110603-0013-0000-0000-000019FEAF8F Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1064 Lines: 27 Peter Zijlstra [peterz@infradead.org] wrote: | On Thu, Nov 05, 2015 at 02:16:15AM +0530, Madhavan Srinivasan wrote: | > Second patch updates struct arch_misc_reg for arch/powerpc with pmu registers | > and adds offsetof macro for the same. It extends perf_reg_value() | > to use reg idx to decide on struct to return value from. | | Why; what's in those regs? Those are PMU control registers/counters (in Patch 2) that are of interest only in the context of a PMU interrupt and not relevant to ptrace itself. Could we add those registers to 'struct pt_regs' anyway? We do have 'struct perf_regs' but that seems to be arch nuetral. If architectures could override that, maybe we could add these new registers there without touching 'struct pt_regs'. Even so, lot of perf code depends on 'struct pt_regs'. Sukadev -- 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/