Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3851379ybl; Mon, 26 Aug 2019 01:20:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxa4end7plSGPxTyBT9z9m4c+Uxy+eFHM1qhNAXvDKOjOyLaKIJoYYyz58LQuSXw/eif1u9 X-Received: by 2002:a65:528d:: with SMTP id y13mr2184516pgp.120.1566807631722; Mon, 26 Aug 2019 01:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566807631; cv=none; d=google.com; s=arc-20160816; b=baRfyc+Jh1l0v0fJ0Nf9uIo+x7HmDQtukI29oeBx9DhTdTxelqySPIrsY05uKoTy69 k2H3bdXIJob37U4IkfRj1+PKtz3uKAUlaXFaKc6KP0LTM5/M9XeuHqvUsAYL9RQfzMBK PiYTigHKkH/PcG9C5Rto/46pa+nCrBCVk5/pa1ECRFjOwi0Nr9GCCHMg/qvNEhMqXZ1C nWKvF8wWDtNKZ5Q15sK4v/EaI1LTnR2KwUYZvVpzd6c2iJq+qxTbM/aRyQ1bofpqojEX UR6sfHd350Z1hEJB7R/cmivzTzEjwUovWL4F+cI9D+oD1xvoETST3cYX/RwjqMScuLkS NZIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lIut4B8w/K6qaNO5//JKDXgxZBzz15ddgNf2zVVfQ1E=; b=V3wtdsS3t0tUnD5ZPJUol7U+VIBviC2fut6Pzzkih47N8pqltJnIe9z5OAHEVhUTJn MhD+5AF1ZjWqZ6UR0gdjwr1iyCzPp9arYnm5A4atDInBqCxMAPeAZDoBgvjtyOcNjUh8 lg6N/eRN/ujsVmuCpJaxqUAxvAgZIBXxldSTwE+slmJ5y0dnlszD+xys8m4QeGPW6vul kpNQEkrEXLJWT320YSAxShT8l+sBrvy/rdUL1X3SGgKkuJ2AtFDaJzpv97+6C7otkzaB K6WLb5UMlWcwRzO9uBEx9lGJqi9mMy2fhzr161/XK1PnFBhvcE9Owi+okzR7Rgc7fUYK rneg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=f6XJLfxe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si8933248plw.379.2019.08.26.01.20.16; Mon, 26 Aug 2019 01:20:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=f6XJLfxe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730263AbfHZHmt (ORCPT + 99 others); Mon, 26 Aug 2019 03:42:49 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55080 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728198AbfHZHms (ORCPT ); Mon, 26 Aug 2019 03:42:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lIut4B8w/K6qaNO5//JKDXgxZBzz15ddgNf2zVVfQ1E=; b=f6XJLfxeBVv9Hyb0B1vtj9oxL i8iw5LMMkKhG+T6Xu47kb2+iCLpMrKBQjXS1NBw74AP7B3pgxUBsbndSWQGizhRtNCAgW99j5+OeI c+T+1uJAk4oCoRSmOm0NE/wm6iL8VH+qSfESDzvXkGeSKy+GyCJWsD5r3LnItvz8EK4g8tAXBgRgi JMSMaRtxN+OddwD4UaHD/oWS7Za8/f15E/5LTf3nBtMiL8X2OQpSYRhvIozCuZOKt/2bBeTu5XD5k MSr7q1wHFvaw9hwCCzoDKZY0xDJWDWNsCSapSfqxfwjWoZuh5bxf2qBIOtw+RF3Jx2EN1us7T239k nCed49xqA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i29dr-0004v1-6h; Mon, 26 Aug 2019 07:42:19 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 3BB083075FE; Mon, 26 Aug 2019 09:41:42 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9740120B33552; Mon, 26 Aug 2019 09:42:15 +0200 (CEST) Date: Mon, 26 Aug 2019 09:42:15 +0200 From: Peter Zijlstra To: Changbin Du Cc: Steven Rostedt , Ingo Molnar , Jonathan Corbet , Jessica Yu , Thomas Gleixner , x86@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH 03/11] asm-generic: add generic dwarf definition Message-ID: <20190826074215.GL2369@hirez.programming.kicks-ass.net> References: <20190825132330.5015-1-changbin.du@gmail.com> <20190825132330.5015-4-changbin.du@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190825132330.5015-4-changbin.du@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 25, 2019 at 09:23:22PM +0800, Changbin Du wrote: > Add generic DWARF constant definitions. We will use it later. > > Signed-off-by: Changbin Du > --- > include/asm-generic/dwarf.h | 199 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 199 insertions(+) > create mode 100644 include/asm-generic/dwarf.h > > diff --git a/include/asm-generic/dwarf.h b/include/asm-generic/dwarf.h > new file mode 100644 > index 000000000000..c705633c2a8f > --- /dev/null > +++ b/include/asm-generic/dwarf.h > @@ -0,0 +1,199 @@ > +/* SPDX-License-Identifier: GPL-2.0 > + * > + * Architecture independent definitions of DWARF. > + * > + * Copyright (C) 2019 Changbin Du You're claiming copyright on dwarf definitions? ;-) I'm thinking only Oracle was daft enough to think stuff like that was copyrightable. Also; I think it would be very good to not use/depend on DWARF for this. You really don't need all of DWARF; I'm thikning you only need a few types; for location we already have regs_get_kernel_argument() which has all the logic to find the n-th argument.