Skip to content

Commit

Permalink
Fix build issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav92003 committed Oct 19, 2023
1 parent b686887 commit 2d9150c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
18 changes: 10 additions & 8 deletions clients/drcachesim/tracer/drmemtrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,15 @@ DR_EXPORT
drmemtrace_status_t
drmemtrace_replace_file_ops_ex(drmemtrace_replace_file_ops_t *ops);

DR_EXPORT
/**
* Retrieves the full path to the output directory in -offline mode
* where data is being written.
*/
drmemtrace_status_t
drmemtrace_get_output_path(OUT const char **path);

#ifdef BUILD_PT_TRACER
DR_EXPORT
/**
* Retrieves the full path to the kcore file in -offline mode when kernel system
Expand All @@ -293,14 +302,6 @@ DR_EXPORT
drmemtrace_status_t
drmemtrace_get_kallsyms_path(OUT const char **path);

DR_EXPORT
/**
* Retrieves the full path to the output directory in -offline mode
* where data is being written.
*/
drmemtrace_status_t
drmemtrace_get_output_path(OUT const char **path);

DR_EXPORT
/**
* Retrieves the full path to the output directory in -offline mode
Expand All @@ -309,6 +310,7 @@ DR_EXPORT
*/
drmemtrace_status_t
drmemtrace_get_kernel_pt_output_path(OUT const char **path);
#endif

DR_EXPORT
/**
Expand Down
14 changes: 8 additions & 6 deletions clients/drcachesim/tracer/tracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2172,29 +2172,30 @@ drmemtrace_buffer_handoff(drmemtrace_handoff_func_t handoff_func,
}

drmemtrace_status_t
drmemtrace_get_kcore_path(OUT const char **path)
drmemtrace_get_output_path(OUT const char **path)
{
if (path == NULL)
return DRMEMTRACE_ERROR_INVALID_PARAMETER;
*path = kcore_path;
*path = logsubdir;
return DRMEMTRACE_SUCCESS;
}

#ifdef BUILD_PT_TRACER
drmemtrace_status_t
drmemtrace_get_kallsyms_path(OUT const char **path)
drmemtrace_get_kcore_path(OUT const char **path)
{
if (path == NULL)
return DRMEMTRACE_ERROR_INVALID_PARAMETER;
*path = kallsyms_path;
*path = kcore_path;
return DRMEMTRACE_SUCCESS;
}

drmemtrace_status_t
drmemtrace_get_output_path(OUT const char **path)
drmemtrace_get_kallsyms_path(OUT const char **path)
{
if (path == NULL)
return DRMEMTRACE_ERROR_INVALID_PARAMETER;
*path = logsubdir;
*path = kallsyms_path;
return DRMEMTRACE_SUCCESS;
}

Expand All @@ -2206,6 +2207,7 @@ drmemtrace_get_kernel_pt_output_path(OUT const char **path)
*path = kernel_pt_logsubdir;
return DRMEMTRACE_SUCCESS;
}
#endif

drmemtrace_status_t
drmemtrace_get_modlist_path(OUT const char **path)
Expand Down

0 comments on commit 2d9150c

Please sign in to comment.