diff options
Diffstat (limited to 'src/traced/probes/ftrace/proto_translation_table.h')
-rw-r--r-- | src/traced/probes/ftrace/proto_translation_table.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/traced/probes/ftrace/proto_translation_table.h b/src/traced/probes/ftrace/proto_translation_table.h index f9c5be602..83dd19d6b 100644 --- a/src/traced/probes/ftrace/proto_translation_table.h +++ b/src/traced/probes/ftrace/proto_translation_table.h @@ -19,6 +19,7 @@ #include <stdint.h> +#include <iostream> #include <map> #include <memory> #include <set> @@ -65,6 +66,10 @@ class GroupAndName { std::string name_; }; +inline void PrintTo(const GroupAndName& event, ::std::ostream* os) { + *os << "GroupAndName(" << event.group() << ", " << event.name() << ")"; +} + bool InferFtraceType(const std::string& type_and_name, size_t size, bool is_signed, |