79 次程式碼提交

作者 SHA1 備註 日期
gobhardw f75a24e657 SWDEV-471998: roctracer test fix
Change-Id: I8e88d087f66ecb265154b29f19e3544706578724


[ROCm/roctracer commit: fee1f00ddc]
2024-07-25 12:20:17 +05:30
gobhardw ff0c5c2862 SWDEV-406619: enabling symbol lookup in .dynsym of code object
Change-Id: I35e6d85d59cbe1350db4734dcee33a71f0d4f87f


[ROCm/roctracer commit: 9bda77f171]
2023-07-12 14:10:28 +05:30
Ammar ELWazir a113218672 SWDEV-340925 & ROCMOPS-4997: Fixing Tests package for roctracer
Change-Id: I9913e1df86398ef79a5afcf4b89b5a132d61422c


[ROCm/roctracer commit: 2a9595bc8f]
2023-06-08 14:48:28 +00:00
Laurent Morichetti cb7d599829 Fix hsa_support::timestamp_ns if HSA is not yet initialized
Default to the HSA runtime's hsa_system_get_info if the saved HSA
functions table is not yet initialized.

Change-Id: I3659095a5ad662f7ca8b0d92bd035901c6d66bb0


[ROCm/roctracer commit: 87ffbd27f4]
2022-09-08 21:02:31 -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 f7c8382e33 SWDEV-351980 - Use the new hipRegister/RemoveAsyncActivityCallback
Remove the hipInitActivityCallback and use the new hipRegister/
RemoveActivityCallback which allows distinct memory pools to be used
for HIP_OPS activities.

Enable the multi_pool_activities test.

Change-Id: I6f6feaedecc9c36285bea975caf24dbf8f5f624b


[ROCm/roctracer commit: 340c7cb553]
2022-09-06 19:11:11 -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
Laurent Morichetti 690df5dfcb Fix tput
Don't set the color variables if tput is not available, not working, or
if ncolors < 8.

Move the color variables outside of eval to avoid calling tput over and
over again.

Change-Id: Id51a742b77ad0f7c99c1c7c5d05bed0f423b75de


[ROCm/roctracer commit: 993dcf9503]
2022-08-17 17:30:35 -07:00
Laurent Morichetti 46061428fa Use the new ROCR support to automatically load tool libraries
The ROCR now detects already loaded tool libraries and calls OnLoad/
OnUnload in the order specified with HSA_AMD_TOOL_ORDER.

It is no longer necessary to set the HSA_TOOLS_LIB environment variable
to load the roctracer API. The roctracer tool library should be
pre-loaded with LD_PRELOAD.

Change-Id: I6de1b1bd4f93caa08d3554aad2376d242c74fb7e


[ROCm/roctracer commit: d32cf96cd4]
2022-06-24 16:45:03 -07:00
Laurent Morichetti 67fb1f56b3 Enable tests validation in the CI environment
Change-Id: Ied3d203db35083f0045fae052d82ec5e1a867581


[ROCm/roctracer commit: fd1469a573]
2022-06-18 13:50:35 -07:00
Laurent Morichetti 4af9cdc409 Add a data region to the memory pool
Some records may need to point to data with the same lifetime as the
records themselves. One solution is to store the data at the end of
the memory pool buffer. Records in the buffer grow up, and the data
grows down. When the buffer is flushed both records and data are
recycled.

Change-Id: I278fa84478236bf895f7c2d152d47d4256987392


[ROCm/roctracer commit: ef3b2a8aa8]
2022-06-08 18:34:23 -04:00
Laurent Morichetti b67c618f49 Remove the tracer tool's constructor and destructor functions
Change-Id: I12d88af726074fb15f8159580c85c12888f72172


[ROCm/roctracer commit: e9b3b7c9a0]
2022-05-24 21:50:47 -07:00
Laurent Morichetti 2603a49ce3 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


[ROCm/roctracer commit: 8ee9d859ed]
2022-05-24 15:52:29 -07:00
Laurent Morichetti 2db9dc7f66 Add a ROCTX test
Change-Id: I90dab2f349ade6cbfc86f0399c8b9ca905de23b3


[ROCm/roctracer commit: 1e7783af58]
2022-05-23 23:10:26 -04:00
Laurent Morichetti e2d5956703 Don't override the LD_LIBRARY_PATH if IS_CI=1
The tests should be using the newly built libraries in the cwd.

Change-Id: I993e74a6cdbfdc78cf226f3fa5e4b55555f27825


[ROCm/roctracer commit: c74bb1fced]
2022-05-20 14:49:58 -07:00
Laurent Morichetti e9a6364519 Replace the HSA standalone test
Change-Id: I89e6826eef412890185ec600cd806c7b516e62a9


