All of lore.kernel.org
 help / color / mirror / Atom feed
* perf probe and bitfields
@ 2018-01-19 16:43 David Ahern
  2018-01-26  6:56 ` Namhyung Kim
  0 siblings, 1 reply; 5+ messages in thread
From: David Ahern @ 2018-01-19 16:43 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Masami Hiramatsu, Perf Users

Hi Arnaldo / Masami:

Are there known issues / limitations with perf probe and bitfields?

Here's an example: pkt_type is a bitfield in sk_buff. When I put a probe
in arp_rcv to examine the pkt_type value:

$ perf probe 'arp_rcv ptype=skb->pkt_type dev=dev->name:string'

I only get '0' output:

$ perf script
     vhost-27472 27483 [013] 4313207.619714: probe:arp_rcv:
(ffffffff815653b0) ptype=0 dev="br1"
     vhost-27472 27483 [013] 4313207.619763: probe:arp_rcv:
(ffffffff815653b0) ptype=0 dev="br1"
     vhost-27472 27483 [013] 4313210.588990: probe:arp_rcv:
(ffffffff815653b0) ptype=0 dev="br1"

when I know broadcast packet are getting handled (pkt_type ==
PACKET_BROADCAST). This is confirmed by adding a printk to arp_rcv.

Thanks,
David

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-30 16:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-19 16:43 perf probe and bitfields David Ahern
2018-01-26  6:56 ` Namhyung Kim
2018-01-26 16:28   ` David Ahern
2018-01-27  5:04     ` Masami Hiramatsu
2018-01-30 16:53       ` David Ahern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.