Граф коммитов

387 Коммитов

Автор SHA1 Сообщение Дата
Chun Yang 6da2b19562 SWDEV-283942 : Fixed false error report from rocprofiler
Change-Id: Ifc6eb0cb26f60a5596e1b626a578135ae9080f26
2021-05-17 14:16:50 -07:00
Freddy Paul c684d61de8 rocprofiler:update with case-sensitivity email
All packages should have a valid email for contact.

SWDEV-257322

Change-Id: I49107ff44b9aaf13ec6a20319a420146f6443907
2021-05-03 11:48:57 -07:00
Freddy Paul 71ce3fa617 rocprofiler:Add maintainer email in package
All packages should have a valid email for contact.

SWDEV-257328

Change-Id: I03ceefc46cf8da4486e19b1001abd4cd8cbcb3c5
2021-04-30 11:37:33 -07:00
Kent Russell 97c9efce38 Cmake: Support static hsakmt
Add numa lib as this will be required with a static thunk
Look for static thunk of shared thunk cannot be found

Signed-off-by: Kent Russell <kent.russell@amd.com>
Change-Id: Idcaa0c785a0502c9f5fe42e2dfb9e0c1780f9d66
2021-04-27 12:18:02 -04:00
Rachida Kebichi 7a5e408891 Fixed issue with map key in dep_proc map
Change-Id: I5c2deeda2c2dedd9c800af60c0b4748279f8418e
2021-04-23 13:14:40 -04:00
Rachida Kebichi a2d89f22a7 Fixed order of code obj and symbols processing
Change-Id: Icb3341e54f3e0c7cf3da06811712f001e213d83d
2021-04-22 20:27:26 -04:00
Laurent Morichetti 304d3366af Fix a compilation error with gcc-9.3.0
On Ubuntu 20.04, in Release mode, gcc fails with this error:

In file included from /usr/include/string.h:495,
                 from /opt/rocm/include/hsa/hsa_api_trace.h:57,
                 from ../rocprofiler/src/util/hsa_rsrc_factory.h:29,
                 from ../rocprofiler/src/util/hsa_rsrc_factory.cpp:25:
In function ‘char* strncpy(char*, const char*, size_t)’,
    inlined from ‘const util::AgentInfo* util::HsaRsrcFactory::AddAgentInfo(hsa_agent_t)’ at ../rocprofiler/src/util/hsa_rsrc_factory.cpp:323:12:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:34: error: ‘char* __builtin___strncpy_chk(char*, const char*, long unsigned int, long unsigned int)’ specified bound depends on the length of the source argument [-Werror=stringop-overflow=]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../rocprofiler/src/util/hsa_rsrc_factory.cpp: In member function ‘const util::AgentInfo* util::HsaRsrcFactory::AddAgentInfo(hsa_agent_t)’:
../rocprofiler/src/util/hsa_rsrc_factory.cpp:322:39: note: length computed here
  322 |     const int gfxip_label_len = strlen(agent_info->name) - 2;
      |                                 ~~~~~~^~~~~~~~~~~~~~~~~~

The error is caused by the following 2 lines:

    const int gfxip_label_len = strlen(agent_info->name) - 2;
    strncpy(agent_info->gfxip, agent_info->name, gfxip_label_len);

The size argument to strncpy should not depend on the input string.

Since the terminating character is not considered (the copy is at
most len - 2 bytes), using memcpy is preferable. Also, make sure
the destination does not overflow by clamping the size.

