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

Add doxygen style comments to all common ebpf headers #58

Merged
merged 12 commits into from
Apr 23, 2021
Prev Previous commit
Next Next commit
PR feedback
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
  • Loading branch information
Alan-Jowett committed Apr 23, 2021
commit 5ca3656a1419f0018e126c369879318c65f5c5b0
2 changes: 1 addition & 1 deletion src/ebpf/include/ebpf_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ extern "C"
ebpf_api_detach_program(ebpf_handle_t handle, ebpf_program_type_t hook_point);

/**
* @brief find an element in an eBPF map.
* @brief Find an element in an eBPF map.
* @param[in] handle Handle to eBPF map.
* @param[in] key_size Size of the key buffer.
* @param[in] key Pointer to buffer containing key.
Expand Down
17 changes: 8 additions & 9 deletions src/ebpf/libs/api/ebpf_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@
*/

#include "pch.h"
#include "tlv.h"
#include "ebpf_api.h"

#include <map>
#include <stdexcept>

#include "ebpf_protocol.h"
#include "platform.h"
#include "tlv.h"
extern "C"
{
#include "ebpf_api.h"
#include "ubpf.h"
}
#include "platform.h"

#include "Verifier.h"
#include "ebpf_protocol.h"
#include "unwind_helper.h"

#include <stdexcept>
#include <map>
#include "Verifier.h"

#define MAX_CODE_SIZE (32 * 1024) // 32 KB

Expand Down