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

generate e2e artefacts for cilium function extraction #33

Open
2 of 9 tasks
sdsen opened this issue Dec 10, 2022 · 3 comments
Open
2 of 9 tasks

generate e2e artefacts for cilium function extraction #33

sdsen opened this issue Dec 10, 2022 · 3 comments
Assignees
Labels
Extraction Extracting code from monoliths testing Test if tool works on specific repositories

Comments

@sdsen
Copy link
Member

sdsen commented Dec 10, 2022

Is your feature request related to a problem? Please describe.
Create folders with extracted cilium function which load on an interface. for each folder generate separate makefiles etc. as well.
put folders in op dir.

Describe the solution you'd like
target functions:

  • handle_ipv6
  • tail_handle_ipv6
  • handle_ipv4
  • tail_handle_ipv4
  • bpf_redir_proxy
  • bpf_sock_ops_ipv4
  • bpf_sock_ops_ipv6
  • bpf_sockmap
  • sock4_connect

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@sdsen sdsen added the testing Test if tool works on specific repositories label Dec 10, 2022
@palanik1
Copy link
Member

palanik1 commented Dec 12, 2022

Following ops are required

  1. Comment __non_bpf_context defn
    #ifndef __non_bpf_context//OPENED define __non_bpf_context BEG
    //#define __non_bpf_context 1
    #endif //OPENED define __non_bpf_context END

  2. Comment KERNEL_HZ

#ifndef KERNEL_HZ//OPENED define KERNEL_HZ BEG
//printf("#define KERNEL_HZ %lu\t/* warp: %lu jiffies */\n", fixed->jiffies[0], warp);
#endif //OPENED define KERNEL_HZ END

  1. Header file ordering. Ensure ctx/skb.h comes before ep_config.h
    #include <bpf/ctx/skb.h>
    //OPENED: included from: /home/palani/github/opened_extraction/examples/cilium/bpf_lxc.c

@sdsen
Copy link
Member Author

sdsen commented Dec 12, 2022

@palanik1 is the plan to create separate folders for each cilium extract for now ?

@palanik1
Copy link
Member

Yes..

@sdsen sdsen added the Extraction Extracting code from monoliths label Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Extraction Extracting code from monoliths testing Test if tool works on specific repositories
Projects
None yet
Development

No branches or pull requests

2 participants