From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EI/6C/wmA1+PbQAA0tVLHw (envelope-from ) for ; Mon, 06 Jul 2020 13:28:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +JvSB/wmA1+GJAAA1q6Kng (envelope-from ) for ; Mon, 06 Jul 2020 13:28:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 80CEA940220 for ; Mon, 6 Jul 2020 13:28:27 +0000 (UTC) Received: from localhost ([::1]:44932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jsRAX-0000L7-1T for larch@yhetil.org; Mon, 06 Jul 2020 09:28:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsR9C-0006EY-Qz for guix-patches@gnu.org; Mon, 06 Jul 2020 09:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50479) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jsR9C-000229-GA for guix-patches@gnu.org; Mon, 06 Jul 2020 09:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jsR9C-0006Mz-9I for guix-patches@gnu.org; Mon, 06 Jul 2020 09:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42227] BPF in linux-libre Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 06 Jul 2020 13:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42227 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: John Soo Cc: 42227@debbugs.gnu.org X-Debbugs-Original-Cc: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159404198124430 (code B ref -1); Mon, 06 Jul 2020 13:27:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Jul 2020 13:26:21 +0000 Received: from localhost ([127.0.0.1]:33792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jsR8W-0006Ly-Iz for submit@debbugs.gnu.org; Mon, 06 Jul 2020 09:26:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:34330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jsR8S-0006Lp-TU for submit@debbugs.gnu.org; Mon, 06 Jul 2020 09:26:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsR8S-0004qv-GC for guix-patches@gnu.org; Mon, 06 Jul 2020 09:26:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54769) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jsR8R-0001wK-Td; Mon, 06 Jul 2020 09:26:15 -0400 Received: from lfbn-ann-1-356-169.w86-200.abo.wanadoo.fr ([86.200.73.169]:40048 helo=meru) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jsR8Q-0006Qt-P7; Mon, 06 Jul 2020 09:26:15 -0400 From: Mathieu Othacehe References: <44046537-51AD-4BD7-8442-41738C4D8C98@asu.edu> <87lfkqknla.fsf@gnu.org> <87h7vdd6ms.fsf@asu.edu> <87wo46uhdr.fsf@gnu.org> <87zh8wph7h.fsf@asu.edu> <87wo3uxfrq.fsf@gnu.org> <871rlsegf2.fsf@asu.edu> <87h7umjruz.fsf@gnu.org> <87zh8dlbeu.fsf@asu.edu> Date: Mon, 06 Jul 2020 15:26:11 +0200 In-Reply-To: <87zh8dlbeu.fsf@asu.edu> (John Soo's message of "Sun, 05 Jul 2020 17:44:41 -0700") Message-ID: <87d0587p1o.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: jtTRV0K6uEk+ Hey John, > I think I tidied up the description to match the Guix situation. What do > you think now? Yes it's fine, thanks for the updated serie! I pushed the first patch and patches two and three squashed together. > I could see it being a useful default. BPF seems like a nice technology > but I am making these patches to experiment with it myself. Because I > haven't used it much I can't really speak on the pros of making it > default. Other than my gut feeling that seems like something that > should be opted into rather than opting out of I have no strong feelings > on including it by default. The only other downside I see is that > putting in the default might make the linux definitions less composable. > The way it is now, one can assemble a (mostly) bpf-capable system from > the pieces in gnu/packages/linux.scm. Ok, thanks for explaining. I don't have much experience with BPF either. For now we can work with a separate linux-libre, and will see about merging it into the default, when we'll have more perspective. I'll take more time to review patches 4 and 5. However, while trying some of the examples packaged by BCC, I have the following error: --8<---------------cut here---------------start------------->8--- mathieu@meru:~/guix-master$ /gnu/store/rv51f9n1w9i92m9qsg9k3ilsy3hyhjf3-bcc-0.15.0/share/bcc/tools/execsnoop Traceback (most recent call last): File "/gnu/store/rv51f9n1w9i92m9qsg9k3ilsy3hyhjf3-bcc-0.15.0/share/bcc/tools/execsnoop", line 21, in from bcc import BPF ModuleNotFoundError: No module named 'bcc' --8<---------------cut here---------------end--------------->8--- I think an additional wrapping is necessary. Could you please have a look? I'm also removing help-guix, and opening a proper guix-patches ticket. Thanks, Mathieu