Change-Id: I0c5cf7e0daf4cd6fcf7092efb1d9fd4c02a6c639
2021-04-22 11:12:53 -07:00
Rachida Kebichi 7d99e03caf Merge "SWDEV-263827 Visualize back-dep for wait" into amd-staging 2021-04-12 09:32:28 -04:00
Evgeny c4828a9de0 concurrent: enable PmcStopper to end perf counting.
Change-Id: I89785277678141e29349e162df10203787050643
2021-04-09 08:06:42 +00:00
Evgeny 780dfa37d4 cleanup after separating for staging and npi branches
Change-Id: Iadd624df21b85f1590e901a8125680743e3281a3
2021-04-08 20:37:47 +00:00
Evgeny 82d7bb2145 SWDEV-265287 : integration spmltgen.py script
Change-Id: Ief3e93225fb6660e72a04e4bd4b379262b73c914
2021-04-08 10:04:39 -04:00
Rachida Kebichi 429a458cae SWDEV-272485 append to CMAKE_CXX_FLAGS instead of override
Change-Id: I0c4364fa800a249d77ec7abd4e73556a8df1ef99
2021-04-06 17:16:28 -04:00
Rachida Kebichi a80f8e6e03 SWDEV-263827 Visualize back-dep for wait
Change-Id: Ic8a00c6ec583c5b90fcd0a1d19c5a51ce6303449
2021-04-05 09:44:25 -04:00
Cole Nelson 71f75b5983 Merge "CMakeLists.txt: add ENABLE_LDCONFIG to support multi-version install" into amd-staging 2021-03-30 15:39:27 -04:00
Cole Nelson 35c1b8bff2 CMakeLists.txt: add ENABLE_LDCONFIG to support multi-version install
Depends-On: I58fdf1d0b4e864b5a61ffe8e335d430d424811ab
Change-Id: Ibf4d6446e00eb119d1ea88d81da144e63194f615
Signed-off-by: Cole Nelson <cole.nelson@amd.com>
2021-03-27 15:33:09 -07:00
Evgeny Shcherbakov f27b925671 Merge "fixing gfx10 gfxip name" into amd-staging 2021-03-26 15:55:04 -04:00
Evgeny Shcherbakov 4a31d93ec3 Merge "obj-tracking default on" into amd-staging 2021-03-26 15:54:45 -04:00
Evgeny 80973271f4 obj-tracking default on
Change-Id: If919c1ee792e59bdb938608382e5b7350ca7098e
2021-03-24 01:44:19 -05:00
Evgeny 64bdcaddc7 fixing gfx10 gfxip name
Change-Id: Ie58768d64117a616b1896489b505790cfa993054
2021-03-24 00:48:21 -05:00
Rachida Kebichi 438300358b SWDEV-255637 add missing API calls.
Change-Id: Ic68258b6f3725a6dfdeab2a33b2e744f9b1b46b3
2021-03-23 17:24:29 -04:00
Evgeny e2c9d13e5b SWDEV-274821 SPM initialization fix
Change-Id: I5e27928a60083eff328bab3e79937ce11bce11bd
2021-03-22 09:18:36 +00:00
Evgeny 567f457f25 SWDEV-267190 real pid/tid arg values
Change-Id: Ia3d98364b5bc7e9eace3d742055af4e074d64c66
2021-03-18 15:13:21 +00:00
Evgeny c46913cdd6 SWDEV-274603 : fix SPM mode enabling
Change-Id: I67d9ecd8c808989315b2991ec492af2a4dd4ccbf
2021-03-10 01:27:28 -06:00
Evgeny 810b2b5982 SWDEV-274603 : To enable SPM KFD mode
Change-Id: I53f86d51ae9855d9c96aa9d3a8c8e433070136a3
2021-02-25 21:38:39 -05:00
Evgeny Shcherbakov 7290e42827 Merge "adding GPU command functions module" into amd-staging 2021-02-04 11:03:06 -05:00
Evgeny fb82ddee81 adding GPU command functions module
Change-Id: Id2c2d82ea6fee42695309ad3bb296effa77a2f33
2021-02-03 04:45:59 -05:00
Evgeny 3f504e9bd7 SWDEV-267558 : json rebasing supression by env ROCP_JSON_REBASE=0
Change-Id: I968d3922b1714dba09621a90c26cec959be55b91
2021-01-27 20:57:43 -06:00
Evgeny 249b0c2b26 SWDEV-241265 : fixing scripts
Change-Id: Id7fcc309d0003bc72e972976e1944afd6488001d
2020-12-09 23:10:40 -05:00
Evgeny 7e60bf163e SWDEV-255662 : spm kfd mode support
Change-Id: I840c7e92d3d5a59d8e5402c4d8ef86bc123dd07c
2020-12-02 13:02:45 -06:00
Evgeny f2c9980647 fixing sqtt trace for zero size case
Change-Id: I75712485f518725af46a3b419339a212d1e762a0
2020-12-01 18:19:51 -05:00
Rachida Kebichi 03fecd0645 Merge "SWDEV-255543 Hsa memcopy info csv gen" into amd-staging 2020-11-23 09:59:04 -05:00
Rachida Kebichi cf9975f217 SWDEV-255543 Hsa memcopy info csv gen
Change-Id: I35ed7d613879343851007dce473784ab227cb3ed
2020-11-18 11:08:01 -05:00
Evgeny Shcherbakov 56545dabec Merge "CMakeList.txt: conformant package names" into amd-staging 2020-10-28 10:44:37 -04:00
Cole Nelson 76c1882653 CMakeList.txt: conformant package names
Still needs valid email ID in the form of package_name.support@amd.com.
SWDEV-257328

