- 07 Jul, 2015 2 commits
-
-
4ast authored
Add multiple build support styles
-
Brenden Blanco authored
* Add RPM and DEB packaging targets (using CPack from CMake) to build binary packages for Fedora and Ubuntu targets. * Add Docker build scripts for each of the above that run the build in the right environment (assuming docker is available). - In Ubuntu, build against the LLVM 3.7 nightly snapshots - In Fedora, build against LLVM 3.7 from git (takes longer) * Depending on packages installed on the build machine, it may be possible to cross-package for other targets without invoking Docker. * Re-introduce src/cc/compat directory to keep the build stable for the time being. Similarly, it was necessary to #define some ugly constants that should eventually show up in libc. * Add a few simple version checks to allow a partially working (really tracing only) libbcc in 4.1 kernels. TODO (followup commit): Re-work the READMEs Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 03 Jul, 2015 2 commits
-
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
* Install into lib64 instead of lib * Pull 4.2 kernel from rawhide instead of building it Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 02 Jul, 2015 4 commits
-
-
4ast authored
Drop PROTO macro syntax and introduce alternative
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
* Feedback given by some external users was that the PROTO syntax was opaque and unintuitive. As such, drop that macro and introduce an alternative syntax. * Convert all to use 'cursor_advance' macro API Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Automate bpf_probe_read
-
- 01 Jul, 2015 1 commit
-
-
Brenden Blanco authored
* Rewrite accesses to args beyond the first to use bpf_probe_read - Support struct access - Support POD type accesses Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 30 Jun, 2015 1 commit
-
-
4ast authored
Clean some brittle parts of clang rewriter
-
- 29 Jun, 2015 1 commit
-
-
Brenden Blanco authored
* Rewrites of text inside of a macro (even if just the arguments) is not support by clang. Convert macro definitions to pure rewrites instead. * For packet field access, no longer require 'skb' named argument...instead, learn it from the function parameter list. * Add a complex test case...supposedly this should have failed issue #10, but the C version does not exhibit the same failure as the B version. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 28 Jun, 2015 1 commit
-
-
4ast authored
Make tunnel example more user friendly
-
- 25 Jun, 2015 1 commit
-
-
Brenden Blanco authored
* Move files to separate directory * Add README * Run http server automatically from main.py * Add setup.sh script to automate dependencies Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 23 Jun, 2015 7 commits
-
-
Brenden Blanco authored
use new get_table interface to avoid specify key/leaf type in py code
-
4ast authored
Add vxlan tunnel monitoring example
-
Yonghong Song authored
Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
Brenden Blanco authored
use "raw_input" instead "input" to avoid python 2.7 exception
-
Yonghong Song authored
Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
Yonghong Song authored
Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
Brenden Blanco authored
* Example simulates many vxlan hosts ("hypervisors") with multiple clients per host. Some clients will be sending traffic to another client on a different host. * Add vxlan header to proto.h * Remove unused import line in vlan_learning * NOTE: to display this demo, it is required to checkout the chord graph demo from https://github.com/drzaeus77/chord-transitions.git. Follow the instructions in that repo to get a simple http server up and running. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 19 Jun, 2015 1 commit
-
-
4ast authored
Rework vlan example to be 1:1, no mac learning
-
- 18 Jun, 2015 9 commits
-
-
Brenden Blanco authored
example that shows usages of maps, probe_read, get_current_pid helpers
-
Alexei Starovoitov authored
$ ./task_switch.py task_switch[ 2379-> 0]=4 task_switch[ 3914-> 0]=2 task_switch[ 3133-> 0]=5 task_switch[10903-> 0]=100 <-- 100 times python process switched into idle task_switch[ 116-> 0]=1 task_switch[ 0-> 14]=1 task_switch[10803-> 0]=1 task_switch[22292-> 0]=1 task_switch[ 0->22292]=1 task_switch[ 0->10803]=1 task_switch[ 30-> 0]=1 task_switch[ 0->10903]=100 <-- 100 times back into python Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
-
Brenden Blanco authored
* Use ifindex instead of src_mac to program egress table * Remove the static arp programming * Get the example to work in python2 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Move shared example code into simulation.py
-
Brenden Blanco authored
* Create a class for the examples to share, helps with IPDB cleanup and namespace creation. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Remove update() call from vlan example
-
Brenden Blanco authored
* Breakage from previous commit Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Make python table accesses more pythonic
-
Brenden Blanco authored
* Add [] support in BPF.Table class * Remove uses of lookup/update * Add del support Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 17 Jun, 2015 8 commits
-
-
Brenden Blanco authored
add get_current_pid/tgid/uid/gid/comm helpers
-
Alexei Starovoitov authored
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
-
Alexei Starovoitov authored
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
-
4ast authored
Automatically compute sizeof in bpf_trace_printk
-
Brenden Blanco authored
* Addresses issue #61 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Add example for BPF+tc rate limiting
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 16 Jun, 2015 2 commits
-
-
Brenden Blanco authored
* Adding an example to address #59, simulation of bandwidth sharing Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Compatibility fixes and pyroute2 examples
-