-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f235f9d
commit aef16ee
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef _PERF_EVENT_ARRAY_HPP | ||
#define _PERF_EVENT_ARRAY_HPP | ||
#include <cstdint> | ||
#include <boost/interprocess/managed_shared_memory.hpp> | ||
namespace bpftime | ||
{ | ||
class perf_event_array_impl { | ||
private: | ||
|
||
public: | ||
const static bool should_lock = true; | ||
perf_event_array_impl(boost::interprocess::managed_shared_memory &memory, | ||
uint32_t key_size, uint32_t value_size); | ||
|
||
void *elem_lookup(const void *key); | ||
|
||
long elem_update(const void *key, const void *value, uint64_t flags); | ||
|
||
long elem_delete(const void *key); | ||
|
||
int bpf_map_get_next_key(const void *key, void *next_key); | ||
}; | ||
} // namespace bpftime | ||
#endif |