Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4268931rwj; Tue, 20 Dec 2022 08:04:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf7OjXQSJOdJMJCNgR97hUp2LbE8rFZdiakgQdpdq4HSm7bjmqz/LhvtTBTvFDPAnUDO4N4n X-Received: by 2002:a17:902:d18b:b0:18f:8f1d:2352 with SMTP id m11-20020a170902d18b00b0018f8f1d2352mr34764706plb.30.1671552248428; Tue, 20 Dec 2022 08:04:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671552248; cv=none; d=google.com; s=arc-20160816; b=iXUAuTYAU9e1pQYjRdCEqjkVGc1AXZTAgbAG4la0Wxx6Vbo6ej3SFvx8qFTIPcGpBs DCc6zM4/UyTTvXqrRkfGTo/UldwYIofM1lnh0srwMOSxbPzpvN67uyxLHmEsFaj8Ev0R A8M15YnOEYCASw4NpSOl+0oiR0DXHro4M6yKSyzA+2WZsELKi9VTMSZjrt/8seOaXpUr euZ9Xc0ixsn8yIwLL7SJ+qw/raR0djZrr0mzxTyibaEYRcnwWQZQIYTtQfz+xHUOG97M sSPmQqQ7Tfdi6DKwV0jKn2WVEQJPRR1mfTk/h+oanBhcIpgQbr+VZGU+L7qvxVrbH1y7 ZVSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=/34tJIyjAP7baqWGpngAiiqvT8UHp3bz8kKbMzeEnfA=; b=FUN7KTNfSTSkn0I1SyfzXdbkOXqJQfS1m6Z0V2/4ZHDpq01NMa2Vd4PxRe3rDjOv/5 s/0S2Q6Q69oYYnDbtfo2yaevCKhYkpEdZzlhM77k8WPyjpf78DL7VhuQ48feV776U87v +3t4/bE/EWyteEP7ORVU8A7mfFdYhWI8Fm+DkdcCxCMjkAguesNGtSFpmnyJqyRkZmYk MQl+lesHdY9cZzM2ko/SpyJGZpVHyPzc8Y4nwYmJFPz7z2pLfhoPZ2o0qisy8OYhfHT7 AIeWIJNLudzA235TRmPVNpcWuHavm3Xlph6S544uSbzUVEd8S/zjEA45XFgbmHkd1DJ/ 9M8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@isovalent-com.20210112.gappssmtp.com header.s=20210112 header.b=14PCLWLv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=isovalent.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d20-20020a170902c19400b001866341b823si13274775pld.322.2022.12.20.08.03.58; Tue, 20 Dec 2022 08:04:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@isovalent-com.20210112.gappssmtp.com header.s=20210112 header.b=14PCLWLv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=isovalent.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229703AbiLTPim (ORCPT + 69 others); Tue, 20 Dec 2022 10:38:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbiLTPii (ORCPT ); Tue, 20 Dec 2022 10:38:38 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DCD2B34 for ; Tue, 20 Dec 2022 07:38:37 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id v124-20020a1cac82000000b003cf7a4ea2caso11397859wme.5 for ; Tue, 20 Dec 2022 07:38:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isovalent-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/34tJIyjAP7baqWGpngAiiqvT8UHp3bz8kKbMzeEnfA=; b=14PCLWLvyaoEwZR603D8HJggj8rZdeGLGfIE/VDYssMSht2WCH/1E7Kt5QWRr9n9EY TcF6F7/j6gsa/ZDHUWgrEuGVeurxWoywI5LwqgeHyXSNeB+aM1PomKtmFiVrJY9iFCax 0ChwJRiihnKqrwx9JLYyjh0jMK8zvF1LjM/bgN9KuDDWDdhHaA3V6QlIsC+3/X2MTeCS YvmbF0MN8Zrd5CZaZDQiMB5R60hbYtoIn3jsJM4Vwq9Dk3R0uItZc7qOCtvqwuEVQ4mv OfCq3VUlOMrFqCKovJ8HiF0YE/8hgNWYgoFFJ2tp0d8NK65qxBT9cSF5pVj981pywgSc fpaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/34tJIyjAP7baqWGpngAiiqvT8UHp3bz8kKbMzeEnfA=; b=1ZDIfSjl43O5J+9Edqii55jmg5kObgT3c9ob90PLmTvbhlkIyWMX+jWhY7Zonwucqa V80QQ7gefj+8zQuV8hoMkEwTDJMEMpqTMVd9oHI9T1I2eDzWRNZJq9UWSFt1JrFWL/O/ 9iuQ1QQDxRjObwBChw1NM37DAikHL7AeWxecvE1tBf2Fi0shsFItqqno3A4aoNNqQBOJ YHtRROfF8T/lozALTZq9Z/oJTL4UwbX+T1gUjwbhum3MVRX9UwtiO3IJYHHSaKfRrO/C y+cFCbGofPxM2nWVzeyzg8ZcrHQF0eQxUeBfXqJObIf2iy3lzmdeR9Xpz3FQrXPkEhkV kQ9A== X-Gm-Message-State: AFqh2koMxsbJ/bWtcW8SlPc2pqF+B7iIxEg+TG1Z2M4ZVdCs/q+qu9nE jXd4w5eGXLPDlSqqQRmzQUu/aw== X-Received: by 2002:a05:600c:54ed:b0:3d3:3c74:dbd0 with SMTP id jb13-20020a05600c54ed00b003d33c74dbd0mr14531267wmb.13.1671550715837; Tue, 20 Dec 2022 07:38:35 -0800 (PST) Received: from [192.168.178.32] ([51.155.200.13]) by smtp.gmail.com with ESMTPSA id p13-20020a05600c1d8d00b003d01b84e9b2sm16544121wms.27.2022.12.20.07.38.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Dec 2022 07:38:35 -0800 (PST) Message-ID: Date: Tue, 20 Dec 2022 15:38:34 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v3 2/2] bpf: makefiles: do not generate empty vmlinux.h Content-Language: en-GB To: Changbin Du , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Shuah Khan Cc: Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , Alexander Shishkin , Namhyung Kim , Mykola Lysenko , linux-perf-users@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20221217223509.88254-1-changbin.du@gmail.com> <20221217223509.88254-3-changbin.du@gmail.com> From: Quentin Monnet In-Reply-To: <20221217223509.88254-3-changbin.du@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2022-12-18 06:35 UTC+0800 ~ Changbin Du > Remove the empty vmlinux.h if bpftool failed to dump btf info. > The empty vmlinux.h can hide real error when reading output > of make. > > This is done by adding .DELETE_ON_ERROR special target in related > makefiles. > > Signed-off-by: Changbin Du > --- > tools/bpf/bpftool/Makefile | 3 +++ > tools/testing/selftests/bpf/Makefile | 3 +++ > 2 files changed, 6 insertions(+) > > diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile > index 787b857d3fb5..313fd1b09189 100644 > --- a/tools/bpf/bpftool/Makefile > +++ b/tools/bpf/bpftool/Makefile > @@ -289,3 +289,6 @@ FORCE: > .PHONY: all FORCE bootstrap clean install-bin install uninstall > .PHONY: doc doc-clean doc-install doc-uninstall > .DEFAULT_GOAL := all > + > +# Delete partially updated (corrupted) files on error > +.DELETE_ON_ERROR: Acked-by: Quentin Monnet Thanks!