Class for a BtfEntry.
More...
#include <btf.h>
Class for a BtfEntry.
A BtfEntry object is equivalent to a line in a BTF file.
◆ eventToString()
std::string btf::BtfEntry::eventToString |
( |
| ) |
const |
Converts union Events into string according to the type_ of the BtfEntry.
- Returns
- String if type_ and Events type are valid, else a fatal error is triggered.
◆ toString()
std::string btf::BtfEntry::toString |
( |
std::unordered_map< size_t, std::string > & |
hash_map | ) |
const |
Converts a BtfEntry into string.
- Parameters
-
[in] | hash_map | Unordered map which contains all hash values of the current BtfEntry. |
- Returns
- String if type_ and Events type are valid, else a fatal error is triggered.
◆ event_
◆ note_
std::string btf::BtfEntry::note_ |
◆ source_hash_
size_t btf::BtfEntry::source_hash_ {0} |
Unique hash value of the source.
◆ source_instance_
uint64_t btf::BtfEntry::source_instance_ {0} |
Source instance that triggered the event.
◆ target_hash_
size_t btf::BtfEntry::target_hash_ {0} |
Unique hash value of the target.
◆ target_instance_
uint64_t btf::BtfEntry::target_instance_ {0} |
Target instance of the event.
◆ time_
uint64_t btf::BtfEntry::time_ {0} |
◆ type_
Entity type of the BtfEntry. The default value is "unknown".
The documentation for this class was generated from the following files: