Commit Graph

43 Commits

Author SHA1 Message Date
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 f8462b8637 Consolidate all sources of timestamps
System clock timestamps should only come from a single source:
util::timestamp_ns(). Externally, this function is exposed as
roctracer_get_timestamp() (used by the tracer tool).

Removed the now unused HSA Runtime Utilities which were never part
of the ROCtracer API.

Change-Id: I044b7f4da60fd8fdb771b0c877622a3143f0e815
2022-05-10 08:13:09 -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
Saravanan Solaiyappan bfea525ff3 roctracer: Consider apt upgrade operation check in package scripts.
Include the upgrade operation check in the prerm script
in package.

Signed-off-by: Saravanan Solaiyappan <saravanan.solaiyappan@amd.com>
Change-Id: I1504ce96a27d21d9c3d9bafc0dea8055398adc99
2022-03-21 23:43:19 -04: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 00392acd51 package post scripts fix 2019-01-29 13:48:45 -06:00
Evgeny 9fa69d31c2 hsa activity tool api 2019-01-27 11:33:04 -06:00
Evgeny a4f18cd0de roctracer-proto pkgconfig includedir fix 2019-01-25 16:09:05 -06:00
Evgeny 60cd7e5ad5 pkgconfig fix 2019-01-25 16:00:54 -06:00
Evgeny 554543c98a pkgconfig fix 2019-01-25 13:39:33 -06:00
Evgeny 1eca2a2e21 build/install scripts fixes 2019-01-23 21:32:14 -06:00
Evgeny 3ee614931a pkgconfig_install make target 2019-01-23 21:25:14 -06:00
Evgeny f1a928cad1 .pc pkgconfig installation 2019-01-23 14:52:50 -06:00
Evgeny 0f57d25151 hsa.h include fix 2019-01-23 11:49:44 -06:00
Evgeny 3e870b3d45 enabling hsa test 2019-01-17 14:14:52 -06:00
Evgeny 41e59bd6cf adding hsa_rt_utils.hpp to proto package 2019-01-15 08:28:29 -06:00
Evgeny c3483d09df adding tracing protocol package and build scripts 2019-01-15 08:13:13 -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 9dd17cd351 dynamic runtime loading 2018-12-20 20:21:37 -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