Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp995804img; Thu, 28 Feb 2019 11:11:34 -0800 (PST) X-Google-Smtp-Source: APXvYqyxjeM3yWyuRXT+5NfUNjV4ZFqy1pvh+uNdG02d0Sj4IfwNsE1itejVhhoaDKIpY/hZubHh X-Received: by 2002:a63:4f58:: with SMTP id p24mr667277pgl.283.1551381093993; Thu, 28 Feb 2019 11:11:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551381093; cv=none; d=google.com; s=arc-20160816; b=suVbhSv2dcge7nH/7UgJvcNyUt2PnmeyjXd4xnuK6Wc3T1o2LB7vviQBub5Iub5DQT MqoGTLHXWuwDgIT36J0PyQPwT4aJAc2G6oXUJBwKIEPTO1v2r4k6it8E9LivJVMtM3/7 9SzvBp3mDlPnik8Tnk3gqMsnEcBATzZWde+vnEMg2FEZql2xj+VyPQM9Jm3AUOU44YIg JtMlmssflHqS1b3IEVPPj83zTW3ut71wWqZA2JUNiutZc6sE9NbIB67P2jjWlRVFZkzV p4h6a32wGPCtKFDWWtRIpgQuGkWavInuIjLEiZCXvRRh5MwBz8h2df1/QFaQNqVqcbUX FINw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+TfQWGMGs5ObBJodcOfCCLLfPFDT3yxUHkAF1a8U5pg=; b=NzgSCoisT58D5qvQSbPEJnz3O6ne/gCm0DmEomQw9VTUx2cbWDaREeeXKWKb3G9tF3 TTwKnFd6JGpQF9T7VlMwhOPjZdSlA/B++a6bHrF3qIemD6A0XpdkH94H66ICHrqkEKV4 Xb2m9+12zZ0/KuMaig2Df2le/kOWfRz/rTYhd/YpwRARJZPbqqCf9i4xpUz8KymLwB/J mrJg+zCWkpb7aetT5+nLIO1NBepX9+N24oe69qvkIkHVvtRghleEYLhbPDDOgBILa9VQ DqQCCkWMMqZ9hUcCWWXpDqrQ7sWySiLbUGlg72s+o0mYz6+BRgF5BrVmVw6jz0NiEz5i +HpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=l5RZhBdl; 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 g6si17920593pgk.478.2019.02.28.11.11.15; Thu, 28 Feb 2019 11:11:33 -0800 (PST) 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=pass header.i=@joelfernandes.org header.s=google header.b=l5RZhBdl; 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 S2387439AbfB1TKl (ORCPT + 99 others); Thu, 28 Feb 2019 14:10:41 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:34117 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733276AbfB1TKj (ORCPT ); Thu, 28 Feb 2019 14:10:39 -0500 Received: by mail-qt1-f194.google.com with SMTP id w4so24899681qtc.1 for ; Thu, 28 Feb 2019 11:10:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=+TfQWGMGs5ObBJodcOfCCLLfPFDT3yxUHkAF1a8U5pg=; b=l5RZhBdloG5SnuEpC7J80qco08NL6zfZAxkTcaznq32CSbl1Fl6HOIZVB1gb1Ig5GQ jfTPJz7YCH03JwzA0V2LbbykTqcoCFl5npJinI6Sap8KFNy9Q2Wl2JLj60qIBeQR3RsG IShrGDzKjjlNM3Uu7Z0Ze64W0J0mLEhX/+Uec= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=+TfQWGMGs5ObBJodcOfCCLLfPFDT3yxUHkAF1a8U5pg=; b=ppn3TLYPCWrtVdslD11Kuhgv7WMByHK4y0sNloQJqzpJ/MnTyi/U9vJSumVfxy54Nh kEJbkDg8RlbE1CiTQ02sToMj9EqVcbfPsmDlbO3tDPuGfxswUf6A0WM0v9e2Stl8dDtr pDSpNeuE8KvqVs44Cb0BmGMEpA1CZclxQ4R/SLUUHboWADO29mWoevQwaVtcLBuuZybk 4yS1dagNNuueUt1Bfro4benbd8HO9i3xcrKnsKBcidaOf4nS8hjJ+KNNcIF5wOgaWFaO ht7OSe6xguAL1NnBXBNRVTmQfA6LT6dcXWSkOWgGxbmTh329dBf+fH0XttLnLwhyVemc iaGg== X-Gm-Message-State: APjAAAVxd3a1D/yvB40KWJ8xQ74yVWEEpu+8kaqKpgAgLBf1mUKFMJbS Pi37OF07jtfEehyE1Jj2cM1LCw== X-Received: by 2002:a0c:d121:: with SMTP id a30mr657202qvh.0.1551381038318; Thu, 28 Feb 2019 11:10:38 -0800 (PST) Received: from localhost ([2620:0:1004:1100:cca9:fccc:8667:9bdc]) by smtp.gmail.com with ESMTPSA id n21sm11413235qtl.97.2019.02.28.11.10.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 11:10:37 -0800 (PST) Date: Thu, 28 Feb 2019 14:10:36 -0500 From: Joel Fernandes To: Dietmar Eggemann Cc: Qais Yousef , linux-kernel@vger.kernel.org, Andrew Morton , ast@kernel.org, atishp04@gmail.com, dancol@google.com, Dan Williams , gregkh@linuxfoundation.org, Guenter Roeck , Jonathan Corbet , karim.yaghmour@opersys.com, Kees Cook , kernel-team@android.com, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-trace-devel@vger.kernel.org, Manoj Rao , Masahiro Yamada , mhiramat@kernel.org, paulmck@linux.vnet.ibm.com, "Peter Zijlstra (Intel)" , rdunlap@infradead.org, rostedt@goodmis.org, Shuah Khan , Thomas Gleixner , yhs@fb.com Subject: Re: [PATCH v3 1/2] Provide in-kernel headers for making it easy to extend the kernel Message-ID: <20190228191036.GA203889@google.com> References: <20190227193748.132301-1-joel@joelfernandes.org> <20190228135343.23kzkilig3bsioov@e107158-lin.cambridge.arm.com> <20190228144759.GA156098@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Thu, Feb 28, 2019 at 05:04:59PM +0100, Dietmar Eggemann wrote: [...] ^ > kernel/kheaders_data.h:1:1: note: in expansion of macro ‘KH_MAGIC_END’ > KH_MAGIC_END; > ^~~~~~~~~~~~ > kernel/kheaders.c: In function ‘ikheaders_read_current’: > kernel/kheaders.c:38:12: error: ‘kernel_headers_data’ undeclared (first use > in this function); did you mean ‘kernel_headers_data_size’? > kernel_headers_data + KH_MAGIC_SIZE, > ^~~~~~~~~~~~~~~~~~~ > kernel_headers_data_size > kernel/kheaders.c:38:12: note: each undeclared identifier is reported only > once for each function it appears in > kernel/kheaders.c: In function ‘ikheaders_init’: > kernel/kheaders.c:31:10: error: ‘kernel_headers_data’ undeclared (first use > in this function); did you mean ‘kernel_headers_data_size’? > (sizeof(kernel_headers_data) - 1 - KH_MAGIC_SIZE * 2) > ^ > kernel/kheaders.c:57:23: note: in expansion of macro > ‘kernel_headers_data_size’ > proc_set_size(entry, kernel_headers_data_size); > ^~~~~~~~~~~~~~~~~~~~~~~~ > kernel/kheaders.c: In function ‘ikheaders_read_current’: > kernel/kheaders.c:40:1: warning: control reaches end of non-void function > [-Wreturn-type] > } > > > The reason for me to stay on v4.20 is that with v5.0-rc8 I don't have ebpf > 'raw tracepoint' support any more on my arm64 board. But this issue is not > related to your patch though. I'm glad mainline fixed your issue though as you said in the other thread ;-) I will refer to your email here later when doing backports if I hit the issue. > Another point which supports the functionality your patch provides is the > fact that maintainers don't want to see new TRACE_EVENTs in their code. So > here your patch comes handy when using ebpf for tracing in embedded > environments. Yes, I agree. One can also use the series to build custom kernel modules which can also contain tracepoints in their own right. Glad you also find it useful. I will CC you on it for next spin. thanks, - Joel