rocprofiler-sdk/internal_threading.h Source File#
|
ROCprofiler-SDK developer API 1.0.0
ROCm Profiling API and tools
|
internal_threading.h
50 * @brief (experimental) Invoke this function to receive callbacks before and after the creation of
56 * invoked on the thread that is about to create the new thread (not on the newly created thread).
64 * the underlying system call to create a new thread but it does not guarantee that the new thread
65 * has been started. Please note, that once these callbacks are registered, they cannot be removed
71 * @param [in] libs Bitwise-or of libraries, e.g. `ROCPROFILER_LIBRARY | ROCPROFILER_MARKER_LIBRARY`
76 * @retval ::ROCPROFILER_STATUS_SUCCESS There are currently no conditions which result in any other
87 * @brief (experimental) opaque handle to an internal thread identifier which delivers callbacks for
98 * associated with a particular buffer, will guarantee those buffered results always get delivered
105 * @retval ::ROCPROFILER_STATUS_ERROR_CONFIGURATION_LOCKED Thread creation is no longer available
115 * @brief (experimental) By default, all buffered results are delivered on the same thread. Using
122 * @retval ::ROCPROFILER_STATUS_SUCCESS Successful assignment of the delivery thread for the given
124 * @retval ::ROCPROFILER_STATUS_ERROR_CONFIGURATION_LOCKED Thread assignment is no longer available
126 * @retval ::ROCPROFILER_STATUS_ERROR_THREAD_NOT_FOUND Thread identifier did not match any of the
128 * @retval ::ROCPROFILER_STATUS_ERROR_BUFFER_NOT_FOUND Buffer identifier did not match any of the
rocprofiler_runtime_library_t
Enumeration for specifying runtime libraries supported by rocprofiler. This enumeration is used for t...
Definition fwd.h:397
void(* rocprofiler_internal_thread_library_cb_t)(rocprofiler_runtime_library_t, void *)
(experimental) Callback type before and after internal thread creation.
Definition internal_threading.h:47
rocprofiler_status_t rocprofiler_assign_callback_thread(rocprofiler_buffer_id_t buffer_id, rocprofiler_callback_thread_t cb_thread_id)
(experimental) By default, all buffered results are delivered on the same thread. Using rocprofiler_c...
rocprofiler_status_t rocprofiler_at_internal_thread_create(rocprofiler_internal_thread_library_cb_t precreate, rocprofiler_internal_thread_library_cb_t postcreate, int libs, void *data)
(experimental) Invoke this function to receive callbacks before and after the creation of an internal...
rocprofiler_status_t rocprofiler_create_callback_thread(rocprofiler_callback_thread_t *cb_thread_id)
(experimental) Create a handle to a unique thread (created by rocprofiler) which, when associated wit...
(experimental) opaque handle to an internal thread identifier which delivers callbacks for buffers
Definition internal_threading.h:92
Generated by