Skip to content

Commit

Permalink
Telemetry and pid updates (Xilinx#8442)
Browse files Browse the repository at this point in the history
* telemetry and pid updates

Signed-off-by: AShivangi <[email protected]>

* remove printing preemption flags

Signed-off-by: AShivangi <[email protected]>

---------

Signed-off-by: AShivangi <[email protected]>
  • Loading branch information
AShivangi authored Sep 25, 2024
1 parent 3e4f7fd commit 3353291
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime_src/core/common/query_requests.h
Original file line number Diff line number Diff line change
Expand Up @@ -1720,6 +1720,8 @@ struct misc_telemetry : request
{
struct data {
uint64_t l1_interrupts;
uint64_t preemption_flag_set;
uint64_t preemption_flag_unset;
};

using result_type = data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ populate_aie_partition(const xrt_core::device* device)
auto partition = pt_map.emplace(std::make_tuple(entry.start_col, entry.num_cols), boost::property_tree::ptree());

boost::property_tree::ptree pt_entry;
pt_entry.put("pid", entry.pid);
pt_entry.put("context_id", entry.metadata.id);
pt_entry.put("instr_bo_mem", entry.instruction_mem);
pt_entry.put("command_submissions", entry.command_submissions);
Expand Down Expand Up @@ -142,6 +143,7 @@ writeReport(const xrt_core::device* /*_pDevice*/,
}

const std::vector<Table2D::HeaderData> table_headers = {
{"PID", Table2D::Justification::left},
{"Ctx ID", Table2D::Justification::left},
{"Instr BO", Table2D::Justification::left},
{"Sub", Table2D::Justification::left},
Expand All @@ -161,6 +163,7 @@ writeReport(const xrt_core::device* /*_pDevice*/,
const auto& hw_context = pt_hw_context.second;

const std::vector<std::string> entry_data = {
hw_context.get<std::string>("pid"),
hw_context.get<std::string>("context_id"),
xrt_core::utils::unit_convert(hw_context.get<uint64_t>("instr_bo_mem")),
hw_context.get<std::string>("command_submissions"),
Expand Down

0 comments on commit 3353291

Please sign in to comment.