unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Olivier Dion via Guix-patches via <guix-patches@gnu.org>
To: Mathieu Othacehe <othacehe@gnu.org>
Cc: 56962-done@debbugs.gnu.org
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: <87k07mx3n3.fsf@gnu.org>

On Fri, 05 Aug 2022, Mathieu Othacehe <othacehe@gnu.org> 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




      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 [bug#56962] [PATCH] gnu: Add perf-tools 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87tu6qpydh.fsf@laura \
    --to=guix-patches@gnu.org \
    --cc=56962-done@debbugs.gnu.org \
    --cc=olivier.dion@polymtl.ca \
    --cc=othacehe@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/guix.git

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