Commit Graph

30 Commits

Author SHA1 Message Date
Laurent Morichetti 05ee3ff973 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
2022-09-13 08:23:40 -07:00
Laurent Morichetti c2b87b1fd7 Bring the HSA_EVT callbacks back to the roctracer
Change-Id: I26080b264d7989880ba7e9f00502cc680b2256d7
2022-09-06 19:38:12 -07:00
Laurent Morichetti 88c6e0a700 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
2022-09-06 19:11:11 -07:00
Ammar ELWazir 1c7c5cc112 Adding Plugin Interface
- Add roctracer plugins hooks
- Add Roctracer plugin environment variable
- Add the plugin class
- Add the plugin implementation

Change-Id: I12ee2e2be035abac14864764fb76837a4533cf60
2022-08-11 10:13:36 -05:00
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 836bab37d3 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
2022-06-09 15:20:14 -07:00
Laurent Morichetti 1c450082af Add ROCtracer version information
Change-Id: I10b268790d2dc4f3a3ad8624b2f553da6f3ccc8e
2022-05-24 23:52:29 -04: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 6567c48e98 codeobj tracing prof protocol
Change-Id: Ib49c8ee034fb7481b21f950490e10b350f2a1b79
2020-09-19 16:49:46 -05:00
Evgeny c1455827b7 activity entry struct fix 2020-03-07 20:35:24 -06:00
Evgeny d2243ef1ec pc sampling integration fix 2020-03-07 19:09:54 -06:00
Evgeny 8b63135ced PC sampling initial bringup 2020-02-28 14:01:40 -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
Evgeny 57051220a1 roctx/start/stop interaction 2019-10-21 21:18:54 -05:00
Evgeny b5a9dc7dd6 activity records stack 2019-10-06 23:13:57 -05:00
Rachida Kebichi 315a547cc4 Add KFD support. 2019-09-27 18:32:54 -04: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 15618153d3 fixed comments 2019-03-27 10:34:13 -05:00
Evgeny 9fa69d31c2 hsa activity tool api 2019-01-27 11:33:04 -06:00
Evgeny 0cde85dbb7 removing _ANY ops 2019-01-11 22:15:35 -06:00
Evgeny a0169f594c adding typedefs 2019-01-10 20:34:40 -06:00
Evgeny 91af7764ad async token mechanism 2019-01-10 03:01:15 -06:00
Evgeny 24c9b28a45 minor changes 2019-01-09 10:48:42 -06:00
Evgeny 5272bcc316 minor change 2019-01-07 18:58:01 -06:00
Evgeny 8f4cece27e HSA API callbacks and hsa test 2018-11-28 12:36:11 -06:00
Evgeny 65d8c3be39 process/thread IDs in API records 2018-11-23 00:09:28 -06:00
Evgeny 48d69df3ee packaging 2018-11-13 17:09:58 -06:00