Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL][XPTI] Add accessor events #5249

Merged
merged 9 commits into from
Jan 4, 2022
Prev Previous commit
Next Next commit
Add missing line number to internal XPTI hash calculations
  • Loading branch information
vladimirlaz committed Dec 30, 2021
commit df2a261a9e7d96b7243b93096f18867f6174e615
5 changes: 3 additions & 2 deletions xptifw/src/xpti_trace_framework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ class Tracepoints {
// Add source file information ot string table
source_id =
MStringTableRef.add(Payload->source_file, &Payload->source_file);
line_no = Payload->line_no;
}
if ((Payload->flags &
static_cast<uint64_t>(payload_flag_t::StackTraceAvailable))) {
Expand All @@ -448,15 +449,15 @@ class Tracepoints {
MStringTableRef.add(Payload->stack_trace, &Payload->stack_trace);
}
// Pack the 1st 64-bit value with string ID from source file name and line
// number; pack the 2nd 54-bit value with stack backtrace string ID and the
// number; pack the 2nd 64-bit value with stack backtrace string ID and the
// kernel name string ID
Payload->uid.p1 = XPTI_PACK32_RET64(source_id, line_no);
Payload->uid.p2 = XPTI_PACK32_RET64(stack_id, name_id);
// The code pointer for the kernel is already in 64-bit format
if ((Payload->flags &
static_cast<uint64_t>(payload_flag_t::CodePointerAvailable)))
Payload->uid.p3 = (uint64_t)Payload->code_ptr_va;
// Generate the had from the information available and this will be our
// Generate the hash from the information available and this will be our
// unique ID for the trace point.
HashValue = Payload->uid.hash();
Payload->flags |= static_cast<uint64_t>(payload_flag_t::HashAvailable);
Expand Down