[ROCm/roctracer commit: c66fc25741]
2022-05-20 10:36:38 -07:00
Laurent Morichetti 7e11a61f6f File reorganization
Move the tracer_tool from the 'test' directory to the 'src' directory.

Change-Id: I13768b9610cd359f78a66147f0255ab1e4c657e9


[ROCm/roctracer commit: b34e9c2ee4]
2022-05-20 10:36:38 -07:00
Laurent Morichetti 8b439bd2fa Enable the trace buffer directed test
Change-Id: Icddecf488f99c99434c7c690a9cb47d2d0ccbee6


[ROCm/roctracer commit: d42d7e7543]
2022-05-20 10:36:38 -07:00
Ammar ELWazir 0b9de5c48a fixing trace period test for gfx1031
The test was too fast and couldn't trace all the functions

Change-Id: I3e278f6af084a27490a354e7e409eb19e69a63e7


[ROCm/roctracer commit: edbd011bae]
2022-05-20 05:03:35 -04:00
Laurent Morichetti fc397530cf run.sh: In case of error, also print the stderr log
Change-Id: I9a20bf2d755749b036788d7e2fce044a7f36eb2e


[ROCm/roctracer commit: e1fa2cb5d5]
2022-05-12 20:16:09 -04:00
Laurent Morichetti 1eef82000d Fix an intermittent failure in "tool flushing test"
The test (MatrixTranspose) and the tracer tool both write to stdout
which sometime causes a trace corruption.

Change the test to emit info messages to stderr instead of stdout,
leaving stdout for the tracer tool's exclusive use.

Change-Id: I18047dbcd9039b70dd24ef6e7e8e9d89b40bedd2


[ROCm/roctracer commit: bbe1db3810]
2022-05-12 20:15:37 -04:00
Ammar ELWazir 3df8bc7c77 Removing Backward compatability
removing the backward compatability file and making sure to use the right paths

Change-Id: I518d52c82e0c5878bd334713e7b1758bba79762d


[ROCm/roctracer commit: 6b16d37d65]
2022-05-11 14:43:35 -04:00
Laurent Morichetti 12623a5f24 Fix the roctracer tests
14/15 tests pass, 1/15 intermittent failure (tool flushing test).

Change-Id: I36ed2900a1c51e584718993badeaefd48ad450a2


[ROCm/roctracer commit: a98476fe11]
2022-05-10 14:58:08 -07:00
Laurent Morichetti 19fbb76f1b 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


[ROCm/roctracer commit: f8462b8637]
2022-05-10 08:13:09 -07:00
Christophe Paquot a9f6522a41 SWDEV-295205 - Remove KFD domain from roctracer
Change-Id: I2771cf43aa115bb466531bf887f7cc75e187f2ef


[ROCm/roctracer commit: e5e1258ef8]
2021-07-22 10:12:45 -07:00
Rachida Kebichi bbf605467b SWDEV-259683 HIP API records filtering
Change-Id: I43ca5e022d2c055b6a9bc2c09b4276b490a4b986


[ROCm/roctracer commit: 2d31848c44]
2020-12-16 16:29:36 -05:00
Evgeny f1458a97fb calling python3 explictely
Change-Id: I3dda55865bafa41cc6670e414b213f13a2a2a7ac


[ROCm/roctracer commit: bb5f2231a1]
2020-12-16 14:29:12 -05:00
Evgeny 979817ec97 adding tests dry run to check if platform is in working state
Change-Id: Ic430e3f959119983a65929fc70332e293cc3448d


[ROCm/roctracer commit: 6aa28d511f]
2020-11-23 13:09:46 -06:00
Evgeny 85e5cf8a93 SWDEV-213367 : codeobj event implementation
Change-Id: Ibcaca6869ce96d8802c5fa8ba241f43834d6f2a7

update - codeobj event implementation

Change-Id: I4c12f26a19f2b31d9ac2211c3426a0e587a332b3

update2 - codeobj event implementation

Change-Id: Ic877549a83542ae00352503471d881e847ebac9c

test - codeobj event implementation

Change-Id: I0618d3a93de94c3d7467372ba4a3d4ea5520bfc7

URI reference test - codeobj event implementation

Change-Id: I6cf7e8a648cf012cb0708058b118a75e58f992b9

adding test/app - codeobj event implementation

Change-Id: Idf4c197c7b9116ccde5ec50ff47a26a858bfab32

uri test fix - codeobj event implementation

Change-Id: I7c385f82f516d9d8f2cd726366f00be3664006e3

uri test cleanup - codeobj event implementation

Change-Id: I542d5baf88c048c8b4717af843b803cd93e8f3bc

