From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IBJ5LMBu7mLT4wAAbAwnHQ (envelope-from ) for ; Sat, 06 Aug 2022 15:38:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gJCRK8Bu7mIReQAAG6o9tA (envelope-from ) for ; Sat, 06 Aug 2022 15:38:08 +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 8AA99AAB2 for ; Sat, 6 Aug 2022 15:38:07 +0200 (CEST) Received: from localhost ([::1]:60588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKK0E-0003Ok-NH for larch@yhetil.org; Sat, 06 Aug 2022 09:38:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKK0A-0003Ob-Sv for guix-patches@gnu.org; Sat, 06 Aug 2022 09:38:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43335) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKK0A-0002FW-KO for guix-patches@gnu.org; Sat, 06 Aug 2022 09:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oKK0A-0000Ad-Dn for guix-patches@gnu.org; Sat, 06 Aug 2022 09:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57008] [PATCH] gnu: perf-tools: Patch executable paths Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Aug 2022 13:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57008 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Olivier Dion Cc: bug#57008 <57008@debbugs.gnu.org> Received: via spool by 57008-submit@debbugs.gnu.org id=B57008.1659793062627 (code B ref 57008); Sat, 06 Aug 2022 13:38:02 +0000 Received: (at 57008) by debbugs.gnu.org; 6 Aug 2022 13:37:42 +0000 Received: from localhost ([127.0.0.1]:33084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKJzp-0000A2-PY for submit@debbugs.gnu.org; Sat, 06 Aug 2022 09:37:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKJzn-00009o-OD for 57008@debbugs.gnu.org; Sat, 06 Aug 2022 09:37:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKJzi-0002DS-69; Sat, 06 Aug 2022 09:37:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=C4jpnleWJN2qtAR184W6N7WK7IVc13iM6f8wv8f+eTw=; b=gwzI2eM0CiuW8y/ZrM/c 6ybTulG7kqv2pTxcKSeUtdFubd06BV1iXDEepctYeSNjRy5GDlSMgJRIqJOxFxMby9/3XUJLZZxTw mVMCeN1GVH2UAMbvcF+hHUxYC43jel5+LBAt4TkMEThY14oa+KyL5PH4Aytz3jnt37DRUynDIALAp WkcIf7gf7lGmH0NBx/iafS4EVhYwv3jDXn200AzRP7+9p4B9SQC0Qt7q1i2AhqYSXcFHqAdwq7xd7 k8KxDBddi7prIR+uX13QYWrzFiaaBZMaOnpIgEH0ObHNRfh21j74+b960F7uVex3+Rlx4mEioQ5Ef krfaX7sIwMsCFg==; Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2774.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2774]:59344 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKJzh-0002Ba-PQ; Sat, 06 Aug 2022 09:37:34 -0400 From: Mathieu Othacehe References: <0c2a00011b37de03efc17626123ce1571b103c7a.1659714518.git.olivier.dion@polymtl.ca> Date: Sat, 06 Aug 2022 15:37:31 +0200 In-Reply-To: <0c2a00011b37de03efc17626123ce1571b103c7a.1659714518.git.olivier.dion@polymtl.ca> (Olivier Dion's message of "Fri, 5 Aug 2022 11:49:26 -0400") Message-ID: <877d3lebms.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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" 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=1659793087; h=from:from:sender:sender: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: dkim-signature; bh=C4jpnleWJN2qtAR184W6N7WK7IVc13iM6f8wv8f+eTw=; b=r646PKDKiwn0f5AbyDjBqCF+e3oq4UWoyJgYIqF3sVcqnHuzyG5XL90KVOS02KpmC7nSUi KG5s8Lo4uKZeAAjI6E/pU4I8u3+EJe1CLIH3WjQz+BCDb+fsDa7N0ZsT7k7n9oEfWMwewo od6Waw31Ceh6sasmAKWK4WXbtAQS6W8tXJp+IOaiGJYrvoHX//skbWnZuOCRSlAFduBRWA G/JhEky5ZG5qB7R1iBhbFVorGS5lC5mZ3wBDYnWN7xhrxQ5VM0ckIowr92ATsn3wB1kA2W ulwuR0KaXSetPI3merNyF/rASGwV+hOiq+YkWPt4nzadB3jS9hiosTO+jFdtTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659793087; a=rsa-sha256; cv=none; b=Yk2ocDEvPqEFsNCDyR8aO4J1mfxRgU9hu5yuNjwy5zG7b7emnzQ2wZNncKNy2giBBBwXQx gbSq1PZvo0Svjnjbq/2K32HY4yeaMSvvPgrAOfn2uAEVBiQGU7mcS0mIVH0mklZZgEU4ig l/7mkQ1gF1LLKTJuHiLBX60cfh6q2XYHfEVFvIukH0LXYAIeoaa3iHkDVfLb6e1dao8cMl OMWSYVzeZ2NOhntBy8FMn/I/jGmZ7VSHJ31E6gjO8+mdLaHBwhjm2Z5ktd1iQsNSHACuEc ZwtqHrZoE4jwCh9EAwieiNVO1xvGvSt9nBzS9rXt3sEEOMy0h5UMuTEQb80QVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=gwzI2eM0; 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: -4.89 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=gwzI2eM0; 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: 8AA99AAB2 X-Spam-Score: -4.89 X-Migadu-Scanner: scn0.migadu.com X-TUID: cA+7N/R1SlCb Hello Olivier, > * gnu/packages/instrumentation.scm (perf-tools): Add patch phase. > [phases]: Add patch-paths. Somehow I still have the same error. Here a complete report: --8<---------------cut here---------------start------------->8--- mathieu@meije ~/guix [env]$ sudo bash -x execsnoop + tracing=/sys/kernel/debug/tracing + flock=/var/tmp/.ftrace-lock + wroteflock=0 + opt_duration=0 + duration= + opt_name=0 + name= + opt_time=0 + opt_reexec=0 + opt_argc=0 + argc=8 + max_argc=16 + ftext= + trap : INT QUIT TERM PIPE HUP + getopts a:d:hrt opt + shift 0 + (( 0 )) + (( 0 )) + (( opt_pid && opt_name )) + (( opt_pid )) + (( opt_name )) + (( opt_file )) + (( opt_argc && argc > max_argc )) + (( opt_duration )) + echo 'Tracing exec()s. Ctrl-C to end.' Tracing exec()s. Ctrl-C to end. + (( opt_duration )) + [[ -x /gnu/store/55q02v1a3qz8n7rlhy3jva9qjkfwj8y0-gawk-5.1.0/bin/awk ]] + awk=gawk + cd /sys/kernel/debug/tracing + [[ -e /var/tmp/.ftrace-lock ]] + echo 25361 + wroteflock=1 + [[ -x /gnu/store/bxh206gz379wkn8cvb2ghlkvpqgwfd2v-gcc-toolchain-10.3.0/bin/getconf ]] ++ getconf LONG_BIT + bits=64 + (( offset = bits / 8 )) + makeprobe sys_execve + func=sys_execve + kname=execsnoop_sys_execve + kprobe='p:execsnoop_sys_execve sys_execve' + i=0 + (( i < argc + 1 )) + kprobe='p:execsnoop_sys_execve sys_execve +0(+0(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_sys_execve sys_execve +0(+0(%si)):string +0(+8(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_sys_execve sys_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_sys_execve sys_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_sys_execve sys_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_sys_execve sys_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string +0(+40(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_sys_execve sys_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string +0(+40(%si)):string +0(+48(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_sys_execve sys_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string +0(+40(%si)):string +0(+48(%si)):string +0(+56(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_sys_execve sys_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string +0(+40(%si)):string +0(+48(%si)):string +0(+56(%si)):string +0(+64(%si)):string' + (( i++ )) + (( i < argc + 1 )) + echo nop + echo p:execsnoop_sys_execve sys_execve '+0(+0(%si)):string' '+0(+8(%si)):string' '+0(+16(%si)):string' '+0(+24(%si)):string' '+0(+32(%si)):string' '+0(+40(%si)):string' '+0(+48(%si)):string' '+0(+56(%si)):string' '+0(+64(%si)):string' + makeprobe stub_execve + func=stub_execve + kname=execsnoop_stub_execve + kprobe='p:execsnoop_stub_execve stub_execve' + i=0 + (( i < argc + 1 )) + kprobe='p:execsnoop_stub_execve stub_execve +0(+0(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_stub_execve stub_execve +0(+0(%si)):string +0(+8(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_stub_execve stub_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_stub_execve stub_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_stub_execve stub_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_stub_execve stub_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string +0(+40(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_stub_execve stub_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string +0(+40(%si)):string +0(+48(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_stub_execve stub_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string +0(+40(%si)):string +0(+48(%si)):string +0(+56(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_stub_execve stub_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string +0(+40(%si)):string +0(+48(%si)):string +0(+56(%si)):string +0(+64(%si)):string' + (( i++ )) + (( i < argc + 1 )) + echo p:execsnoop_stub_execve stub_execve '+0(+0(%si)):string' '+0(+8(%si)):string' '+0(+16(%si)):string' '+0(+24(%si)):string' '+0(+32(%si)):string' '+0(+40(%si)):string' '+0(+48(%si)):string' '+0(+56(%si)):string' '+0(+64(%si)):string' + makeprobe do_execve + func=do_execve + kname=execsnoop_do_execve + kprobe='p:execsnoop_do_execve do_execve' + i=0 + (( i < argc + 1 )) + kprobe='p:execsnoop_do_execve do_execve +0(+0(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_do_execve do_execve +0(+0(%si)):string +0(+8(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_do_execve do_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_do_execve do_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_do_execve do_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_do_execve do_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string +0(+40(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_do_execve do_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string +0(+40(%si)):string +0(+48(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_do_execve do_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string +0(+40(%si)):string +0(+48(%si)):string +0(+56(%si)):string' + (( i++ )) + (( i < argc + 1 )) + kprobe='p:execsnoop_do_execve do_execve +0(+0(%si)):string +0(+8(%si)):string +0(+16(%si)):string +0(+24(%si)):string +0(+32(%si)):string +0(+40(%si)):string +0(+48(%si)):string +0(+56(%si)):string +0(+64(%si)):string' + (( i++ )) + (( i < argc + 1 )) + echo p:execsnoop_do_execve do_execve '+0(+0(%si)):string' '+0(+8(%si)):string' '+0(+16(%si)):string' '+0(+24(%si)):string' '+0(+32(%si)):string' '+0(+40(%si)):string' '+0(+48(%si)):string' '+0(+56(%si)):string' '+0(+64(%si)):string' + edie 'ERROR: adding a kprobe for execve. Exiting.' + echo 'ERROR: adding a kprobe for execve. Exiting.' ERROR: adding a kprobe for execve. Exiting. + exec --8<---------------cut here---------------end--------------->8--- Any idea why? Thanks, Mathieu