|
eBPF program to forward pkt from if-a to if-b
Hello,
1. I don't find under bcc/examples a reference for forwarding function . e,g, capture pkt on if-a look for any match and then forward to if-b.
Can you send a reference to a similar function.
Hello,
1. I don't find under bcc/examples a reference for forwarding function . e,g, capture pkt on if-a look for any match and then forward to if-b.
Can you send a reference to a similar function.
|
By
Avi Cohen (A)
·
#1167
·
|
|
Re: Simple example to start XDP/eBPF programming
Thank you Paul
Pls see inline marked [Avi Cohen (A)]
From: Paul Chaignon [mailto:paul.chaignon@...]
Sent: Monday, 18 December, 2017 12:15 PM
To: Avi Cohen (A)
Cc: iovisor-dev@...
Subject: Re:
Thank you Paul
Pls see inline marked [Avi Cohen (A)]
From: Paul Chaignon [mailto:paul.chaignon@...]
Sent: Monday, 18 December, 2017 12:15 PM
To: Avi Cohen (A)
Cc: iovisor-dev@...
Subject: Re:
|
By
Avi Cohen (A)
·
#1166
·
|
|
Re: Simple example to start XDP/eBPF programming
We really can't do much to help without the source code.
I'm guessing you're referring to the XDP hook. The eBPF program is
executed on the packets before the skbuff is allocated but after
the DMA.
We really can't do much to help without the source code.
I'm guessing you're referring to the XDP hook. The eBPF program is
executed on the packets before the skbuff is allocated but after
the DMA.
|
By
Paul Chaignon
·
#1165
·
|
|
Re: Simple example to start XDP/eBPF programming
[Avi Cohen (A)]
Thank you Paul and Y. Song
I have 2 questions:
1. I’m already running some ‘packet filtering’ , e.g ICMP pkts, I try to ’DROP’
all ICMP pkts (return 0) Indeed it is
[Avi Cohen (A)]
Thank you Paul and Y. Song
I have 2 questions:
1. I’m already running some ‘packet filtering’ , e.g ICMP pkts, I try to ’DROP’
all ICMP pkts (return 0) Indeed it is
|
By
Avi Cohen (A)
·
#1164
·
|
|
Re: Simple example to start XDP/eBPF programming
If bcc is correctly installed, to run the hello_world example, you should
only need to run ./examples/hello_world.py as root.
This tutorial is probably a better source of information in your
If bcc is correctly installed, to run the hello_world example, you should
only need to run ./examples/hello_world.py as root.
This tutorial is probably a better source of information in your
|
By
Paul Chaignon
·
#1163
·
|
|
Re: Simple example to start XDP/eBPF programming
There is an example at bcc/examples/networking/xdp which you can try.
<iovisor-dev@...> wrote:
There is an example at bcc/examples/networking/xdp which you can try.
<iovisor-dev@...> wrote:
|
By
Yonghong Song
·
#1162
·
|
|
Simple example to start XDP/eBPF programming
I've installed (packaged) bcc as per https://github.com/iovisor/bcc/blob/master/INSTALL.md
Now I want to start playing. a simple one like 'hello-world' . I couldn't find a guide for this simple
I've installed (packaged) bcc as per https://github.com/iovisor/bcc/blob/master/INSTALL.md
Now I want to start playing. a simple one like 'hello-world' . I couldn't find a guide for this simple
|
By
Avi Cohen (A)
·
#1160
·
|
|
Simple example to start XDP/eBPF programming
I've installed (packaged) bcc as per https://github.com/iovisor/bcc/blob/master/INSTALL.md
Now I want to start playing. a simple one like 'hello-world' . I couldn't find a guide for this simple
I've installed (packaged) bcc as per https://github.com/iovisor/bcc/blob/master/INSTALL.md
Now I want to start playing. a simple one like 'hello-world' . I couldn't find a guide for this simple
|
By
Avi Cohen (A)
·
#1161
·
|
|
minutes: IO Visor TSC/Dev Meeting
Thanks all for attending today. Below you may find the notes from the call. We
will be skipping the next call and resuming on Jan 10. See you all in the new
year!
=== Status ===
Yonghong:
- bcc:
Thanks all for attending today. Below you may find the notes from the call. We
will be skipping the next call and resuming on Jan 10. See you all in the new
year!
=== Status ===
Yonghong:
- bcc:
|
By
Brenden Blanco
·
#1159
·
|
|
Re: Getting stack trace from a different CPU core (Y Song)
You cannot get stack trace on other threads (tasks) in bpf programs. However, depending on what your "certain conditions" are, you may be able to attach multiple bpf programs to your application, and
You cannot get stack trace on other threads (tasks) in bpf programs. However, depending on what your "certain conditions" are, you may be able to attach multiple bpf programs to your application, and
|
By
Yonghong Song
·
#1158
·
|
|
Re: Getting stack trace from a different CPU core (Y Song)
Hi,
I have a tracepoint probe for sched_switch event. While tracing the context-switches of a multi-threaded program, I would like to get stack trace of other active threads under certain
Hi,
I have a tracepoint probe for sched_switch event. While tracing the context-switches of a multi-threaded program, I would like to get stack trace of other active threads under certain
|
By
RN
·
#1157
·
|
|
reminder: IO Visor TSC/Dev Meeting
Please join us tomorrow for our bi-weekly call. As usual, this meeting is
open to everybody and completely optional.
You might be interested to join if:
You want to know what is going on in BPF
Please join us tomorrow for our bi-weekly call. As usual, this meeting is
open to everybody and completely optional.
You might be interested to join if:
You want to know what is going on in BPF
|
By
Brenden Blanco
·
#1156
·
|
|
Re: Getting stack trace from a different CPU core
Could you describe your use case? Getting stack trace from a different
CPU involves an
IPI (inter-processor interrupt) which is beyond bpf. But typically you
could run your programs
on both cpus and
Could you describe your use case? Getting stack trace from a different
CPU involves an
IPI (inter-processor interrupt) which is beyond bpf. But typically you
could run your programs
on both cpus and
|
By
Yonghong Song
·
#1155
·
|
|
Getting stack trace from a different CPU core
Hello,
Is it possible to get stack trace from a different CPU core with eBPF?
Thank you,
Reena
Hello,
Is it possible to get stack trace from a different CPU core with eBPF?
Thank you,
Reena
|
By
RN
·
#1154
·
|
|
minutes: IO Visor TSC/Dev Call
Thanks all for attending the meeting today. Here are the notes from
the discussion.
=== Status Updates ===
Brenden:
- Adding f26 f27 and ubuntu1710 bcc buildbots
- Creating 0.5.0 tag
Jesper:
- XDP
Thanks all for attending the meeting today. Here are the notes from
the discussion.
=== Status Updates ===
Brenden:
- Adding f26 f27 and ubuntu1710 bcc buildbots
- Creating 0.5.0 tag
Jesper:
- XDP
|
By
Brenden Blanco
·
#1153
·
|
|
reminder: IO Visor TSC/Dev Meeting
Please join us tomorrow for our bi-weekly call. As usual, this meeting is
open to everybody and completely optional.
You might be interested to join if:
You want to know what is going on in BPF
Please join us tomorrow for our bi-weekly call. As usual, this meeting is
open to everybody and completely optional.
You might be interested to join if:
You want to know what is going on in BPF
|
By
Brenden Blanco
·
#1152
·
|
|
Re: How to compile C++ programs with libbcc
Hi, Mauricio,
The issue is that we link the api-static library to produce the libbcc
shared library.
During the linking process, not-referenced symbols in api-static library get
dropped.
I have a
Hi, Mauricio,
The issue is that we link the api-static library to produce the libbcc
shared library.
During the linking process, not-referenced symbols in api-static library get
dropped.
I have a
|
By
Yonghong Song
·
#1151
·
|
|
How to compile C++ programs with libbcc
Dear All,
I have been using libbcc with a C++ application without problems for a while. However, when I tried this with bcc master I got some linker errors.
Even with a basic example I get the same
Dear All,
I have been using libbcc with a C++ application without problems for a while. However, when I tried this with bcc master I got some linker errors.
Even with a basic example I get the same
|
By
Mauricio Vasquez
·
#1150
·
|
|
minutes: IO Visor TSC/Dev Meeting
Hi All,
Thanks for attending the call this week, as usual here are the notes of the
discussions and updates.
=== Netdev ===
LWN summary article for Netconf+Netdev is
Hi All,
Thanks for attending the call this week, as usual here are the notes of the
discussions and updates.
=== Netdev ===
LWN summary article for Netconf+Netdev is
|
By
Brenden Blanco
·
#1149
·
|
|
reminder: IO Visor TSC/Dev Meeting
Please note, California observes daylight saving time, and hence the
time for some timezones may have changed since last meeting. Please
confirm using the timeanddate.com link at the bottom.
Please
Please note, California observes daylight saving time, and hence the
time for some timezones may have changed since last meeting. Please
confirm using the timeanddate.com link at the bottom.
Please
|
By
Brenden Blanco
·
#1148
·
|