Skip to content

Commit

Permalink
Rename omnitrace-capchk binary
Browse files Browse the repository at this point in the history
  • Loading branch information
dgaliffiAMD committed Sep 14, 2024
1 parent 20b3905 commit c6252b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/omnitrace-capchk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ int
main(int argc, char** argv)
{
const auto* _usage = R"usage(
usage: omnitrace-capchk <capability-name> <capability-set> <pid>
usage: rocprof-sys-capchk <capability-name> <capability-set> <pid>
Description:
Simple tool for checking the effective capabilities of a running process
Expand Down Expand Up @@ -382,10 +382,10 @@ usage: omnitrace-capchk <capability-name> <capability-set> <pid>
3 if the capability set name is not supported
Examples:
$ omnitrace-capchk CAP_SYS_ADMIN
$ rocprof-sys-capchk CAP_SYS_ADMIN
Check if this exe (self) has CAP_SYS_ADMIN capability in the (default) effective capability set
$ omnitrace-capchk sys_admin bounding 423032
$ rocprof-sys-capchk sys_admin bounding 423032
Check if process 423032 has CAP_SYS_ADMIN capability in the bounding capability set
)usage";

Expand Down
6 changes: 3 additions & 3 deletions tests/omnitrace-testing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -195,20 +195,20 @@ endif()

execute_process(
COMMAND ${CMAKE_CXX_COMPILER} -O2 -g -std=c++17
${CMAKE_CURRENT_LIST_DIR}/omnitrace-capchk.cpp -o omnitrace-capchk
${CMAKE_CURRENT_LIST_DIR}/omnitrace-capchk.cpp -o rocprof-sys-capchk
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/bin
RESULT_VARIABLE _capchk_compile
OUTPUT_QUIET ERROR_QUIET)

if(_capchk_compile EQUAL 0)
execute_process(
COMMAND ${PROJECT_BINARY_DIR}/bin/omnitrace-capchk CAP_SYS_ADMIN effective
COMMAND ${PROJECT_BINARY_DIR}/bin/rocprof-sys-capchk CAP_SYS_ADMIN effective
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
RESULT_VARIABLE omnitrace_cap_sys_admin
OUTPUT_QUIET ERROR_QUIET)

execute_process(
COMMAND ${PROJECT_BINARY_DIR}/bin/omnitrace-capchk CAP_PERFMON effective
COMMAND ${PROJECT_BINARY_DIR}/bin/rocprof-sys-capchk CAP_PERFMON effective
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
RESULT_VARIABLE omnitrace_cap_perfmon
OUTPUT_QUIET ERROR_QUIET)
Expand Down

0 comments on commit c6252b9

Please sign in to comment.