Skip to content

Commit 912d0c8

Browse files
Merge pull request #8 from pythonbpf/refactor
Add dwarf module
2 parents 980f2af + b88888f commit 912d0c8

16 files changed

Lines changed: 140 additions & 186 deletions

demo/bcc.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

examples/execve3.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,10 @@
1010
def last() -> HashMap:
1111
return HashMap(key=c_uint64, value=c_uint64, max_entries=3)
1212

13-
14-
@bpf
15-
@section("tracepoint/syscalls/sys_enter_execve")
16-
def hello(ctx: c_void_p) -> c_int32:
17-
print("entered")
18-
print("multi constant support")
19-
return c_int32(0)
20-
21-
2213
@bpf
2314
@section("tracepoint/syscalls/sys_exit_execve")
2415
def hello_again(ctx: c_void_p) -> c_int64:
16+
print("multi constant support")
2517
print("exited")
2618
key = 0
2719
delta = 0
@@ -45,11 +37,9 @@ def hello_again(ctx: c_void_p) -> c_int64:
4537

4638
return c_int64(0)
4739

48-
4940
@bpf
5041
@bpfglobal
5142
def LICENSE() -> str:
5243
return "GPL"
5344

54-
5545
compile()

examples/execve4.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
def last() -> HashMap:
1111
return HashMap(key=c_uint64, value=c_uint64, max_entries=3)
1212

13-
1413
@bpf
1514
@section("blk_start_request")
1615
def trace_start(ctx: c_void_p) -> c_int32:

examples/hello_world.py

Lines changed: 0 additions & 15 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)