Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3722077pxb; Mon, 1 Feb 2021 03:02:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8k17Q0Tf6PxiIoQu8eOUY2PbQDkUKJ/ddqN7IXb0m1Ro/fmqNisdt74wL16dd7ao2DXyc X-Received: by 2002:a17:907:9710:: with SMTP id jg16mr17565831ejc.286.1612177348931; Mon, 01 Feb 2021 03:02:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612177348; cv=none; d=google.com; s=arc-20160816; b=envnCoJyxfUlVpXSF7Z42EiOrqLEy0o1vSSd6sRGOLdtzhB9GmEyBy9aIrTV4beEXG lphf8o5mwyJN7ynqoTfBDIL1yOYF6WdnmUERm+xYmDJEuvqbPZlXPoQX7tTjeAkjn34F hEGQeDfmPngqzDWMy82H9hJXTW3NbicqO1wzkqVxajZ/eoZHeuxTg1FUCCIfWhT7n00C 7GCZq/Qc2gmhfnHtyevMrnnpIh5rRq+pXy6VUZ3+EHjAcoTu4x86pSLYF0ENbg3WgqnZ esOI80D5GQxLCOOEWSj2RU27DmCu1iH3bAbAuzm39n/jt1syKZ6GpjBNNcqQ49WEAYA3 Gz7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=c5cBT9RsuydWyF54ZUKqZnd4MeyLAilXvHvusWZphvc=; b=nsNRMRHLihjbCUGA+h0MC4lWGh76mz+LLqTXzqoFPq1M/OB87eGC1E2sOHMUjUT42D SCHdXpQwvzen5RiKDiAb/wTH1cPXOPxza2bQdXyuPUzy0tX32qAqDzEY1Jomq0ls5Fey 6U+J16Hb1yiHILKYxy34aX3F/y4/dd1hKtvcJwoQ7n4vnYK1BvqXqRRZbskWKbTZSOf+ pOpkhHDryeMyqo3Z33wJ8KpJseX1vv7VH5/fP2Bw5+SlmL4za9tKBJFtAYLLm/WEOioL nFaa51Up8S/XSxN+48i1jwrH6l0MC0y6LD4VAW0kV4xAQfA706cXeldT1HagRdOxqAMs S6Qw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i26si10635184edx.182.2021.02.01.03.02.04; Mon, 01 Feb 2021 03:02:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233442AbhBALBN (ORCPT + 99 others); Mon, 1 Feb 2021 06:01:13 -0500 Received: from elvis.franken.de ([193.175.24.41]:43229 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233145AbhBALAZ (ORCPT ); Mon, 1 Feb 2021 06:00:25 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1l6Wv9-00087b-00; Mon, 01 Feb 2021 11:59:03 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 8C857C0CC6; Mon, 1 Feb 2021 11:43:38 +0100 (CET) Date: Mon, 1 Feb 2021 11:43:38 +0100 From: Thomas Bogendoerfer To: Tiezhu Yang Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li , David Daney , Ralf Baechle , Archer Yan Subject: Re: [PATCH 1/3] MIPS: kernel: Support extracting off-line stack traces from user-space with perf Message-ID: <20210201104338.GA6484@alpha.franken.de> References: <1609246561-5474-1-git-send-email-yangtiezhu@loongson.cn> <1609246561-5474-2-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1609246561-5474-2-git-send-email-yangtiezhu@loongson.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 29, 2020 at 08:55:59PM +0800, Tiezhu Yang wrote: > +++ b/arch/mips/include/uapi/asm/perf_regs.h > @@ -0,0 +1,42 @@ > +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ > +#ifndef _ASM_MIPS_PERF_REGS_H > +#define _ASM_MIPS_PERF_REGS_H > + > +enum perf_event_mips_regs { > + PERF_REG_MIPS_PC, > + PERF_REG_MIPS_R1, > + PERF_REG_MIPS_R2, > + PERF_REG_MIPS_R3, > + PERF_REG_MIPS_R4, > + PERF_REG_MIPS_R5, > + PERF_REG_MIPS_R6, > + PERF_REG_MIPS_R7, > + PERF_REG_MIPS_R8, > + PERF_REG_MIPS_R9, > + PERF_REG_MIPS_R10, > + PERF_REG_MIPS_R11, > + PERF_REG_MIPS_R12, > + PERF_REG_MIPS_R13, > + PERF_REG_MIPS_R14, > + PERF_REG_MIPS_R15, > + PERF_REG_MIPS_R16, > + PERF_REG_MIPS_R17, > + PERF_REG_MIPS_R18, > + PERF_REG_MIPS_R19, > + PERF_REG_MIPS_R20, > + PERF_REG_MIPS_R21, > + PERF_REG_MIPS_R22, > + PERF_REG_MIPS_R23, > + PERF_REG_MIPS_R24, > + PERF_REG_MIPS_R25, > + /* > + * 26 and 27 are k0 and k1, they are always clobbered thus not > + * stored. > + */ haveing this hole here make all code more complicated. Does it hurt to have R26 and R27 in the list ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]