Names as built (internal):
rocprofiler-dev_1.0.0.31000-crdnnv.437_amd64.deb
rocprofiler-dev-1.0.0.31000-crdnnv.436.el7.x86_64.rpm

Change-Id: Id90ce9c92dcc1655ddd04402af929f64f6d5a360
Signed-off-by: Cole Nelson <cole.nelson@amd.com>
(cherry picked from commit 61a99d8ddedb747f534fd41a4f5ed412a56045bb)
2020-10-27 12:52:12 -07:00
Evgeny ccc6005c25 fixing c_str() as strdup
Change-Id: Ib5cb68d16ce66fd2ae072168de4c16895f32b57f
2020-10-27 14:45:51 -05:00
Rachida Kebichi a7c66d99a5 SWDEV-254356 : Fix issues with hip memcpy info
Change-Id: I62053d13cd22883680e25072e679c8304497a152
2020-10-21 17:28:06 -05:00
Rachida Kebichi 9b9096f5a8 SWDEV-254356 Adapting memcopy info mechanism to optimized JSON generator
Change-Id: If88e1a69682332ba6c8f782ce870c4035eae65a2
2020-10-19 21:12:12 -05:00
Evgeny 90cfe92b05 hip async ops api detection fix
Change-Id: I039caf278214ded95c1ef4d06a872d888ac19573
2020-10-12 16:47:36 -05:00
Evgeny 96ff7582ce porting of AQL packet submit to new atomic HSA queue API
Change-Id: I654448a7a8627978395d426118a5cb3ba2a92058
2020-10-12 09:26:27 -05:00
Evgeny 97caab40da SWDEV-255459 : to get rid of c++ libatomic
Change-Id: I311db0e456dd6e6c87692898640574dc8f669086
2020-10-09 07:39:43 -04:00
Evgeny 169e36f379 SWDEV-252747 : testing using v3 object
Change-Id: I427df765d1be55bd2851ce441238b3eaa46cca4f
2020-10-09 06:38:46 -04:00
Evgeny 8d021eb401 SWDEV-249924 : hip correlation id explicite propogation
Change-Id: If5799a812b7789a805797aed8be4ab52d417221f
2020-10-01 12:40:41 -04:00
Evgeny 29191089cc SWDEV-254810 : JSON generator cleanup
Change-Id: Iacf782ee1e33443e9efb35b1adfcd2a43feda91d
2020-10-01 00:48:56 -05:00
Evgeny 0d164ba672 enable contexts wait
Change-Id: Ie2adf04662fddc8051fb5418904c9c659e264d78
2020-09-21 21:06:03 -04:00
Evgeny Shcherbakov e519076939 Merge "JSON flow timestamp fix" into amd-staging 2020-09-21 20:50:58 -04:00
Evgeny a87d41c6e4 JSON flow timestamp fix
Change-Id: I2dacc29250f2d9c5d56bf8ab3ca7f621cb7b663a
2020-09-21 03:53:03 -04:00
Evgeny 8850e46071 kernel objects dumping
Change-Id: I5a16e05b7df438efa903948701b65a9ced99e5f3

initial codeobj event implementation

Change-Id: Ia7fac3c2b9897a004cfe88c4de82ba8c18284196

update - codeobj event implementation

Change-Id: I2b91b6e689875af03f0086f5a0872a97a629fd83

update2 - codeobj event implementation

Change-Id: Icff75f14fd21963e40db95373fa74880957a9e32

fix - codeobj event implementation

Change-Id: I76c33c875cb429fb12a974bb408b217f187b4536

URI buffer fix - codeobj event implementation

Change-Id: I7ce1a758e021455da3fe5b8a6e4ae3ab46e9760e

HSA events exposing

Change-Id: I3664ab4e5111c4ccedaf068dcb19f48055f0ef9b

HSA events data struct normalizing

Change-Id: I365ef0db45e0a9314bd2a1a4d29dd4eb4e91297d
2020-09-11 10:01:54 -05:00
Evgeny Shcherbakov a3fafe585d Merge "DB commit on close" into amd-staging 2020-09-11 09:41:03 -04:00
Evgeny Shcherbakov ae7e661b5d Merge "Fix for: statement uses 11, and there are 1 supplied" into amd-staging 2020-09-03 13:37:00 -04:00
Evgeny Shcherbakov 8263eceef9 Merge "concurrent: enable/fix the related settings" into amd-staging 2020-09-01 17:43:08 -04:00