URI buffer fix - codeobj event implementation

Change-Id: Iac65e04c03a0939935c10f53c6b580a2e33878f5

HSA events tests trace-check disabled

Change-Id: I0f4d13aeeceb1d1a6e2191673eacbf9c7ae2ae52


[ROCm/roctracer commit: 29c63c5281]
2020-10-09 08:36:12 -04:00
Evgeny a547e615e3 build normalizing - generating under build directory
Change-Id: Id9203aec7800024bd749059a415fb29b8051005a


[ROCm/roctracer commit: ed1f1b66ac]
2020-09-07 15:24:58 -05:00
Evgeny 9dc7d9cad2 flush-rate option fixed
Change-Id: I74ff83ebf2a0a4ba414d30b7cb193522f44660ce


[ROCm/roctracer commit: 156d9327cc]
2020-08-20 15:11:38 -05:00
Rachida Kebichi 2e189165df more verbosity in trace diffs
Change-Id: I1e3f6c8ee126ca4470f0846aabab19d18397dd64


[ROCm/roctracer commit: 0502f196d9]
2020-07-29 03:00:16 -05:00
Evgeny 5f3eb56b1d tests standalone build
Change-Id: I556cbc48c169764beaf9e50684edfb0e9075074c


[ROCm/roctracer commit: d1ad7a56e1]
2020-06-15 23:49:58 -05:00
Evgeny 78fc334ec3 run_ci fix
Change-Id: Ibf07cb92c55790be723dc2e97d09f3232983747e


[ROCm/roctracer commit: 5a0fd11cf8]
2020-06-10 10:01:35 -05:00
Evgeny 44c3c9f16d CI run script version
Change-Id: I0e806854eb7db12656f7f1770642f20247fa6734


[ROCm/roctracer commit: d2135ad2c8]
2020-06-04 17:31:18 -05:00
Evgeny ce8eddc2ec run test environment
Change-Id: If4b780357c807f88d09d7728d13d3c616b424474


[ROCm/roctracer commit: 8d0801de75]
2020-06-01 12:54:35 -05:00
Evgeny 9b29e01816 fixin build: check script residing in build area
Change-Id: I1a3d794b24c7506d5e24c341c61fe45b31238002


[ROCm/roctracer commit: 1e7650074a]
2020-05-29 16:09:13 -05:00
Evgeny 29785b2bca roctracer test with disabled hip api activity
Change-Id: I6d2139a67810cafb9ccb94bf57f55e85e1ab0982


[ROCm/roctracer commit: 3b62c5c6b9]
2020-05-06 00:02:24 -05:00
Evgeny 1c71995aa2 adding KFD test
Change-Id: Ic9956b47c2cc7dc6643750ab88e97d4ee733fa4a


[ROCm/roctracer commit: e9045d889d]
2020-04-20 09:57:59 -05:00
Evgeny 2fae5236d5 test scripts update
[ROCm/roctracer commit: 01bd142fd3]
2020-03-28 22:01:09 -05:00
Evgeny 64336dc38e build and test scripts update
[ROCm/roctracer commit: 9f45b76a3d]
2020-03-28 21:39:31 -05:00
Evgeny ec21018efb normalizing trace comparison mechanism
[ROCm/roctracer commit: 5e5fe9917d]
2020-03-27 00:32:18 -05:00
eshcherb c8246e3ce0 Merge branch 'amd-master' into rkebichi-trace-compare
[ROCm/roctracer commit: 7b8b39b495]
2020-03-25 19:27:49 -05:00
rkebichi 923efeb13e Update run.sh
[ROCm/roctracer commit: d8eeea6b8b]
2020-03-23 17:14:03 -04:00
rkebichi c1261e89c6 Update run.sh
[ROCm/roctracer commit: 85d96587d8]
2020-03-17 12:26:23 -04:00
rkebichi aedb0890cf Update run.sh
Parses trace level files

[ROCm/roctracer commit: be6216a749]
2020-03-10 15:39:25 -04:00
rkebichi 2d938a8a8f Added level 3 trace compare (trace files diffed)
[ROCm/roctracer commit: 1f33587c29]
2020-02-07 16:42:39 -05:00
rkebichi f928614d41 Update run.sh
[ROCm/roctracer commit: ea1eb05ecd]
2020-01-31 15:51:30 -05:00
rkebichi 136ebd6643 Update run.sh
[ROCm/roctracer commit: e3879bc5c1]
2020-01-31 11:14:29 -05:00
Evgeny 2bc58d21f5 periodic trace flushing
[ROCm/roctracer commit: c73b98c2c5]
2020-01-27 20:42:22 -06:00