Skip to content

Commit

Permalink
Fixes build
Browse files Browse the repository at this point in the history
  • Loading branch information
bmario committed Mar 10, 2022
1 parent f6889c4 commit 31f3464
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/trace/trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ otf2::writer::local& Trace::bio_writer(BlockDevice& device)

const auto& intern_location = registry_.emplace<otf2::definition::location>(
ByDev(device.id), name, bio_location_group,
otf2::definition::location::location_type::process);
otf2::definition::location::location_type::cpu_thread);

hardware_comm_locations_group_.add_member(intern_location);
return archive_(intern_location);
Expand Down Expand Up @@ -457,7 +457,7 @@ otf2::definition::io_handle& Trace::block_io_handle(BlockDevice& device)
const auto& device_name = intern(device.name);

const otf2::definition::system_tree_node& parent = bio_parent_node(device);
Log::error() << parent.name();

std::string device_class = (device.type == BlockDeviceType::PARTITION) ? "partition" : "disk";

const auto& node = registry_.emplace<otf2::definition::system_tree_node>(
Expand All @@ -467,7 +467,8 @@ otf2::definition::io_handle& Trace::block_io_handle(BlockDevice& device)
registry_.emplace<otf2::definition::io_regular_file>(ByDev(device.id), device_name, node);

const auto& block_comm =
registry_.emplace<otf2::definition::comm>(ByDev(device.id), device_name, bio_comm_group_);
registry_.emplace<otf2::definition::comm>(ByDev(device.id), device_name, bio_comm_group_,
otf2::definition::comm::comm_flag_type::none);

// we could have io handle parents and childs here (block device being the parent (sda),
// partition being the child (sda1)) but that seems like it would be overkill.
Expand Down

0 comments on commit 31f3464

Please sign in to comment.