unofficial mirror of 
 help / color / mirror / code / Atom feed
From: Olivier Dion via Guix-patches via <>
To: Mathieu Othacehe <>
Subject: [bug#56962] [PATCH] gnu: Add perf-tools.
Date: Fri, 05 Aug 2022 10:18:34 -0400	[thread overview]
Message-ID: <87tu6qpydh.fsf@laura> (raw)
In-Reply-To: <>

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
--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

      reply	other threads:[~2022-08-05 14:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-03 23:44 Olivier Dion via Guix-patches via
2022-08-05 12:42 ` bug#56962: " Mathieu Othacehe
2022-08-05 14:18   ` Olivier Dion via Guix-patches via [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tu6qpydh.fsf@laura \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).