Rename python module name to 'bcc' from 'bpf'
* Rename python module to bcc
* Rename python-bpf (deb,rpm) package to python-bcc
* Pending this change, I will likely re-tag 0.1.6, and upload the bcc
package to pypi.python.org
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
diff --git a/examples/bitehist.py b/examples/bitehist.py
index eb0518a..9bcfb5d 100755
--- a/examples/bitehist.py
+++ b/examples/bitehist.py
@@ -15,7 +15,7 @@
#
# 15-Aug-2015 Brendan Gregg Created this.
-from bpf import BPF
+from bcc import BPF
from ctypes import c_ushort, c_int, c_ulonglong
from time import sleep
from sys import argv
diff --git a/examples/disksnoop.py b/examples/disksnoop.py
index f65e524..c73bab9 100755
--- a/examples/disksnoop.py
+++ b/examples/disksnoop.py
@@ -11,7 +11,7 @@
# 11-Aug-2015 Brendan Gregg Created this.
from __future__ import print_function
-from bpf import BPF
+from bcc import BPF
import sys
REQ_WRITE = 1 # from include/linux/blk_types.h
diff --git a/examples/distributed_bridge/tunnel.py b/examples/distributed_bridge/tunnel.py
index 84dfaab..06ebbf1 100755
--- a/examples/distributed_bridge/tunnel.py
+++ b/examples/distributed_bridge/tunnel.py
@@ -3,7 +3,7 @@
# Licensed under the Apache License, Version 2.0 (the "License")
from sys import argv
-from bpf import BPF
+from bcc import BPF
from builtins import input
from ctypes import c_int, c_uint
from http.server import HTTPServer, SimpleHTTPRequestHandler
diff --git a/examples/distributed_bridge/tunnel_mesh.py b/examples/distributed_bridge/tunnel_mesh.py
index 64700a1..ad5c5c6 100644
--- a/examples/distributed_bridge/tunnel_mesh.py
+++ b/examples/distributed_bridge/tunnel_mesh.py
@@ -3,7 +3,7 @@
# Licensed under the Apache License, Version 2.0 (the "License")
from sys import argv
-from bpf import BPF
+from bcc import BPF
from builtins import input
from ctypes import c_int, c_uint
from http.server import HTTPServer, SimpleHTTPRequestHandler
diff --git a/examples/hello_world.py b/examples/hello_world.py
index 2ad21c6..77b2c2b 100755
--- a/examples/hello_world.py
+++ b/examples/hello_world.py
@@ -5,7 +5,7 @@
# run in project examples directory with:
# sudo ./hello_world.py"
-from bpf import BPF
+from bcc import BPF
prog = """
int hello(void *ctx) {
diff --git a/examples/simple_tc.py b/examples/simple_tc.py
index f0258e5..4dd8aa5 100755
--- a/examples/simple_tc.py
+++ b/examples/simple_tc.py
@@ -2,7 +2,7 @@
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
-from bpf import BPF
+from bcc import BPF
from pyroute2 import IPRoute
ipr = IPRoute()
diff --git a/examples/task_switch.py b/examples/task_switch.py
index c42d637..43a4f3f 100755
--- a/examples/task_switch.py
+++ b/examples/task_switch.py
@@ -2,7 +2,7 @@
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
-from bpf import BPF
+from bcc import BPF
from time import sleep
b = BPF(src_file="task_switch.c")
diff --git a/examples/tc_neighbor_sharing.py b/examples/tc_neighbor_sharing.py
index da2877c..f2ec8a8 100755
--- a/examples/tc_neighbor_sharing.py
+++ b/examples/tc_neighbor_sharing.py
@@ -25,7 +25,7 @@
# pass() |
-from bpf import BPF
+from bcc import BPF
from pyroute2 import IPRoute, NetNS, IPDB, NSPopen
from simulation import Simulation
import sys
diff --git a/examples/tunnel_monitor/monitor.py b/examples/tunnel_monitor/monitor.py
index 057d6c4..bac3420 100644
--- a/examples/tunnel_monitor/monitor.py
+++ b/examples/tunnel_monitor/monitor.py
@@ -2,7 +2,7 @@
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
-from bpf import BPF
+from bcc import BPF
from ctypes import c_uint, c_int, c_ulonglong, Structure
import json
from netaddr import IPAddress
diff --git a/examples/vfsreadlat.py b/examples/vfsreadlat.py
index 6c61c22..784b609 100755
--- a/examples/vfsreadlat.py
+++ b/examples/vfsreadlat.py
@@ -15,7 +15,7 @@
#
# 15-Aug-2015 Brendan Gregg Created this.
-from bpf import BPF
+from bcc import BPF
from ctypes import c_ushort, c_int, c_ulonglong
from time import sleep
from sys import argv
diff --git a/examples/vlan_learning.py b/examples/vlan_learning.py
index a9bef11..200062f 100644
--- a/examples/vlan_learning.py
+++ b/examples/vlan_learning.py
@@ -23,7 +23,7 @@
# phys | veth |
# switch | |
-from bpf import BPF
+from bcc import BPF
from builtins import input
from pyroute2 import IPRoute, NetNS, IPDB, NSPopen
from random import shuffle