b65f8e7605
* Update perfetto args.gn.in
- remove enable_perfetto_tools_trace_to_text (unused)
* core timeout implementation
- requires OMNITRACE_CI=ON
- requires OMNITRACE_CI_TIMEOUT=<sec>
- adds pthread_self and std::this_thread::get_id to thread info
- pthread_create_gotcha stores native handles (pthread_self)
* Testing updates
- improve detection of segfault/failures with PASS_REGEX exists
- add OMNITRACE_CI_TIMEOUT env variable to all tests
* Line-info in releases
- e.g. -g1 + more options to minimize size of debug info
* Fix typo in config exit action message
* OMNITRACE_UNLIKELY around debug/verbose messages
* format fixes
* Overflow tests + capability check
* transpose example update
- link to threads library
* roctracer/rocprofiler update
- in ROCm 5.5.0, cannot include rocprofiler.h and roctracer.h in same file due to conflicting enum defs
- Moved HSA tracing setup/shutdown to component::roctracer
* roctracer update
- fix definition of roctracer::setup when disabled
* Update fork example
- detach threads on main PID
- flush io outputs when printing info
* Update overflow tests
- pass regular expressions
- overflow on PERF_COUNT_SW_CPU_CLOCK event
* fork gotcha update
- use getpid() instead of getppid()
* update fork example
- wait on threads calling fork
* timeout update
- wait on timeout thread to launch before proceeding
[ROCm/rocprofiler-systems commit: 3e2fa69a14]
53 lines
1.3 KiB
CMake
53 lines
1.3 KiB
CMake
# -------------------------------------------------------------------------------------- #
|
|
#
|
|
# general config file tests
|
|
#
|
|
# -------------------------------------------------------------------------------------- #
|
|
|
|
file(
|
|
WRITE ${CMAKE_CURRENT_BINARY_DIR}/invalid.cfg
|
|
"
|
|
OMNITRACE_CONFIG_FILE =
|
|
FOOBAR = ON
|
|
")
|
|
|
|
if(TARGET parallel-overhead)
|
|
set(_CONFIG_TEST_EXE $<TARGET_FILE:parallel-overhead>)
|
|
else()
|
|
set(_CONFIG_TEST_EXE ls)
|
|
endif()
|
|
|
|
add_test(
|
|
NAME omnitrace-invalid-config
|
|
COMMAND $<TARGET_FILE:omnitrace-instrument> -- ${_CONFIG_TEST_EXE}
|
|
WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
|
|
|
|
set_tests_properties(
|
|
omnitrace-invalid-config
|
|
PROPERTIES
|
|
ENVIRONMENT
|
|
"OMNITRACE_CONFIG_FILE=${CMAKE_CURRENT_BINARY_DIR}/invalid.cfg;OMNITRACE_CI=ON;OMNITRACE_CI_TIMEOUT=120"
|
|
TIMEOUT
|
|
120
|
|
LABELS
|
|
"config"
|
|
WILL_FAIL
|
|
ON)
|
|
|
|
add_test(
|
|
NAME omnitrace-missing-config
|
|
COMMAND $<TARGET_FILE:omnitrace-instrument> -- ${_CONFIG_TEST_EXE}
|
|
WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
|
|
|
|
set_tests_properties(
|
|
omnitrace-missing-config
|
|
PROPERTIES
|
|
ENVIRONMENT
|
|
"OMNITRACE_CONFIG_FILE=${CMAKE_CURRENT_BINARY_DIR}/missing.cfg;OMNITRACE_CI=ON;OMNITRACE_CI_TIMEOUT=120"
|
|
TIMEOUT
|
|
120
|
|
LABELS
|
|
"config"
|
|
WILL_FAIL
|
|
ON)
|