All of lore.kernel.org
 help / color / mirror / Atom feed
* Error with printk and bpf_trace_printk
@ 2017-05-28 14:48 Adel Fuchs
  2017-05-30 12:24   ` Jesper Dangaard Brouer via iovisor-dev
  0 siblings, 1 reply; 6+ messages in thread
From: Adel Fuchs @ 2017-05-28 14:48 UTC (permalink / raw)
  To: netdev

Hi,

I have a working eBPF program, and I'm trying to add outputs to it.
I'm not able to use both printk and bpf_trace_printk functions. I get
this error:

ELF contains non-map related relo data in entry 0 pointing to section
8! Compiler bug?!

Prog section 'ingress' rejected: Invalid argument (22)!
 - Type:         3
 - Instructions: 16 (0 over limit)
 - License:      GPL

Verifier analysis:

0: (bf) r6 = r1
1: (18) r1 = 0x0
3: (85) call bpf_unspec#0
unknown func bpf_unspec#0

Error fetching program/map!
Failed to retrieve (e)BPF data!

Are there certain "includes" that I need to add?
In addition, I'm not sure I'm using the function correctly. I just
wrote: printk("hi")

Thanks!
Adel

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

end of thread, other threads:[~2017-06-01 14:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-28 14:48 Error with printk and bpf_trace_printk Adel Fuchs
2017-05-30 12:24 ` Jesper Dangaard Brouer
2017-05-30 12:24   ` Jesper Dangaard Brouer via iovisor-dev
2017-06-01 11:10   ` Adel Fuchs
2017-06-01 11:10     ` Adel Fuchs via iovisor-dev
2017-06-01 14:35     ` Jesper Dangaard Brouer

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.