21#include <shared_mutex>
22#include <unordered_set>
108 mutable std::shared_mutex mtx_;
109 std::unordered_set<uint64_t> tid_filter_;
110 std::unordered_set<uint64_t> pid_filter_;
111 std::set<std::string> proc_name_filter_;
Interface class for hypervisor events.
Definition Event.hh:43
Filter to remove events based on task.
Definition TaskFilter.hh:34
bool remove_name(const std::string &name)
Remove a process name from the filter.
bool remove_pid(uint64_t pid)
Remove a process ID.
bool remove_tid(uint64_t tid)
Remove a thread ID.
bool matches(const Event &event) const
Check if the event matches our task filter.
void add_name(const std::string &name)
Add a process name to the filter.
void add_pid(uint64_t pid)
Add a process ID.
void add_tid(uint64_t tid)
Add a thread ID.
void clear()
Clear all filters.
Core IntroVirt classes.
Definition Cr0.hh:20