From patchwork Tue Nov 29 13:42:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Changbin Du X-Patchwork-Id: 13058574 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65AE8C46467 for ; Tue, 29 Nov 2022 13:42:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233961AbiK2Nml (ORCPT ); Tue, 29 Nov 2022 08:42:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235082AbiK2Nmg (ORCPT ); Tue, 29 Nov 2022 08:42:36 -0500 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ECEA1A6; Tue, 29 Nov 2022 05:42:32 -0800 (PST) Received: by mail-pg1-x52e.google.com with SMTP id h193so13020965pgc.10; Tue, 29 Nov 2022 05:42:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DxRUZ2jEWiw6HK0oQ5GGMn2fmZj+o0TEDQ1eNMlf4Ik=; b=dzUA9sKyDF9OoQ+ug4D9nMG5RgGUGRP/pBnDPatsVJ+7U3JG11wUiXy6bvUpEuk3Yo 8dEbvowJGBvOxG7oztP2is33RQ33nDX0GuRZBRASoN3f7crlTSI81M/SDdGtNYncydvL xYX9wU7ivtNMe9k1uSjaAHkIarg/i96HLuxSQcouO0tIy0HGGX7YxJfDwzEiL7EUfHvR C8tUBgvtV3OZk/K1v7rAIt0diI3pWU/HgD1cs70LAEaFQ+hQCUobWksYYlWcpz325zSV AQf9ie6JqkdIwVBh/tOwEx5Tc3a5hmmOXaOI8tXW8lTet4ZxvVqN27AmXI4pNffrA/Ur h/TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DxRUZ2jEWiw6HK0oQ5GGMn2fmZj+o0TEDQ1eNMlf4Ik=; b=4TgnUsFti09he1Zerxje+M0PK/LKWUUzNzX+u8Je/OiqyHTqEYz1m8Dbd63tHZjVu1 Kgd5rX7M8h5iRNUavBtu3x1U9yJFG7WltJcURZNOV1gkA+nlb3IsOlOYwioVT5/06NK4 W12+t1K0RDx8sxHzJSxX1HSvoc6wTwr9ejKfiVKiiNcQxj84LsT6UsY3i8lXsxUHUE5u mBX5sFx5PvE+IH7ouewyq97ble2Pxp1VNd8lVVErOQiqwB/hH2pNTDzykXpm6ksgNcEF ffVYQ+sYUJ9k3klbKrB86ljP6KsckePF9nWlxYWpaifvZZwt4LPkFTBJJiNDWoIj/HRy oGwQ== X-Gm-Message-State: ANoB5pkagh5VgEJhCIZhAfT5kCWgdVteZlBjtOT535gXYJpfCXrAksXY 0L6R0ANxrYTutiJXIeOwvTI= X-Google-Smtp-Source: AA0mqf7evwkAd5Nd7XTUTtVhAKR3Gd+LPQ71CHiPlcQXSeTnlVGiWRu4ZcIXc6SKJjH5JYu/q0qY3Q== X-Received: by 2002:a63:e4a:0:b0:477:6cd0:9a04 with SMTP id 10-20020a630e4a000000b004776cd09a04mr38141363pgo.433.1669729351325; Tue, 29 Nov 2022 05:42:31 -0800 (PST) Received: from WRT-WX9.. ([103.135.102.183]) by smtp.gmail.com with ESMTPSA id z5-20020aa79f85000000b005636326fdbfsm9977154pfr.78.2022.11.29.05.42.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 05:42:30 -0800 (PST) From: Changbin Du To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Quentin Monnet , 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, Changbin Du Subject: [PATCH v2 0/2] bpftool: improve error handing for missing .BTF section Date: Tue, 29 Nov 2022 21:42:15 +0800 Message-Id: <20221129134217.52767-1-changbin.du@gmail.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org v2: - remove vmlinux specific error info. - use builtin target .DELETE_ON_ERROR: to delete empty vmlinux.h Changbin Du (2): libbpf: show error info about missing ".BTF" section bpf: makefiles: do not generate empty vmlinux.h tools/bpf/bpftool/Makefile | 3 +++ tools/lib/bpf/btf.c | 1 + tools/perf/Makefile.perf | 2 ++ tools/testing/selftests/bpf/Makefile | 3 +++ 4 files changed, 9 insertions(+)