コミットグラフ

33 コミット

作成者 SHA1 メッセージ 日付
Kiumars Sabeti 397b3b10af SWDEV-360818: Reserved fields of hip structures are undefined. Because of that, reserved fields may contain special characters that are not readable by postprocessing Python script. To patch this issue, here we modify script that generates hip_ostream_ops.h to set reserved fields of hip structures to 0.
Change-Id: I0cda5cedfa30b140f121803dd8c066107ae0756e
2023-01-26 17:44:55 -05:00
Laurent Morichetti 0d6e5b1cea SWDEV-362165 - Escape strings in the API function's arguments
Also escape '\', '"', '\b', '\f', '\n', '\r' and '\t'.

Change-Id: I02cb1a0a511156661ff40700a81b0989a450aacc
2022-11-07 15:41:51 -08:00
Laurent Morichetti b556f8681e SWDEV-362165 - Escape strings in the API function's arguments
Strings ([const] char *, [const] char[]) passed as arguments to API
functions may not always contain printable characters. All string
arguments should be quoted and escaped in the trace logs.

Change-Id: Ie39058f2190048b1a0090df16d9ac6bc6507e28a
2022-10-15 19:03:36 -07:00
Laurent Morichetti 6416434d3b Fix a profiling data corrupted error
Using rocprof with ROCP_MCOPY_DATA=1 while tracing HSA produces the
following error:

tblextr.py: Memcpy args "(0x7feb16a00000, 123handle=28593376125, 0x7feb12a00010, 123handle=27558560125, 4194304, 0, 0, 123handle=140661639440000125) = 1" cannot be identified
Profiling data corrupted: ' ./out/rpl_data_220930_143009_1826700/input_results_220930_143009/results.txt'

There are two issues:

1) The hsa_agent_t handle argument is misprinted: "123handle=...125"
  Instead of printing '{' and '}', it prints '123' and '125'. The wrong
  operator<<(unsigned char) is used and an integer value is printed
  instead of a char.

  Use std::operator<< instead of hsa_support::detail::operator<< to
  print '{' and '}'

2) The result value is unitialized and in some cases printed as a
  negative integer value. The leading '-' is not matched by the
  mem_manager regular expresion for HSA api calls.

  Correctly capture the HSA function's return value.

Change-Id: If13a1e62eeb4e598447c4b90d53d1b2e3b408696
2022-09-30 13:36:48 -07:00
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 3adc56bd9b Add the roctracer-tests package
The roctracer-tests package contains all the roctracer test binaries
and scripts needed to run the testsuite outside of the build directory.

Change-Id: Id11f862fb4bdb2425d68f455074172c38814ec92
2022-07-05 17:03:21 -04:00
Laurent Morichetti 06a3da7c63 Fix copyright headers
Change-Id: I380d867fa5fb04e68b5b332e9abf33fbeb1e9418
2022-04-19 09:30:45 -07:00
Christophe Paquot e5e1258ef8 SWDEV-295205 - Remove KFD domain from roctracer
Change-Id: I2771cf43aa115bb466531bf887f7cc75e187f2ef
2021-07-22 10:12:45 -07:00
Rachida Kebichi e5dd1e9b85 SWDEV-284863 Fixed several issues preventing memcpy info dump in csv
Change-Id: I4c6323311ce8314296e81a9b9b5d8adb485e0aa8
2021-05-25 11:10:52 -04:00
Rachida Kebichi faada3e569 SWDEV-283958 Workaround for unnamed structs
CppHeaderParser has limited support for unnamed structs. It leaves the
name empty so this results in classes (a.k.a structs) having trailing '::'
characters, also giving no way to distingush two unnamed structs at the
same level of nesting. An example are the inner structs of
hipExternalSemaphoreSignalParams. The workaround consists in skipping
over these, so they are not generated in the output header file
which lists all ostream ops<<. Only the inner unnamed structs are skipped,
the rest is processed as it should.

