Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2079135ybb; Thu, 2 Apr 2020 12:40:37 -0700 (PDT) X-Google-Smtp-Source: APiQypKi9LnRUFZKXeWdRh9AdTgZGQo1Ph4gyntqbKG53myRZdRx4x9zV5P+uX6bsHJJ8ARetiIi X-Received: by 2002:a9d:414:: with SMTP id 20mr3839260otc.300.1585856437430; Thu, 02 Apr 2020 12:40:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585856437; cv=none; d=google.com; s=arc-20160816; b=sM5N8JmLcOUSFwIGsplefSsJBJqmfcDzfXcqSrAinqoE9isr6WSmeKD5Ya46mE8PGg MggwX5uDO64kxYyB4PMkBJNnAJc68vTMRRvuf57wis2+xaNkXtpxku+NugqC+1Nh3PmC nj5PMwaOJfQ1YdTlaGoiaXovRE67NZAKL3LyoEQyg/cO6b8XG/9UzWWTq79S2gfI2UXo /zvPajmV/aDkMNH2bBmuzZbaf96oSpvPsc2WplmAVQO90p6J62kiDXUlQk24XVPDAQ4S orJQwbBgXPRUnsm1ilRwszu9XUw9Xh3Xhw+hxoTwox41J4uSchUSnSFSaN+YKzj1K5Xr IcOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7I6mCCWO0NI2W9Hv1j2ODnDFaCT13IrYKH20fIeShyM=; b=K6N9YBVDfL4ogpVOVS9vZC14lYojvlU0VeredlQe75f/KtMXsV3KfTsPGE2HRl+jvV n+yxYv8s2FjxrrwH5T1YmKWzKBUJI5mfJ/4nU4LWCdGZBCICOMQdFZT8ImntEh8fLMpB Ax2RqRrYsBghbJ9n7PPeYiHLaC/EfBuwHkCocM2mWFjd9swjQwkIPIlzNEHIuHkBlvXc FgdS2wAvH+f6rRnu2GEeo1fCyhAtIvGAqkExe3MsvY4CZ8mGrsVJH47ZvECRYIqZ5Ug3 Xo7RajnVyuTx1EWknfZVuj6N9LVqe/zE+WY+FUe8OO4Fz1dmdcBdBfGU8umBcj7q8L8y /K/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qtiL8TpB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si2585398oiw.205.2020.04.02.12.40.25; Thu, 02 Apr 2020 12:40:37 -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=pass header.i=@gmail.com header.s=20161025 header.b=qtiL8TpB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390050AbgDBTbu (ORCPT + 99 others); Thu, 2 Apr 2020 15:31:50 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:40194 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389108AbgDBTbt (ORCPT ); Thu, 2 Apr 2020 15:31:49 -0400 Received: by mail-qk1-f193.google.com with SMTP id l25so5406980qki.7; Thu, 02 Apr 2020 12:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7I6mCCWO0NI2W9Hv1j2ODnDFaCT13IrYKH20fIeShyM=; b=qtiL8TpB80vLSxlF06cwi699QC+hLcU4dTsjnFf39v34jsBq6n0YTbCvrIiysheT5e 0iDCSMRVYq48fkYuwf7bD68+pxz7nQ74cvtLS3nYaJvZ/0obYVA+yCpyTHkq7mg+SMkQ 8f1FSy+tnNukU5h6Ew2OMmoz4LRVMG1Hy91BKk6TaIta7EWlN7Im+cdyphWu6CHElvxQ DI6YuEBFoXYi0/2CuK1IpIDQrK2TiGauWUnjjcXO3tbCTNXIgzwz0uY+weQQYLLwH4qV HMR0Up/BJT+QPMlycRANAHWJQePSQ3f0ZrLLcHFbcQdmKZVoe2t3s0mBEG/syw612Eko iu4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7I6mCCWO0NI2W9Hv1j2ODnDFaCT13IrYKH20fIeShyM=; b=iO1TQrhKCdF/9JFs2YDL9/No7/v6XhhhpIyEAYXS8pGNyk/CAzbzxZNA6zhW5b53+m j9MVAs49Glfx3KDHds3uGBCqrl9lc5QRk9LQUzDchlcd8E2qyf5qPlgJoZlGKX+omwY7 jLigLxRBYyfVWdIt4Vv5e/2qeqr1RlslH6p0bfPKFoyvHigfC9wKkJKjKjMLyS6ol22F 5TuwkZ0G/v9sAqG5eT5cXeufqpxav238zinQOK4uckvb0zRjOvzG7dpg+tke8dUzW2a0 5yk4sKCyc2qF/FPUDzKXCvFidatSFjuF/081XOOlXXN+/njRtCqk4xWeMvWX5ccbHtM3 PgIQ== X-Gm-Message-State: AGi0PuZ/8R61U06U7cm9WlGbf1ENSomLLiyjCQl6fi0u1Y2icIkbeLXH Cf0mdOWrL1zDBuFmxiClm/qsjEXx0NyOnGHW7e4= X-Received: by 2002:a37:6411:: with SMTP id y17mr5397810qkb.437.1585855906945; Thu, 02 Apr 2020 12:31:46 -0700 (PDT) MIME-Version: 1.0 References: <202004010849.CC7E9412@keescook> <20200402153335.38447-1-slava@bacher09.org> In-Reply-To: From: Andrii Nakryiko Date: Thu, 2 Apr 2020 12:31:36 -0700 Message-ID: Subject: Re: [PATCH v4 bpf] kbuild: fix dependencies for DEBUG_INFO_BTF To: Slava Bacherikov Cc: Andrii Nakryiko , Kees Cook , bpf , open list , Jann Horn , Alexei Starovoitov , Daniel Borkmann , Kernel Hardening , Liu Yiding , kpsingh@google.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 2, 2020 at 8:40 AM Slava Bacherikov wrote: > > > > 02.04.2020 18:33, Slava Bacherikov wrote: > > + depends on DEBUG_INFO || COMPILE_TEST > > Andrii are you fine by this ? I think it needs a good comment explaining this weirdness, at least. As I said, if there is no DEBUG_INFO, there is not point in doing DWARF-to-BTF conversion, even more -- it actually might fail, I haven't checked what pahole does in that case. So I'd rather drop GCC_PLUGIN_RANDSTRUCT is that's the issue here. DEBUG_INFO_SPLIT and DEBUG_INFO_REDUCED look good.