JBPF program type and hook context naming convention #30
-
|
Hello, I have a question about the correspondence between the jbpf program type name (in case the default one, i.e., For example, I have created the as the Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I think I’ve answered myself to one of the questions. There is no naming association between the program type and hook context by looking at |
Beta Was this translation helpful? Give feedback.
I think I’ve answered myself to one of the questions. There is no naming association between the program type and hook context by looking at
jbpf_tests/verifier/jbpf_verifier_extension_test.cpp. When extending the verifier for the program typejbpf_my_prog_type, the name of the context ismy_new_jbpf_ctx, which doesn't have anything in common in terms of naming withjbpf_my_prog_type. Although, I found it convenient to use this naming convention:<context_name> = <program_type_name>_ctx