zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@zsh.org>
To: Jun T <takimoto-j@kba.biglobe.ne.jp>
Cc: zsh-workers@zsh.org
Subject: Re: PATCH: complete probes for dtrace completion
Date: Thu, 25 Mar 2021 00:42:31 +0100	[thread overview]
Message-ID: <60652-1616629351.828535@4m9W.f13N.UI31> (raw)
In-Reply-To: <C8039B3F-B36A-427F-ABA6-C1A7E7E3D9EB@kba.biglobe.ne.jp>

Jun T wrote:
> I tested on macOS.

Thanks!

> It is not filtered out due to a typo;  'pattern' in ${${...}:#pattern}
> needs a trailing '*'.

Ah, good point, thanks.

> On macOS, output of 'dtrace -l' includes lines like
>  170    syscall            #8 entry

I get those on FreeBSD too but hadn't especially paid much attention.
Trying to specify them only produces an error so filtering is likely
correct.

> And dtrace on macOS always issues waring like
> dtrace: system integrity protection is on, some features will not be available
> We need to send it to /dev/null.

Since 5.0.8, _call_program sends stderr to /dev/null by default and
requires 2>&1 to preserve it. Were you actually getting the errors
dumped from _dtrace?

> Yes. And I also added options listed in the online document for
> Solaris 11.4:

Looks good, thanks.

> There is a dtrace command in systemtap-sdt-{dev,devel} package for
> {Debian,RedHat}-like systems (but I have never used it):

> https://manpages.debian.org/buster/systemtap-sdt-dev/dtrace.1.en.html

> I'm not sure _dtrace needs to support it.

I have used dtrace on Linux in the past but there were more occasions
where I moved over to a Solaris machine to use it. I'm not sure whether
the latest is still systemtap based. bpftrace has improved and looks to
be very similar. I've heard a Windows port exists too. I doubt _dtrace
would need much if any changes for the Linux port. I don't think it is
vital to add support but also see no reason not to. Would be better to
check the latest release on Oracle Linux rather than that old man page,
however. There's also a NetBSD port but I doubt that deviates much, if
at all.

Oliver


  parent reply	other threads:[~2021-03-24 23:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-23 22:43 Oliver Kiddle
2021-03-24 11:17 ` Jun T
2021-03-24 11:30   ` Jun T
2021-03-24 23:42   ` Oliver Kiddle [this message]
2021-03-25  1:58     ` Jun T

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

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

  git send-email \
    --in-reply-to=60652-1616629351.828535@4m9W.f13N.UI31 \
    --to=opk@zsh.org \
    --cc=takimoto-j@kba.biglobe.ne.jp \
    --cc=zsh-workers@zsh.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.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).