Commit graph

44 Commits

Autor SHA1 Nachricht Datum
Ammar ELWazir 581c37502f SWDEV-342613: Adding typedef for timestamps
Adding roctracer_timestamp_t to be unified type for every timestamp in the roctracer project

Change-Id: I22f18c303bd2d02d1e6079b76da6b128eb384fdd
2022-07-08 21:08:35 -04:00
Laurent Morichetti 15f65a4d27 Fix typos
Change-Id: I90df287a3b0f501a5dcb4b37a2bd3b9d5695f582
2022-05-24 23:53:01 -04:00
Laurent Morichetti 1c450082af Add ROCtracer version information
Change-Id: I10b268790d2dc4f3a3ad8624b2f553da6f3ccc8e
2022-05-24 23:52:29 -04:00
Laurent Morichetti 8ee9d859ed Remove internal functions from the ROCtracer API
The roctracer_load, roctracer_unload, and roctrace_flush_buf functions
are not part of the ROCtracer API, and should not be exposed in the API
header file, but keep the functions in the library for backward
compatibility.

Add src/roctracer/backward_compat.cpp to implement retired functions.

Add test/app/backward_compat_test.cpp to test that the retired functions
are still accessible in the latest roctracer library.

Change-Id: I4c94310a7bfccfeae9384dac5db18fc79b4c5b17
2022-05-24 15:52:29 -07:00
Tony Tye a4db4084db Improve error reporting and error codes
Make error codes more informative and have negative values. This is an
ABI break but it does not appear known tools are relying on the exact
error codes.

Use logging for all errors so that roctracer_error_string will be able
to return last error message.

Make internal errors fatal and abort.

Do not use the tracer API exceptions in the tracer tool.

Change-Id: Ie8ed3d50e5ad26625ac9d1263f7e048edb5584c0
2022-05-24 15:32:56 -04:00
Tony Tye c837bcad78 Eliminate static inline in api
Change-Id: Ia25636ca4a7e4b6d763ef8d6003845e7d1df5f50
2022-05-18 15:23:19 +00:00
Tony Tye feb652e45d Improve pool error checking
Check if a default pool is defined when enabling activities.

Set default pool to undefined if it is deleted.

Disable activities associated with the pool when it is deleted.

Document restrictions on deleting pools.

Change-Id: Ide466b55cab12ca2dd67d9f26b578f421e45a376
2022-05-18 15:23:19 +00:00
Tony Tye 1f630a9291 Add doxygen to roctracer.h
Change-Id: Ie542399e990e02482ed740d99c6afe4b95b1f6f4
2022-04-30 00:33:05 +00:00
Laurent Morichetti 18f60efe05 Fix typos/spelling errors
Change-Id: Idec1cb8fab91c30f99563bc7dd4db1faeb2db954
2022-04-26 12:39:38 -07:00
Laurent Morichetti 85552ea3a0 Move the HccLoader activities into the HipLoader
The HCC runtime is no longer used, so move all the remaining
activities in the HipApi loader and remove the HccLoader.

Change-Id: I845c04ca275a474526840315bae0ad1a4ce02257
2022-04-22 11:22:07 -07:00
Laurent Morichetti 15ab5d9cda Run clang-format on all source files
Change-Id: Ifb52ca306286b6b2d473821bed9db28e9f616d50
2022-04-20 22:45:54 -04:00
Laurent Morichetti 06a3da7c63 Fix copyright headers
Change-Id: I380d867fa5fb04e68b5b332e9abf33fbeb1e9418
2022-04-19 09:30:45 -07:00
Evgeny 2f608e067a incrementing API version because of HIP API changes
Change-Id: I19e42ca75d8050b44b1cdf70cac7dfdff1ab5d57
2020-08-15 03:25:57 -04:00
Evgeny 07479cf881 adding tracer flush/unload stage unloading
Change-Id: Id84774b2ce20b261a9a84d2ad802b76093a748d4
2020-06-02 05:10:02 -05:00
Evgeny 074306d997 SWDEV-236864 : packaging of generated headers
Change-Id: Ifda69eecf3697f6b69c978b3c4c2ffe9835edeb8
2020-05-18 18:08:06 -05:00
Evgeny eebde5e82e increasing API version
Change-Id: I30c1b5b22d0bef8cf57e9703261e397f3d2fa77a
2020-05-12 12:45:18 -04:00
Evgeny 8b63135ced PC sampling initial bringup 2020-02-28 14:01:40 -06:00
Evgeny f214221bb2 control of trace buffer thread start 2020-01-27 14:31:24 -06:00
Evgeny abe07f7b4d fixing link errors 2020-01-13 12:19:04 -06:00
Evgeny b2d124d2be adding API specification 2019-12-31 07:05:32 -06:00
Evgeny 077f8ec6b6 normalizing C API 2019-12-29 03:06:11 -06:00
Wen-Heng (Jack) Chung b7aa8fedb7 Introduce a new API roctracer_get_timestamp().
roctracer_status_t roctracer_get_timestamp(uint64_t* timestamp);

Get system timestamp for roctracer clients.

The API could be used to help roctracer clients understand the reference frame
of timestamps when receiving activity callbacks, as the nanoseconds reported in
the activity callbacks are not in the same reference frame as CPU walltime
clock.
2019-12-19 18:05:33 +00:00
Wen-Heng (Jack) Chung f730fb6a4e Revise the return type of roctracer_next_record to roctracer_status_t. 2019-11-06 10:54:45 -06:00
Evgeny 719e9221a5 roctracer extension APIs: mark, external id push/pop 2019-09-05 09:55:29 -05:00
Evgeny 231e25747f roctx marka implementation 2019-08-30 08:53:34 -05:00
Evgeny 91bcc4cc74 roctx loader 2019-07-27 06:19:35 -05:00
Evgeny b33389b30f trace buffer wrapping 2019-07-13 00:38:12 -05:00
Evgeny c1cca98a71 multiple changes update 2019-06-28 12:47:06 -05:00
Evgeny 15618153d3 fixed comments 2019-03-27 10:34:13 -05:00
Evgeny a530e509fe tool xml input 2019-01-17 22:39:53 -06:00
Evgeny 0cde85dbb7 removing _ANY ops 2019-01-11 22:15:35 -06:00
Evgeny 8f4cece27e HSA API callbacks and hsa test 2018-11-28 12:36:11 -06:00
Evgeny 48d69df3ee packaging 2018-11-13 17:09:58 -06:00
Evgeny dd19d85644 API normalizing 2018-11-05 02:31:37 -06:00
Evgeny cab6cf9970 inline doc update 2018-08-26 19:30:19 -05:00
Evgeny 324623cbac API update 2018-08-26 19:11:31 -05:00
Evgeny a27f63b110 licensing annotation 2018-08-08 15:47:30 -05:00
Evgeny c7f4758675 adding prof-protocol layer 2018-08-07 03:25:55 -05:00
Evgeny 6dee8519e8 callbacks sync 2018-06-18 21:43:40 -05:00
Evgeny b71675077a deleting consumer thread on pool destruction 2018-06-18 12:59:07 -05:00
Evgeny 53b9f54af8 adding roctracer_id_string; domain any; HIP/HCC domains 2018-06-01 19:09:18 -05:00
Evgeny 21d6c00bb6 more features 2018-05-25 22:39:22 -05:00
Evgeny 5151f6ce04 betta version 2018-05-25 01:56:25 -05:00
Evgeny 0a934cff68 Initial commit 2018-05-10 13:19:10 -05:00