30 Commits

Author SHA1 Message Date
Laurent Morichetti e8cb732660 Cleanup the include files
Use #include "header" instead of #include <header> so that the header
files are found when the application #includes <roctracer/roctracer.h>
with -I /opt/rocm/include.

Change-Id: I24feac9a5030d3600aee98084340e246c3990db5


[ROCm/roctracer commit: 05ee3ff973]
2022-09-13 08:23:40 -07:00
Laurent Morichetti 8548060d8d Bring the HSA_EVT callbacks back to the roctracer
Change-Id: I26080b264d7989880ba7e9f00502cc680b2256d7


[ROCm/roctracer commit: c2b87b1fd7]
2022-09-06 19:38:12 -07:00
Laurent Morichetti f50c9d4149 SWDEV-351980 - Don't allocate hip_api_data and record
The HIP runtime is now allocating the hip_api_data and record on its
stack so we don't need the thread local record_data_pair stack anymore.

Refactor the API callback function to handle both the case where
synchronous user callbacks are requested and the case where asynchronous
records are requested (enable_callback & enable_activity respectively).
If the callback argument (memory pool) is not null, then activity
records are requested.

Remove CorrelationIdRegister and CorrelationIdLookup. These were used
by the HIP runtime to associate a HIP record id to a ROCtracer
correlation id. Instead, the HIP runtime is now using the correlation
ID returned in the hip_api_data_t.

Added a test to check enabling/disabling concurrent callbacks and
activities.

Change-Id: I5850cfead9861eb3602a3e8fcb7b22580d5fc979


[ROCm/roctracer commit: 88c6e0a700]
2022-09-06 19:11:11 -07:00
Ammar ELWazir 386847b9f4 Adding Plugin Interface
- Add roctracer plugins hooks
- Add Roctracer plugin environment variable
- Add the plugin class
- Add the plugin implementation

Change-Id: I12ee2e2be035abac14864764fb76837a4533cf60


[ROCm/roctracer commit: 1c7c5cc112]
2022-08-11 10:13:36 -05:00
Ammar ELWazir 0d5a4c80a3 SWDEV-342613: Adding typedef for timestamps
Adding roctracer_timestamp_t to be unified type for every timestamp in the roctracer project

Change-Id: I22f18c303bd2d02d1e6079b76da6b128eb384fdd


[ROCm/roctracer commit: 581c37502f]
2022-07-08 21:08:35 -04:00
Laurent Morichetti c3e991dfb1 Remove EvtStats from the tracer_tool
The same information can be generated from the hcc_ops_trace.txt file,
so in a later commit, will add a stage to the tblextr.py script to
generate the .csv files when ROCP_STATS_OPT=1.

Change-Id: I3d1575e096bedf98c66068d9a4ca141421e5bb9d


[ROCm/roctracer commit: 836bab37d3]
2022-06-09 15:20:14 -07:00
Laurent Morichetti ef717b9a2a Add ROCtracer version information
Change-Id: I10b268790d2dc4f3a3ad8624b2f553da6f3ccc8e


[ROCm/roctracer commit: 1c450082af]
2022-05-24 23:52:29 -04:00
Laurent Morichetti 23528f51e0 Run clang-format on all source files
Change-Id: Ifb52ca306286b6b2d473821bed9db28e9f616d50


[ROCm/roctracer commit: 15ab5d9cda]
2022-04-20 22:45:54 -04:00
Laurent Morichetti 80c01a27c0 Fix copyright headers
Change-Id: I380d867fa5fb04e68b5b332e9abf33fbeb1e9418


[ROCm/roctracer commit: 06a3da7c63]
2022-04-19 09:30:45 -07:00
Evgeny f7549dfde3 codeobj tracing prof protocol
Change-Id: Ib49c8ee034fb7481b21f950490e10b350f2a1b79


[ROCm/roctracer commit: 6567c48e98]
2020-09-19 16:49:46 -05:00
Evgeny 362bfed749 activity entry struct fix
[ROCm/roctracer commit: c1455827b7]
2020-03-07 20:35:24 -06:00
Evgeny bc7acebcea pc sampling integration fix
[ROCm/roctracer commit: d2243ef1ec]
2020-03-07 19:09:54 -06:00
Evgeny acb2bcc0fe PC sampling initial bringup
[ROCm/roctracer commit: 8b63135ced]
2020-02-28 14:01:40 -06:00
Evgeny 51c103a1d2 adding API specification
[ROCm/roctracer commit: b2d124d2be]
2019-12-31 07:05:32 -06:00
Evgeny bca4e77df9 normalizing C API
[ROCm/roctracer commit: 077f8ec6b6]
2019-12-29 03:06:11 -06:00
Evgeny 05a07a9e7f roctx/start/stop interaction
[ROCm/roctracer commit: 57051220a1]
2019-10-21 21:18:54 -05:00
Evgeny 70c748bdda activity records stack
[ROCm/roctracer commit: b5a9dc7dd6]
2019-10-06 23:13:57 -05:00
Rachida Kebichi 0c407e3cf4 Add KFD support.
[ROCm/roctracer commit: 315a547cc4]
2019-09-27 18:32:54 -04:00
Evgeny 0376e89fd9 roctracer extension APIs: mark, external id push/pop
[ROCm/roctracer commit: 719e9221a5]
2019-09-05 09:55:29 -05:00
Evgeny 1e9061fe56 roctx marka implementation
[ROCm/roctracer commit: 231e25747f]
2019-08-30 08:53:34 -05:00
Evgeny 5b2421a382 fixed comments
[ROCm/roctracer commit: 15618153d3]
2019-03-27 10:34:13 -05:00
Evgeny 9795879c85 hsa activity tool api
[ROCm/roctracer commit: 9fa69d31c2]
2019-01-27 11:33:04 -06:00
Evgeny ae4118c794 removing _ANY ops
[ROCm/roctracer commit: 0cde85dbb7]
2019-01-11 22:15:35 -06:00
Evgeny 8ba0a6d74d adding typedefs
[ROCm/roctracer commit: a0169f594c]
2019-01-10 20:34:40 -06:00
Evgeny eb582387c1 async token mechanism
[ROCm/roctracer commit: 91af7764ad]
2019-01-10 03:01:15 -06:00
Evgeny ca006ca83a minor changes
[ROCm/roctracer commit: 24c9b28a45]
2019-01-09 10:48:42 -06:00
Evgeny 3e37e001fa minor change
[ROCm/roctracer commit: 5272bcc316]
2019-01-07 18:58:01 -06:00
Evgeny 6d9d1ccb24 HSA API callbacks and hsa test
[ROCm/roctracer commit: 8f4cece27e]
2018-11-28 12:36:11 -06:00
Evgeny 5a2cf2fea8 process/thread IDs in API records
[ROCm/roctracer commit: 65d8c3be39]
2018-11-23 00:09:28 -06:00
Evgeny 3bfaddf6a4 packaging
[ROCm/roctracer commit: 48d69df3ee]
2018-11-13 17:09:58 -06:00