Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address some of Issue #16 #17

Merged
merged 1 commit into from
May 27, 2015
Merged

Address some of Issue #16 #17

merged 1 commit into from
May 27, 2015

Conversation

drzaeus77
Copy link
Collaborator

  • Introduce Function object in bpf.py
    • prog load types (kprobe, socket, etc.) are independent
    • fd is a member of each function, to be used later (e.g. tail call table)
  • Allow functions to be defined inline in the .py as a text argument
  • Rename BPFProgram to BPFModule, which should make more sense

Signed-off-by: Brenden Blanco [email protected]

* Introduce Function object in bpf.py
 - prog load types (kprobe, socket, etc.) are independent
 - fd is a member of each function, to be used later (e.g. tail call table)
* Allow functions to be defined inline in the .py as a text argument
* Rename BPFProgram to BPFModule, which should make more sense

Signed-off-by: Brenden Blanco <[email protected]>
@@ -91,7 +91,7 @@ class MyMemoryManager : public SectionMemoryManager {
map<string, tuple<uint8_t *, uintptr_t>> *sections_;
};

BPFProgram::BPFProgram(unsigned flags)
BPFModule::BPFModule(unsigned flags)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renaming very much makes sense!

4ast pushed a commit that referenced this pull request May 27, 2015
@4ast 4ast merged commit ac56b0e into master May 27, 2015
@drzaeus77 drzaeus77 deleted the issue16 branch May 27, 2015 22:49
@balasu balasu mentioned this pull request Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants