From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OI6ZMfgn7WLaRgAAbAwnHQ (envelope-from ) for ; Fri, 05 Aug 2022 16:23:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IHm4MPgn7WKGLQEAG6o9tA (envelope-from ) for ; Fri, 05 Aug 2022 16:23:52 +0200 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 3F9351547B for ; Fri, 5 Aug 2022 16:23:52 +0200 (CEST) Received: from localhost ([::1]:58054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJyEx-0006Ql-Eb for larch@yhetil.org; Fri, 05 Aug 2022 10:23:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJyAI-0001cr-Jp for guix-patches@gnu.org; Fri, 05 Aug 2022 10:19:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJyAI-0005LU-8t for guix-patches@gnu.org; Fri, 05 Aug 2022 10:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJyAI-0003vA-5P for guix-patches@gnu.org; Fri, 05 Aug 2022 10:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56962] [PATCH] gnu: Add perf-tools. Resent-From: Olivier Dion Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Aug 2022 14:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56962 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: 56962-done@debbugs.gnu.org Received: via spool by 56962-done@debbugs.gnu.org id=D56962.165970912815045 (code D ref 56962); Fri, 05 Aug 2022 14:19:02 +0000 Received: (at 56962-done) by debbugs.gnu.org; 5 Aug 2022 14:18:48 +0000 Received: from localhost ([127.0.0.1]:60196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJyA4-0003ub-2x for submit@debbugs.gnu.org; Fri, 05 Aug 2022 10:18:48 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:57177) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJyA1-0003uK-Rr for 56962-done@debbugs.gnu.org; Fri, 05 Aug 2022 10:18:46 -0400 Received: from localhost (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 275EIY4L004081; Fri, 5 Aug 2022 10:18:39 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 275EIY4L004081 In-Reply-To: <87k07mx3n3.fsf@gnu.org> References: <87k07mx3n3.fsf@gnu.org> Date: Fri, 05 Aug 2022 10:18:34 -0400 Message-ID: <87tu6qpydh.fsf@laura> MIME-Version: 1.0 Content-Type: text/plain X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Fri, 5 Aug 2022 14:18:34 +0000 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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" Reply-to: Olivier Dion X-ACL-Warn: , Olivier Dion via Guix-patches From: Olivier Dion via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659709432; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=3bIOaFOZVClnOS/aqPc7iuhtTbCaR1H7WBQB0x8Ea3U=; b=ap0xhohUHxSprj0j8BDjX2TQJW+UevN4DFr26bryEbNw2chTx4Wje+ZxK6wPC6sz2KS6eR 6gvKhymID2BFEsob9+PRyIT4MPMCY1Uwx9PUqKYFc4FAv/I/FYGqouFKOBf+A0RjFihlQD 0fMKrfaVzs1VgoVyJ2tmhzTYUV8TBE3alnrHZFuqhZzylk5hED6gQM4xQW02cELCyoA7NS bt4MKphzlZ60qxBGgT5YM2+3LtML6HbPRXZqdd9DlFSX8Ge3j5J4UWU2VRNr7F9vyoSj+k tyoJgJ16JcinRopYujEv+xWXTgSAtNYevvOA2wruV6ZaU1FXS7SDauMiwlXK2w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659709432; a=rsa-sha256; cv=none; b=D0V+QJyy9DdmgnXk5MqWMmvkvu4sBv23NW7i1VqI9+kp5l8hzNY4HJDt4Z0i9ZKyh1G3Jj hemZQBwJ2+jvgVFKttIQurRKCs/kofu4mEF7+9VKzm65Mb4sqtv+xGM/4RPgv76pFpCi1U tlmg9084L6HDw1OgV5TNL+cmGY88TYQENi4HSSU8iQpBL481KlkIhp1LHxnqyu8t2Nl4Dd WBOf+zenuNUS1pu4/jab9CwAm35+gsX+Lnlo1PlDLPXcI3QGKXQeL6JC0LSNFs/f8aShY4 LD4xPFAmpuC28abFpPtWOpVw8JqEOq4X9V/R817EWERxyj+9FdTyMsp7D6kHxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.60 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3F9351547B X-Spam-Score: -1.60 X-Migadu-Scanner: scn1.migadu.com X-TUID: A8BeWysIOYY9 On Fri, 05 Aug 2022, Mathieu Othacehe wrote: >> * gnu/packages/instrumentation.scm (perf-tools): New variable. > > Nice one. It looks like execsnoop is not working here, any idea why? > > --8<---------------cut here---------------start------------->8--- > mathieu@meije ~/guix [env]$ sudo execsnoop > Tracing exec()s. Ctrl-C to end. > ERROR: adding a kprobe for execve. Exiting. > --8<---------------cut here---------------end--------------->8--- > Hmm I don't know. `sudo cat /sys/kernel/debug/kprobes/enabled' gives `1' so kprobe should work correctly. Also: --8<---------------cut here---------------start------------->8--- $ zcat /proc/config.gz | grep KPROBES CONFIG_KPROBES=y CONFIG_KPROBES_ON_FTRACE=y CONFIG_HAVE_KPROBES=y CONFIG_HAVE_KPROBES_ON_FTRACE=y --8<---------------cut here---------------end--------------->8--- killsnoop also fails. It seems that the problem is here: --8<---------------cut here---------------start------------->8--- 133 ### select awk 134 # workaround for mawk fflush() 135 [[ -x /usr/bin/mawk ]] && awk="mawk" && mawk -W interactive && \ 136 [ $? -eq 0 ] && awk="mawk -W interactive" 137 # workaround for gawk strtonum() 138 [[ -x /usr/bin/gawk ]] && awk="gawk --non-decimal-data" --8<---------------cut here---------------end--------------->8--- Substituing /usr/bin/gawk seems to fix it. I'll open a new bug thread. -- Olivier Dion oldiob.dev