From 84632859c517ad436ba0f4ea6de1dafd60003e18 Mon Sep 17 00:00:00 2001 From: Christopher Hunt Date: Fri, 26 Apr 2019 12:21:26 -0400 Subject: [PATCH] tutorial_bcc_python_developer: Finish auto-generated update A sentence was leftover from before we could auto-generate the Python data structure. --- docs/tutorial_bcc_python_developer.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/tutorial_bcc_python_developer.md b/docs/tutorial_bcc_python_developer.md index f5d2ff986905..817c109e41f1 100644 --- a/docs/tutorial_bcc_python_developer.md +++ b/docs/tutorial_bcc_python_developer.md @@ -309,12 +309,10 @@ Things to learn: 1. ```bpf_get_current_comm()```: Populates the first argument address with the current process name. 1. ```events.perf_submit()```: Submit the event for user space to read via a perf ring buffer. 1. ```def print_event()```: Define a Python function that will handle reading events from the ```events``` stream. -1. ```b["events"].event(data)```: Now get the event as a Python object. +1. ```b["events"].event(data)```: Now get the event as a Python object, auto-generated from the C declaration. 1. ```b["events"].open_perf_buffer(print_event)```: Associate the Python ```print_event``` function with the ```events``` stream. 1. ```while 1: b.perf_buffer_poll()```: Block waiting for events. -This may be improved in future bcc versions. Eg, the Python data struct could be auto-generated from the C code. - ### Lesson 8. sync_perf_output.py Rewrite sync_timing.py, from a prior lesson, to use ```BPF_PERF_OUTPUT```.