Skip to content

Commit

Permalink
Skip unknown events when --only is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
albertziegenhagel committed Oct 12, 2024
1 parent ddefd56 commit 4a82729
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/etl_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,13 +513,15 @@ int main(int argc, char* argv[])
[[maybe_unused]] const etl::any_guid_trace_header& header,
const std::span<const std::byte>& event_data)
{
if(!options.only.empty()) return;
if(options.dump_events) common::detail::dump_buffer(event_data, 0, event_data.size(), "event");
});
observer.register_unknown_event(
[&options]([[maybe_unused]] const etl::etl_file::header_data& file_header,
[[maybe_unused]] const etl::any_group_trace_header& header,
const std::span<const std::byte>& event_data)
{
if(!options.only.empty()) return;
if(options.dump_events) common::detail::dump_buffer(event_data, 0, event_data.size(), "event");
});
}
Expand Down

0 comments on commit 4a82729

Please sign in to comment.