|
libintrovirt v0.57.4
IntroVirt introspection library
|
Filter to remove events based on task. More...
#include <TaskFilter.hh>
Public Member Functions | |
| void | add_pid (uint64_t pid) |
| Add a process ID. | |
| bool | remove_pid (uint64_t pid) |
| Remove a process ID. | |
| void | add_tid (uint64_t tid) |
| Add a thread ID. | |
| bool | remove_tid (uint64_t tid) |
| Remove a thread ID. | |
| void | add_name (const std::string &name) |
| Add a process name to the filter. | |
| bool | remove_name (const std::string &name) |
| Remove a process name from the filter. | |
| void | clear () |
| Clear all filters. | |
| bool | matches (const Event &event) const |
| Check if the event matches our task filter. | |
| TaskFilter ()=default | |
| ~TaskFilter ()=default | |
Filter to remove events based on task.
This class allows you to filter for events related to a process, thread, or process name. Adding an entry to the list means that events will be delivered for tasks matching the entry.
|
default |
|
default |
| void introvirt::TaskFilter::add_name | ( | const std::string & | name | ) |
Add a process name to the filter.
The name comparison is case-insensitive. It's also only treated as a prefix. For example, "exp" will match "explorer.exe".
| name | The name to add |
| void introvirt::TaskFilter::add_pid | ( | uint64_t | pid | ) |
| void introvirt::TaskFilter::add_tid | ( | uint64_t | tid | ) |
Add a thread ID.
| tid | The TID to filter for |
| void introvirt::TaskFilter::clear | ( | ) |
| bool introvirt::TaskFilter::matches | ( | const Event & | event | ) | const |
Check if the event matches our task filter.
| event |
| bool introvirt::TaskFilter::remove_name | ( | const std::string & | name | ) |
Remove a process name from the filter.
| name | The name to remove |
| bool introvirt::TaskFilter::remove_pid | ( | uint64_t | pid | ) |
Remove a process ID.
| pid | The PID to remove |
| bool introvirt::TaskFilter::remove_tid | ( | uint64_t | tid | ) |
Remove a thread ID.
| tid | The TID to remove |