Change-Id: I17439c46095469b7adb7aee0b0f0b3d234aabc11
2021-05-07 15:57:30 -04:00
Rachida Kebichi ad5b463912 SWDEV-271503 Fixed core dump
Change-Id: Ia582a27482581c3b81c42da0add9f6743898da6c
2021-03-30 14:06:56 -04:00
Evgeny bb5f2231a1 calling python3 explictely
Change-Id: I3dda55865bafa41cc6670e414b213f13a2a2a7ac
2020-12-16 14:29:12 -05:00
Rachida Kebichi ef36218286 SWDEV-255938 NEW - added regex and depth support to ostream ops
Change-Id: I292255adab3a70fa00a1dd5685b788521687f35b
2020-11-18 16:48:50 -05:00
Evgeny 9562675382 SWDEV-251491 : gen_ostream_ops.py porting to python3
Change-Id: I7081b6ad21b038040267067bd73d8a44df46e4ff
2020-10-01 00:52:23 -05:00
Evgeny c9ed0f067d gen_ostream_ops.py fix - ostream operators as inline static
Change-Id: I9688236b06dd167960662b8eecf1a07c93b43fff
2020-09-09 01:46:23 -05:00
Evgeny e9b8de644e Format ostream ops
Change-Id: I8c609b1ef82e02f3547541c2cc47dec3a4f1c7b3
2020-08-28 11:30:18 -05:00
Evgeny ac59f349d4 enabling hipIpcEventHandle_t
Change-Id: Iaf973567298d5ef8450e14e869b5f837e0620022
2020-08-03 13:04:05 -05:00
Rachida Kebichi bac4bae41c Added hsa ostream ops generation
Change-Id: Icc68e136d22b05b35d6adaff56e090272633d760
2020-07-29 10:41:32 -04:00
Evgeny 264e3d816d fixing ostreams linking as inline static
Change-Id: Idbfac3e5220acd62500cd4c204a5bd9a9461c8fc
2020-06-19 12:54:12 -05:00
Evgeny 9d4a58f6da disabling kernel name printing for kernel launches by func pointer and ostream operator template
Change-Id: Icbcedafb1812a1be03837f6cb47283eb0d382ad2
2020-05-27 05:23:29 -04:00
Rachida Kebichi 72b0d25ea4 Added generation of hip ostream operators
Change-Id: I5d07ea07cdd94097cb44619c29d9deba54e5d6a5

ostream ops code cleanup

Change-Id: Ia4e287de1e1953f5d323a0066c29aa6056442139
2020-05-01 16:15:01 -04:00
eshcherb 8c41ac3a10 Merge branch 'amd-master' into rkebichi-patch-2 2020-01-28 14:14:31 -06:00
rkebichi 2901da60a5 Update gen_ostream_ops.py 2020-01-24 10:19:09 -05:00
rkebichi fff5d9833f Update gen_ostream_ops.py 2020-01-22 14:06:58 -05:00
rkebichi 547b36f9f6 Update gen_ostream_ops.py 2020-01-17 11:23:01 -05:00
rkebichi dd69b522c3 Update gen_ostream_ops.py 2019-12-27 12:14:27 -05:00
Rachida Kebichi 19ad236bcf change permission to x 2019-11-12 18:06:34 -05:00
rkebichi d4014f5d44 Update gen_ostream_ops.py 2019-11-12 09:55:46 -05:00
rkebichi 5ef1033260 Update gen_ostream_ops.py
New version of script generates all expected fields for KFD API. I checked all structs and made sure nested structs and unions, named or anonymous are handled properly.
2019-11-07 16:06:21 -05:00
rkebichi 34fbe19977 Update gen_ostream_ops.py 2019-10-30 17:01:39 -04:00
rkebichi 93e0330047 Update gen_ostream_ops.py 2019-10-22 15:22:59 -04:00
rkebichi 013cbe59db Create gen_ostream_ops.py 2019-10-10 10:00:27 -04:00