From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers)
Subject: [ltt-dev] [PATCH] net_dev_xmit_extended probe : cleanup unused data
Date: Fri, 4 Feb 2011 11:09:20 -0500 [thread overview]
Message-ID: <20110204160920.GA7303@Krystal> (raw)
In-Reply-To: <1296662387-20068-1-git-send-email-julien.desfossez@polymtl.ca>
* Julien Desfossez (julien.desfossez at polymtl.ca) wrote:
> Intialise the unused fields of the data structure and add support for
> ports in UDP packets.
Merged, thanks !
Mathieu
>
> Signed-off-by: Julien Desfossez <julien.desfossez at polymtl.ca>
> ---
> probes/net-extended-trace.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/probes/net-extended-trace.c b/probes/net-extended-trace.c
> index 15fc810..d7bb4f8 100644
> --- a/probes/net-extended-trace.c
> +++ b/probes/net-extended-trace.c
> @@ -42,6 +42,9 @@ notrace void probe_net_dev_xmit_extended(void *_data, struct sk_buff *skb)
> struct serialize_l214421224411111 data;
> struct iphdr *iph = ip_hdr(skb);
> struct tcphdr *th = tcp_hdr(skb);
> + struct udphdr *uh = udp_hdr(skb);
> +
> + memset(&data, 0, sizeof(struct serialize_l214421224411111));
>
> data.f1 = (unsigned long)skb;
> data.f2 = skb->protocol;
> @@ -63,6 +66,9 @@ notrace void probe_net_dev_xmit_extended(void *_data, struct sk_buff *skb)
> data.f14 = th->rst;
> data.f15 = th->syn;
> data.f16 = th->fin;
> + } else if (data.f3 == IPPROTO_UDP) {
> + data.f8 = uh->source;
> + data.f9 = uh->dest;
> }
> }
>
> --
> 1.7.0.4
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
prev parent reply other threads:[~2011-02-04 16:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-02 15:59 Julien Desfossez
2011-02-04 16:09 ` Mathieu Desnoyers [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110204160920.GA7303@Krystal \
--to=mathieu.desnoyers@efficios.com \
/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