Skip to content

Commit

Permalink
i#6822 unscheduled: Add drmemtrace view support for new markers
Browse files Browse the repository at this point in the history
Adds drmemtrace view tool support for the 3 new markers added
in PR #6826.

Issue: #6822
  • Loading branch information
derekbruening committed May 30, 2024
1 parent 7673d42 commit 48731b6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion clients/drcachesim/tools/view.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2017-2023 Google, Inc. All rights reserved.
* Copyright (c) 2017-2024 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -426,6 +426,17 @@ view_t::parallel_shard_memref(void *shard_data, const memref_t &memref)
std::cerr << "<marker: direct switch to thread " << memref.marker.marker_value
<< ">\n";
break;
case TRACE_MARKER_TYPE_SYSCALL_UNSCHEDULE:
std::cerr << "<marker: current thread going unscheduled\n";
break;
case TRACE_MARKER_TYPE_SYSCALL_SCHEDULE:
std::cerr << "<marker: re-schedule thread " << memref.marker.marker_value
<< ">\n";
break;
case TRACE_MARKER_TYPE_SYSCALL_ARG_TIMEOUT:
std::cerr << "<marker: syscall timeout arg " << memref.marker.marker_value
<< ">\n";
break;
case TRACE_MARKER_TYPE_WINDOW_ID:
// Handled above.
break;
Expand Down

0 comments on commit 48731b6

Please sign in to comment.