From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 24 12:38:44 2022 Received: (at submit) by debbugs.gnu.org; 24 Sep 2022 16:38:44 +0000 Received: from localhost ([127.0.0.1]:45136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc8At-00060I-Ny for submit@debbugs.gnu.org; Sat, 24 Sep 2022 12:38:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:50402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc8Al-000605-Lc for submit@debbugs.gnu.org; Sat, 24 Sep 2022 12:38:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oc8Al-0001mm-Gp for guix-patches@gnu.org; Sat, 24 Sep 2022 12:38:35 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:43393) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oc8Ai-00043C-Fh; Sat, 24 Sep 2022 12:38:34 -0400 Received: from laura.hitronhub.home (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 28OGcHC4025824 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sat, 24 Sep 2022 12:38:24 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 28OGcHC4025824 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1664037505; bh=/11KLkYhV69v1YZLT6/0tFR3tugGI3P0DlfzbF3HBfY=; h=From:To:Cc:Subject:Date:From; b=UxuIhoRVj1r5vlJ/gAkSnIVClX9G9b+JWEjkuMd70q9zLJTpZfBI3PxJQ6pZyglX/ hhFm67LKNF4h4W4Lp903K+hqrBl1cxKXofC+7L3jwoBdS7AGhPok3R6hwcYw/0zhgI Iq5UOtOa4rccfRgYCDgPbQBTR2jW+HfRP0wCVHJw= From: Olivier Dion To: guix-patches@gnu.org Subject: [PATCH] gnu: Add libpatch. Date: Sat, 24 Sep 2022 12:38:15 -0400 Message-Id: <3400e6a50d528e085834f77e7159607f22d9b8b9.1664037413.git.olivier.dion@polymtl.ca> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Sat, 24 Sep 2022 16:38:17 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Olivier Dion , othacehe@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/instrumentation.scm (libpatch): New variable. --- gnu/packages/instrumentation.scm | 64 ++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm index c508801c6b..b611f2b141 100644 --- a/gnu/packages/instrumentation.scm +++ b/gnu/packages/instrumentation.scm @@ -22,6 +22,7 @@ (define-module (gnu packages instrumentation) #:use-module (gnu packages bison) #:use-module (gnu packages boost) #:use-module (gnu packages commencement) + #:use-module (gnu packages compression) #:use-module (gnu packages datastructures) #:use-module (gnu packages documentation) #:use-module (gnu packages elf) @@ -30,6 +31,7 @@ (define-module (gnu packages instrumentation) #:use-module (gnu packages flex) #:use-module (gnu packages gawk) #:use-module (gnu packages glib) + #:use-module (gnu packages guile) #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) @@ -207,6 +209,68 @@ (define-public flamegraph with the script @command{flamegraph.pl} and many stackcollapse scripts.") (license license:cddl1.0)))) +(define-public libpatch + (package + (name "libpatch") + (version "1.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~old/libpatch") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1sx1sichnnqfi84z37gd04h41vpr8i2vg6yg0jkqxlrv3dys489a")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + (list + (string-append + "--target=" + ,(platform-linux-architecture + (lookup-platform-by-target-or-system + (or + (%current-target-system) + (%current-system)))))))) + (inputs + (list capstone + elfutils + ;; Uncomment the following if you want tracepoints within libpatch + ;; for debugging. + ;; + ;; lttng-ust + libunwind + liburcu)) + (native-inputs + (list coreutils + ;; test-ftrace.scm + (list coreutils "debug") + ;; For eu-nm in test-ftrace.scm. + (list elfutils "bin") + ;; Put Guile in your profile if you want to use the bindings. + guile-3.0 + ;; test-ftrace.scm + (list guile-3.0 "debug") + gnu-make + ;; test-ftrace.scm + (list gnu-make "debug") + pkg-config + ;; zlib is required by libdw. This can be removed if zlib is put + ;; as a propagated-input of elfutils. + zlib)) + (synopsis "Dynamic binary patcher") + (description + "libpatch is a lightweight C library that can be used by tracers, +debuggers and other tools for insertion of probes in a program at runtime. It +has many strategies to minimize probe overhead and maximize possible +coverage.") + (home-page "https://git.sr.ht/~old/libpatch") + (license (list license:lgpl2.1 license:expat license:gpl3+)) + ;; Libpatch only supports instrumentation for x86_64 right now. Augment + ;; that list in further version. + (supported-systems (list "x86_64-linux")))) + (define-public lttng-modules (package (name "lttng-modules") -- 2.37.3 From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 26 09:34:01 2022 Received: (at 58045-done) by debbugs.gnu.org; 26 Sep 2022 13:34:01 +0000 Received: from localhost ([127.0.0.1]:49695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocoFE-0005nx-Pj for submit@debbugs.gnu.org; Mon, 26 Sep 2022 09:34:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocoFA-0005nW-1g for 58045-done@debbugs.gnu.org; Mon, 26 Sep 2022 09:33:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42678) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocoF4-0004k7-Da; Mon, 26 Sep 2022 09:33:50 -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=9fEW+FvHP8fXCCMrynIEr8oRM9M4xKcMnierl5p9z00=; b=XgYqbveOC2oF0laLA+ta sBj3bBGHKhKti0213BejlgeYDU8y9U8mBlGqj9Kj6ONiUvrF8VcHFvAu7BbTKmb2o69akXA5Pqtn0 ijMxByVw5TzodQsvLlIn9dcEYDO6jXYzD2iHegcy2Ks7yiOJ9814U1Hz1ENz1S0SPPVEIuC2gUOfa cxfzf/VTh+LxtJ/B0bNAv6v9SjjPTKm23c0Qs3pIhg5kAnkoZEY9PHjhzvJ8KMjyxcT0zNOSDMc0x Jgq0uofgYFCSgvg/UqjIWp36g+f5Z6lXR0fIe0uh1+2Tp0Uh9c5SCo86Y0ZI7/70ZIB8odEbIF64h TjxqQNqMB6KMEw==; Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2775.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2775]:51508 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocoF3-0004xv-Pr; Mon, 26 Sep 2022 09:33:50 -0400 From: Mathieu Othacehe To: Olivier Dion Subject: Re: bug#58045: [PATCH] gnu: Add libpatch. References: <3400e6a50d528e085834f77e7159607f22d9b8b9.1664037413.git.olivier.dion@polymtl.ca> Date: Mon, 26 Sep 2022 15:33:46 +0200 In-Reply-To: <3400e6a50d528e085834f77e7159607f22d9b8b9.1664037413.git.olivier.dion@polymtl.ca> (Olivier Dion's message of "Sat, 24 Sep 2022 12:38:15 -0400") Message-ID: <87zgemqmyt.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58045-done Cc: 58045-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > * gnu/packages/instrumentation.scm (libpatch): New variable. Applied with the following diff: --8<---------------cut here---------------start------------->8--- diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm index b611f2b141..3d6b6fab38 100644 --- a/gnu/packages/instrumentation.scm +++ b/gnu/packages/instrumentation.scm @@ -233,28 +233,25 @@ (define-public libpatch (or (%current-target-system) (%current-system)))))))) + ;;; Add lttng-ust to the inputs if you want tracepoints within libpatch + ;;; for debugging. (inputs (list capstone elfutils - ;; Uncomment the following if you want tracepoints within libpatch - ;; for debugging. - ;; - ;; lttng-ust libunwind liburcu)) (native-inputs (list coreutils ;; test-ftrace.scm (list coreutils "debug") + (list guile-3.0 "debug") + (list gnu-make "debug") + ;; For eu-nm in test-ftrace.scm. (list elfutils "bin") - ;; Put Guile in your profile if you want to use the bindings. + guile-3.0 - ;; test-ftrace.scm - (list guile-3.0 "debug") gnu-make - ;; test-ftrace.scm - (list gnu-make "debug") pkg-config ;; zlib is required by libdw. This can be removed if zlib is put ;; as a propagated-input of elfutils. --8<---------------cut here---------------end--------------->8--- Thanks, Mathieu From unknown Fri Sep 05 11:01:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 25 Oct 2022 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator