public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Lee Eric <openlinuxsource@gmail.com>
To: systemtap@sourceware.org
Subject: Question about udp.sendmsg / udp.recvmsg
Date: Wed, 15 Jul 2020 21:01:32 -0700	[thread overview]
Message-ID: <CAOJJ1Zry9LKLTZ-qwr4JkBnsc_xNLfRux6iwQ3_MvRZaKkcO3g@mail.gmail.com> (raw)

Hi,

I have a quick question about what udp.sendmsg captures. I wrote a
small script to capture all processes are sending / receiving UDP
packets:

#!/usr/bin/env stap

probe udp.sendmsg {
printf("Req - time: [%s] pid: [%d] cmd: [%s] %s:%d => %s:%d\n",
ctime(gettimeofday_s()), pid(), execname(), saddr, sport, daddr,
dport)
}

probe udp.recvmsg {
printf("Resp - time: [%s] pid: [%d] cmd: [%s] %s:%d => %s:%d\n",
ctime(gettimeofday_s()), pid(), execname(), daddr, dport, saddr,
sport)
}

So I also triggered tcpdump to capture UDP traffic. I noticed the
systemtap shows some udp.sendmsg / udp.recvmsg probes are triggered
but there's no request on tcpdump side. So what possible reason can
cause this behavior? Is that normal?

Thanks.

Eric

                 reply	other threads:[~2020-07-16  4:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAOJJ1Zry9LKLTZ-qwr4JkBnsc_xNLfRux6iwQ3_MvRZaKkcO3g@mail.gmail.com \
    --to=openlinuxsource@gmail.com \
    --cc=systemtap@sourceware.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.
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).