Skip to content

Commit

Permalink
Support subclassing drmemtrace syscall_mix data (DynamoRIO#6834)
Browse files Browse the repository at this point in the history
Adds a virtual destructor to the drmemtrace tool
syscall_mix_t::shard_data_t, to support subclassing that struct
for extended usage such as tracking callstacks for each syscall.
  • Loading branch information
derekbruening authored May 31, 2024
1 parent 51ce23c commit 8419c47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clients/drcachesim/tools/syscall_mix.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ class syscall_mix_t : public analysis_tool_t {

protected:
struct shard_data_t {
// Provide a virtual destructor to allow subclassing.
virtual ~shard_data_t() = default;
std::unordered_map<int, int64_t> syscall_counts;
std::unordered_map<int, int64_t> syscall_trace_counts;
std::string error;
Expand Down

0 comments on commit 8419c47

Please sign in to comment.