Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3432608ioa; Tue, 26 Apr 2022 03:39:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3/AjuDdqAJPMqzwBW82USK2Iv8hr7uCVLd0gfg7ZTu5sj49Oz4G97A2DfbSG7RTWe1aBm X-Received: by 2002:a50:d585:0:b0:425:c9db:cf26 with SMTP id v5-20020a50d585000000b00425c9dbcf26mr18282134edi.222.1650969559931; Tue, 26 Apr 2022 03:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650969559; cv=none; d=google.com; s=arc-20160816; b=Os/myTUYGt5Z673/fMJwO9Xq/XD4enT9so4g3vD8Oc0aAZLXvrCctaSy9jIMNeAEgR oPGD8Wr5qNtjiSYm6VQDORBgQpvWid+W4zZYs2pb3vSJF5cPGFH4IcwHh86ZzU4yBoxo 7KdFTJF8dPdv+cyoHZ6zxPCmDMbq18nNy3OMIh4vTI3tuzpdYADzlmtKWrna8imbacw1 LVKU42PSXrnG+uTh+8wtTxPBmmjs65uB9DekXcbx87hMxsm+qdtpJx0ewDQ63chC/NWT egpr+JihhFgBW55Wzc1o7TiUlRFe8ntlJa0mDzXZ+rL7BJ05Cpw67yIYrDWMLmal7tvf AdUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=RmkMQEtuuF5W703wmYoI9T443joVyqAv64FKB614qwA=; b=FYWSWEisjiz+RRlFi+C7XFSC9VOC5Bt/sKO22b2tyuDkmFaUYtQ8mUaXasHPgBa88o AtWJjcaAFHrILsML8e/TJh5e67EqTTPqqufoH0H1/L6IqK1Ogt6qh2XgQtP+gEc5cgFl KcZUeP3+zjnTyY7t10jP2Y9+qVlWTC4iGkM0//niq4rx5s9W1VSFjVJDPlZpCBYcZPB3 p2W4W3KQi/hOZWUDJpMCiHFa/uAg3Y4Bh5zQeKF2p3mtgm8Ma5zJtSXbd2x9seRi3+XU 0mg8wwKPFd70VgfMnMmWjQQWEbD/Uu2eJaymz3wHQxJS/EPxb7ji7BOz7OvM2X3PJeBZ YcxQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b2-20020a17090630c200b006e83fe14ac1si15838092ejb.554.2022.04.26.03.38.55; Tue, 26 Apr 2022 03:39:19 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236436AbiDYW0y (ORCPT + 99 others); Mon, 25 Apr 2022 18:26:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343578AbiDYVix (ORCPT ); Mon, 25 Apr 2022 17:38:53 -0400 Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 058643878A; Mon, 25 Apr 2022 14:35:47 -0700 (PDT) Received: from sslproxy02.your-server.de ([78.47.166.47]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1nj6Mz-0008B2-Gx; Mon, 25 Apr 2022 23:35:45 +0200 Received: from [85.1.206.226] (helo=linux.home) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nj6Mz-000Nev-21; Mon, 25 Apr 2022 23:35:45 +0200 Subject: Re: [PATCH 1/4] tools/bpf/runqslower: musl compat: explicitly link with libargp if found To: Dominique Martinet , bpf@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, KP Singh , John Fastabend , Yonghong Song , Song Liu , Martin KaFai Lau , Andrii Nakryiko , Alexei Starovoitov References: <20220424051022.2619648-1-asmadeus@codewreck.org> <20220424051022.2619648-2-asmadeus@codewreck.org> From: Daniel Borkmann Message-ID: <80728495-e1fe-21bb-9814-6251648f8359@iogearbox.net> Date: Mon, 25 Apr 2022 23:35:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.5/26523/Mon Apr 25 10:20:35 2022) X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,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 On 4/24/22 8:58 AM, Dominique Martinet wrote: > Dominique Martinet wrote on Sun, Apr 24, 2022 at 02:10:19PM +0900: >> After having done this work I noticed runqslower is not actually >> installed, so ideally instead of all of this it'd make more sense to >> just not build it: would it make sense to take it out of the defaults >> build targets? >> I could just directly build the appropriate targets from tools/bpf >> directory with 'make bpftool bpf_dbg bpf_asm bpf_jit_disasm', but >> ideally I'd like to keep alpine's build script way of calling make from >> the tools parent directory, and 'make bpf' there is all or nothing. > > Well, it turns out runqslower doesn't build if the current kernel or > vmlinux in tree don't have BTF enabled, so the current alpine builder > can't build it. > > I've dropped this patch from my alpine MR[1] and built things directly > with make bpftool etc as suggested above, so my suggestion to make it > more easily buildable that way is probably the way to go? > [1] https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/33554 Thanks for looking into this, Dominique! I slightly massaged patch 3 & 4 and applied it to bpf-next tree. I don't really mind about patch 1 & 2, though out of tools/bpf/ the only one you /really/ might want to package is bpftool. The other tools are on the legacy side of things and JIT disasm you can also get via bpftool anyway. Given this is not covered by BPF CI, are you planning to regularly check for musl compatibility before a new kernel is cut? Thanks, Daniel