platform/core/dotnet/launcher.git
2 months agoRemove ZapDisable=1 for Coreprofiler
Gleb Balykov [Thu, 15 Feb 2024 07:43:30 +0000 (10:43 +0300)]
Remove ZapDisable=1 for Coreprofiler

Explicit disabling of ni.dll is not needed, because
- in case of enter/leave hooks usage (non-alternative sampling mode) ni.dll will be disabled automatically
- in case of DoStackSnapshot (alternative sampling mode) ni.dll can be freely used and this will improve performance

2 months agoRevert PR #509, #510 (#513)
최종헌/MDE Lab(SR)/삼성전자 [Wed, 14 Feb 2024 03:07:12 +0000 (12:07 +0900)]
Revert PR #509, #510 (#513)

* Revert "Sets the ZapDisable env according to the Alternative Sampling value of the coreprofiler"

This reverts commit 2fa05eebf1a9a61018efefea5c5cfe42a9fd5b7f.

* Revert "[Refactoring] Improve SAM score through DC and GV improvement"

This reverts commit 04a885649ac58636a6b7da2c20449adceb84e40b.

3 months ago[TC Fixed] Remove the TC for dotnet-nui-loader
j-h.choi [Thu, 4 Jan 2024 01:29:48 +0000 (10:29 +0900)]
[TC Fixed] Remove the TC for dotnet-nui-loader

3 months ago[Refactoring] Improve SAM score through DC and GV improvement
j-h.choi [Mon, 22 Jan 2024 04:34:47 +0000 (13:34 +0900)]
[Refactoring] Improve SAM score through DC and GV improvement

3 months agoSets the ZapDisable env according to the Alternative Sampling value of the coreprofiler
j-h.choi [Wed, 24 Jan 2024 06:25:09 +0000 (15:25 +0900)]
Sets the ZapDisable env according to the Alternative Sampling value of the coreprofiler

Change-Id: Iba9dfd40023c15b0d59a9cc8032c0e9390d7278d

3 months agoAdd --set-priority option in dotnettool
j-h.choi [Tue, 2 Jan 2024 07:52:01 +0000 (16:52 +0900)]
Add --set-priority option in dotnettool

Change-Id: I9d7c0291e24e6be28e6974be360e5c271f9c3c1e

3 months agoTAC is applied to all dlls in the R2R mode (#502) accepted/tizen/unified/20240129.163413
최종헌/MDE Lab(SR)/삼성전자 [Sun, 28 Jan 2024 23:54:56 +0000 (08:54 +0900)]
TAC is applied to all dlls in the R2R mode (#502)

3 months agoFix build error in aarch64 (#511) accepted/tizen_unified_toolchain accepted/tizen/unified/20240125.160247 accepted/tizen/unified/20240126.061438 accepted/tizen/unified/20240126.061455 accepted/tizen/unified/toolchain/20240125.111836 accepted/tizen/unified/toolchain/20240312.065456
최종헌/MDE Lab(SR)/삼성전자 [Thu, 25 Jan 2024 04:51:14 +0000 (13:51 +0900)]
Fix build error in aarch64 (#511)

Change-Id: I9577aa8ea2813a0ac92c4acd6cb9a1241e450fcf

4 months agoCode review feedback
최종헌/MDE Lab(SR)/삼성전자 [Wed, 3 Jan 2024 08:43:52 +0000 (17:43 +0900)]
Code review feedback

4 months agoChange to create a .native_image_tmp folder when creating NI
j-h.choi [Tue, 2 Jan 2024 06:44:39 +0000 (15:44 +0900)]
Change to create a .native_image_tmp folder when creating NI

4 months agoAdd define HOST_XXX to support pal.h accepted/tizen_unified_riscv accepted/tizen/unified/riscv/20231226.055533 accepted/tizen/unified/toolchain/20240311.064824 accepted/tizen/unified/toolchain/20240312.012715
Woongsuk Cho [Fri, 22 Dec 2023 00:02:00 +0000 (09:02 +0900)]
Add define HOST_XXX to support pal.h

Processor-specifc glue code is removed from latest pal.h.
To avoid build failure, add HOST_XXX define for each architecture.

4 months ago[RISCV64] Add definition for riscv64
j-h.choi [Tue, 19 Dec 2023 01:28:49 +0000 (10:28 +0900)]
[RISCV64] Add definition for riscv64

Change-Id: Ibc4d4be09967bb1941e0b569b2044371d178f21c

5 months agoCheck library extension more accepted/tizen/8.0/unified/20231129.170829 accepted/tizen/unified/20231130.180856
Woongsuk Cho [Tue, 28 Nov 2023 11:42:47 +0000 (20:42 +0900)]
Check library extension more

To handle ".so.{number}" case, add more checking logic

5 months agoBug-fix : native library resolving logic accepted/tizen/unified/20231128.175131
Woongsuk Cho [Tue, 28 Nov 2023 08:28:33 +0000 (17:28 +0900)]
Bug-fix : native library resolving logic

5 months agoAdd error log when using --rm-all-app-profile option (#493) accepted/tizen/8.0/unified/20231113.182916 accepted/tizen/unified/20231114.041324
최종헌/MDE Lab(SR)/삼성전자 [Mon, 13 Nov 2023 03:55:40 +0000 (12:55 +0900)]
Add error log when using --rm-all-app-profile option (#493)

5 months agoRefactoring the fallback graph of RID/TFM (#488)
최종헌/MDE Lab(SR)/삼성전자 [Mon, 13 Nov 2023 03:55:33 +0000 (12:55 +0900)]
Refactoring the fallback graph of RID/TFM (#488)

6 months agoGet user app root dir for remove profile data accepted/tizen/8.0/unified/20231110.171756 accepted/tizen/unified/20231110.172151
Woongsuk Cho [Thu, 9 Nov 2023 06:06:16 +0000 (15:06 +0900)]
Get user app root dir for remove profile data

To remove duplicated API call(changing user), get userAppRoot dir instead of uid.

6 months agoSet default value (NULL) for removeAllProfile accepted/tizen/8.0/unified/20231109.181656
Woongsuk Cho [Thu, 9 Nov 2023 01:58:58 +0000 (10:58 +0900)]
Set default value (NULL) for removeAllProfile

6 months agoGets the user's uid related to installed app only.
Woongsuk Cho [Thu, 9 Nov 2023 01:05:34 +0000 (10:05 +0900)]
Gets the user's uid related to installed app only.

if there are many installed apps, it takes a lot of time to delete profile data.
This is because it attempts to delete profile data for all uids.

To optimize this, only uids related to the installed app are obtained.

6 months agoRevert "Add launchpad_loader_block/unblock_thread() method" accepted/tizen/8.0/unified/20231108.165834 accepted/tizen/unified/20231107.172920
j-h.choi [Tue, 7 Nov 2023 06:22:48 +0000 (15:22 +0900)]
Revert "Add launchpad_loader_block/unblock_thread() method"

This reverts commit c8b525e03ec5caf89e78ffa4a888aa57f2179540.

6 months agoCreate vconf related to .NET as a file in RO location accepted/tizen/8.0/unified/20231103.040910
j-h.choi [Mon, 30 Oct 2023 22:11:43 +0000 (07:11 +0900)]
Create vconf related to .NET as a file in RO location

6 months agoAdd launchpad_loader_block/unblock_thread() method accepted/tizen/unified/20231030.034756
j-h.choi [Thu, 26 Oct 2023 00:01:26 +0000 (09:01 +0900)]
Add launchpad_loader_block/unblock_thread() method

7 months agoAdd DIAGNOSTIC to debugger script (#484) accepted/tizen/8.0/unified/20231011.152835 accepted/tizen/unified/20231011.153140 tizen_8.0_m2_release
조웅석/MDE Lab(SR)/삼성전자 [Wed, 11 Oct 2023 01:18:39 +0000 (10:18 +0900)]
Add DIAGNOSTIC to debugger script (#484)

To set DOTNET_DiagnosticPorts environment for app launching,
Add DIAGNOSTIC option to debugger script

Only environment key value is described in debugger script.
The environment value should be set when launching application like below.

owner:~> launch_app [APP_ID] __AUL_SDK__ DIAGNOSTIC DOTNET_DiagnosticPorts [PortName]

8 months agoCall plugin has log control before preloading (#483) accepted/tizen/8.0/unified/20231005.093328 accepted/tizen/unified/20230825.121024
조웅석/MDE Lab(SR)/삼성전자 [Thu, 24 Aug 2023 06:58:23 +0000 (15:58 +0900)]
Call plugin has log control before preloading (#483)

* Call pluginHasLogControl in the initialize

VD create log thread in the pluginHasLogControl to redirect stdout,stderr to vlog.
To prevent log missing in the candidate process, call pluginHasLogControl in the initialize() function.

* call pluginHasLogControl before preloading

8 months agoCall pluginHasLogControl in the initialize
Woongsuk Cho [Thu, 24 Aug 2023 06:36:16 +0000 (15:36 +0900)]
Call pluginHasLogControl in the initialize

VD create log thread in the pluginHasLogControl to redirect stdout,stderr to vlog.
To prevent log missing in the candidate process, call pluginHasLogControl in the initialize() function.

8 months agoCheck library extensions more accurately accepted/tizen/unified/20230825.044242
j-h.choi [Thu, 24 Aug 2023 00:52:30 +0000 (09:52 +0900)]
Check library extensions more accurately

9 months agoUpdate tfm to net6.0 (#479) accepted/tizen/unified/20230731.175323
최종헌/MDE Lab(SR)/삼성전자 [Mon, 31 Jul 2023 04:17:47 +0000 (13:17 +0900)]
Update tfm to net6.0 (#479)

9 months agoChange the location and value for generating vconf of runtime_version (#478)
최종헌/MDE Lab(SR)/삼성전자 [Mon, 31 Jul 2023 04:15:17 +0000 (13:15 +0900)]
Change the location and value for generating vconf of runtime_version (#478)

9 months agoRemove storage API dependency (#477) accepted/tizen/unified/20230726.020653
조웅석/MDE Lab(SR)/삼성전자 [Mon, 24 Jul 2023 23:46:24 +0000 (08:46 +0900)]
Remove storage API dependency (#477)

Use tzplatform_config API to get special folder instead of storage API.
storage API makes thread and gdbus connection internally and it can make some error at the loader mode.
In this patch, we get special folders (music, image, video) from tzplatform data.
Additionally, to allow override speicial folder location with coreclr_env.list,
change the initEnvForSpecialFolder() call location.

9 months agoChange the priority of the function to check (#476)
최종헌/MDE Lab(SR)/삼성전자 [Mon, 24 Jul 2023 05:31:21 +0000 (14:31 +0900)]
Change the priority of the function to check (#476)

9 months agoUse setEnvrionmentVariable() to set SpecialFolder (#475) accepted/tizen/unified/20230725.013007
조웅석/MDE Lab(SR)/삼성전자 [Mon, 24 Jul 2023 04:34:59 +0000 (13:34 +0900)]
Use setEnvrionmentVariable() to set SpecialFolder (#475)

Storage API which is used to get SpecialFolder(Music, Picture, Video) makes threads internally,
and it makes crash when we call setenv() function in the launcher because setenv() is not thread-safe function.

So, use setEnvironmentVariable() function which set envrionment variable in the .NET runtime.

9 months agoFix deprecated SHA* to EVP_MD* (#473)
이형주/MDE Lab(SR)/삼성전자 [Mon, 24 Jul 2023 04:31:33 +0000 (13:31 +0900)]
Fix deprecated SHA* to EVP_MD* (#473)

* Fix deprecated SHA* to EVP_MD*

9 months agoCopy only when there is .native_image folder (#474)
최종헌/MDE Lab(SR)/삼성전자 [Mon, 24 Jul 2023 04:28:12 +0000 (13:28 +0900)]
Copy only when there is .native_image folder (#474)

9 months agoOpenssl 1.1 -> 3 (#472) accepted/tizen/unified/20230720.164633
이형주/MDE Lab(SR)/삼성전자 [Thu, 20 Jul 2023 06:25:20 +0000 (15:25 +0900)]
Openssl 1.1 -> 3 (#472)

* Openssl 1.1 -> 3

* Fix libname

9 months agoFix compile error for gcc13 (#471) accepted/tizen_unified_dev accepted/tizen/unified/dev/20230726.120036
이형주/MDE Lab(SR)/삼성전자 [Wed, 19 Jul 2023 09:04:40 +0000 (18:04 +0900)]
Fix compile error for gcc13 (#471)

* Fix compile error for gcc13

* Filetype to unix

9 months agoRemove the preload code related to TIZEN_UIFW. Only NUI is supported (#469) accepted/tizen/unified/20230718.162214
최종헌/MDE Lab(SR)/삼성전자 [Tue, 18 Jul 2023 00:37:26 +0000 (09:37 +0900)]
Remove the preload code related to TIZEN_UIFW. Only NUI is supported (#469)

10 months agoAdded the sdk_tool path to find diagnostics (#459) accepted/tizen/unified/20230710.154005
최종헌/MDE Lab(SR)/삼성전자 [Mon, 10 Jul 2023 04:44:46 +0000 (13:44 +0900)]
Added the sdk_tool path to find diagnostics (#459)

Change-Id: Ic3bb7521e5fe8c2f8be39118ab06725e4f91a6e3

10 months ago[Tizen S] Deleted unused scripts because wearable is not supported (#463)
최종헌/MDE Lab(SR)/삼성전자 [Mon, 10 Jul 2023 04:44:31 +0000 (13:44 +0900)]
[Tizen S] Deleted unused scripts because wearable is not supported (#463)

10 months ago[Bug fix] Added reboot to avoid mount issue for RO app (#467)
최종헌/MDE Lab(SR)/삼성전자 [Mon, 10 Jul 2023 04:44:16 +0000 (13:44 +0900)]
[Bug fix] Added reboot to avoid mount issue for RO app (#467)

10 months agoFix bugs for apps that do not have AOT metadata when running the --tac-regen-all...
최종헌/MDE Lab(SR)/삼성전자 [Mon, 10 Jul 2023 00:55:24 +0000 (09:55 +0900)]
Fix bugs for apps that do not have AOT metadata when running the --tac-regen-all option (#466)

10 months agoThe default heaptrack configuration file path added. (#465)
Oleg Lekarev/Advanced System SW Lab /SRR/Staff Engineer/Samsung Electronics [Sun, 9 Jul 2023 23:48:53 +0000 (02:48 +0300)]
The default heaptrack configuration file path added. (#465)

10 months agoRemove deadcode
Hyungju Lee [Wed, 5 Jul 2023 23:55:35 +0000 (08:55 +0900)]
Remove deadcode

10 months agoSupport UI Thread Separate (UTS) App Model (#464) accepted/tizen/unified/20230627.025434
조웅석/MDE Lab(SR)/삼성전자 [Mon, 26 Jun 2023 04:16:49 +0000 (13:16 +0900)]
Support UI Thread Separate (UTS) App Model (#464)

define new apptype dotnet-uts for UI Thread Separate App Model

In the UI Thread Separate App Model, the main thread operates with the gmainloop
and UI-related tasks operate with the ecoreloop in a separate thread.
Therefore, ecore_init() should not be called in the main thread of the candidate process
for the UI Thread Separate App Model.
Also, candidate process should run with the gmainloop.

To run by the UI Thread Separate App Model, the environment variable "TIZEN_UI_THREAD" should be set to "true".
If this environment variable is set, then NUI would work on UI Thread Separate Mode.

12 months ago[Tizen S] Integrate app types(dotnet, dotnet-nui) accepted/tizen/unified/20230601.163008
j-h.choi [Thu, 27 Apr 2023 04:46:45 +0000 (13:46 +0900)]
[Tizen S] Integrate app types(dotnet, dotnet-nui)

13 months agoAdd "User" execute labe to dotnet-hydra-loader (#461)
조웅석/MDE Lab(SR)/삼성전자 [Mon, 10 Apr 2023 01:00:41 +0000 (10:00 +0900)]
Add "User" execute labe to dotnet-hydra-loader (#461)

15 months agoCreate the /tmp/.dotnet/mcj dir to reduce the number of I/O of profile data accepted/tizen/7.0/unified/20230213.171720
j-h.choi [Thu, 19 Jan 2023 01:23:55 +0000 (10:23 +0900)]
Create the /tmp/.dotnet/mcj dir to reduce the number of I/O of profile data

Change-Id: I19ecbbdb2d6603d6cdea1d3214ae79c638bc06e6

15 months agoChanged the json exception
j-h.choi [Thu, 26 Jan 2023 07:32:39 +0000 (16:32 +0900)]
Changed the json exception

Change-Id: I87c0c32673b94e62682d13b69b62a29f847f1bfe

15 months agoRemove preload thread (#456) accepted/tizen/7.0/unified/20230119.134111 accepted/tizen/unified/20230120.182039
이형주/MDE Lab(SR)/삼성전자 [Wed, 18 Jan 2023 23:51:16 +0000 (08:51 +0900)]
Remove preload thread (#456)

16 months agoChanged the path of diagnostics tool (#455) accepted/tizen/unified/20221229.165944
최종헌/MDE Lab(SR)/삼성전자 [Thu, 29 Dec 2022 01:59:31 +0000 (10:59 +0900)]
Changed the path of diagnostics tool (#455)

Change-Id: I68c3697ad22d727ff6b4cbdfdc875a1378321f6c

16 months agoThe Pre-Compiled app skips the TAC (#444) accepted/tizen/7.0/unified/20221216.133937 accepted/tizen/unified/20221213.123154
최종헌/Common Platform Lab(SR)/삼성전자 [Mon, 12 Dec 2022 08:09:46 +0000 (17:09 +0900)]
The Pre-Compiled app skips the TAC (#444)

Change-Id: I8aa987f98d4e5a5deb68cea543ea05faef73277f

17 months agoQuick&Dirty patch to reduce icu searching overhead (#453) accepted/tizen/unified/20221209.014605
이형주/Common Platform Lab(SR)/삼성전자 [Thu, 8 Dec 2022 08:36:54 +0000 (17:36 +0900)]
Quick&Dirty patch to reduce icu searching overhead (#453)

* Quick&Dirty patch to reduce icu searching overhead

* Fix version to `build` to use build time icu first.

17 months agoAdd TAC installer accepted/tizen/unified/20221208.043843
j-h.choi [Tue, 15 Nov 2022 01:32:39 +0000 (10:32 +0900)]
Add TAC installer

Change-Id: I69d7e46bdc9483b637664ece11213a91c0a99d25

17 months agoAdd '--skip-ro-app' option in TC_TOOL
j-h.choi [Thu, 24 Nov 2022 01:20:42 +0000 (10:20 +0900)]
Add '--skip-ro-app' option in TC_TOOL

Change-Id: I41517444a497cbdc9ccb0d3412be20bc905d2969

17 months agoUpdate launcher version to 6.0.9 in spec
j-h.choi [Tue, 8 Nov 2022 00:49:30 +0000 (09:49 +0900)]
Update launcher version to 6.0.9 in spec

Change-Id: I5adafd6c51aef5946632848ce0d5e756f67d6e45

17 months agoRefactoring preloading (#452) accepted/tizen/unified/20221205.101746
이형주/Common Platform Lab(SR)/삼성전자 [Mon, 5 Dec 2022 03:40:54 +0000 (12:40 +0900)]
Refactoring preloading (#452)

* Separate thread-safe preload from others
* Add UIFW to dotnet/dotnet-nui launchers

17 months agoIntroduce preloadThread for launcher (#451)
이형주/Common Platform Lab(SR)/삼성전자 [Mon, 5 Dec 2022 00:09:07 +0000 (09:09 +0900)]
Introduce preloadThread for launcher (#451)

* Introduce preloadThread for launcher

17 months agoAdd ToUpper() ToLower() to preload logic
Hyungju Lee [Fri, 2 Dec 2022 05:40:28 +0000 (14:40 +0900)]
Add ToUpper() ToLower() to preload logic

17 months agoexit app if fail to open plugin library (#449)
조웅석/Common Platform Lab(SR)/삼성전자 [Fri, 2 Dec 2022 05:22:14 +0000 (14:22 +0900)]
exit app if fail to open plugin library (#449)

17 months agoFixed bug checking internet privilege for each app (#447)
최종헌/Common Platform Lab(SR)/삼성전자 [Mon, 28 Nov 2022 01:54:39 +0000 (10:54 +0900)]
Fixed bug checking internet privilege for each app (#447)

Change-Id: Id7491a7e5156a30583caa48db273ecdedf9f56af

18 months agoRemove temporal test code accepted/tizen/unified/20221103.165812
Woongsuk Cho [Wed, 19 Oct 2022 01:42:25 +0000 (10:42 +0900)]
Remove temporal test code

18 months agoApply smack when '._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6' file is created accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.062148 accepted/tizen/7.0/unified/hotfix/20221116.105305 accepted/tizen/unified/20221017.104849 tizen_7.0_m2_release
j-h.choi [Mon, 17 Oct 2022 02:11:27 +0000 (11:11 +0900)]
Apply smack when '._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6' file is created

Change-Id: I6b85a62d45c2261353a24420d95dd3c641efb25d

18 months agoExclude exe extension from target assembly accepted/tizen/unified/20221014.123806
Woongsuk Cho [Fri, 7 Oct 2022 03:13:27 +0000 (12:13 +0900)]
Exclude exe extension from target assembly

Recently installed apps at RPI4 include exe files which are not assemblies.
It occurs error while App AOTC. So, exclude exe extension from target assembly.

18 months agoChanged API to check internet privilege
j-h.choi [Thu, 13 Oct 2022 07:56:08 +0000 (16:56 +0900)]
Changed API to check internet privilege

Change-Id: I9952150b11e561e1d89b5d8ce4798fdcddb62e0d

19 months agoRemove language_change_cb on the loader accepted/tizen/unified/20220929.140032
Woongsuk Cho [Thu, 29 Sep 2022 02:18:26 +0000 (11:18 +0900)]
Remove language_change_cb on the loader

Appfw set CultureInfo from i18n when application launching
So, there is no need to restart candidate process when language changed.

Recreating candidate process can make launching failure becauseof timing issue.
(candidate process process killed -> app-launching request raised -> launchpad get sighchild)

To remove this kind timing issue, remove language changed callback

19 months agoFixed the segmentation fault in dotnettool (#437) accepted/tizen/unified/20220927.132406
최종헌/Common Platform Lab(SR)/삼성전자 [Mon, 26 Sep 2022 07:28:49 +0000 (16:28 +0900)]
Fixed the segmentation fault in dotnettool (#437)

Change-Id: I9fff49ed5d130483f46ebeed4603ef076619f885

19 months agoCheck the existence of the original(.dll) file to use the --ni-reset-system option...
최종헌/Common Platform Lab(SR)/삼성전자 [Thu, 22 Sep 2022 06:26:47 +0000 (15:26 +0900)]
Check the existence of the original(.dll) file to use the --ni-reset-system option (#436)

Change-Id: I0b8d79b399729018408b02847ced5b5b1a8849b2

19 months agoAdd limitation for -rm-origin-after-ni (#435) accepted/tizen/unified/20220923.052701
조웅석/Common Platform Lab(SR)/삼성전자 [Wed, 21 Sep 2022 02:25:06 +0000 (11:25 +0900)]
Add limitation for -rm-origin-after-ni (#435)

After upgrading platform, native image files for app should be regenerated.
In that case, original assembly is needed.
So, prohibits the use of "--rm-origin-after-ni" option in app related options.
(--ni-pkg, --ni-regen-all-app, --tac-regen-all)

19 months agoAdd --rm-origin-after-ni option accepted/tizen/unified/20220920.160600
Woongsuk Cho [Thu, 3 Feb 2022 05:09:41 +0000 (14:09 +0900)]
Add --rm-origin-after-ni option

Add option to remove original dll after creating native image for reducing storage consumption.
This option doesnot work with --ni-pkg option because app can be re-compiled.

19 months agoFix dll filter in doAOTList (#433) accepted/tizen/unified/20220920.050137
이형주/Common Platform Lab(SR)/삼성전자 [Thu, 15 Sep 2022 04:54:47 +0000 (13:54 +0900)]
Fix dll filter in doAOTList (#433)

20 months agoModify log for profile data
j-h.choi [Wed, 31 Aug 2022 23:16:53 +0000 (08:16 +0900)]
Modify log for profile data

Change-Id: I498b7ce75a9e262b658303c2aee7e54815da7eca

20 months agoAdd log for profile data when the app runs
j-h.choi [Tue, 30 Aug 2022 23:28:58 +0000 (08:28 +0900)]
Add log for profile data when the app runs

Change-Id: Id3f6eb5559ea5c6da4efecc43315df8f1897a296

20 months agoFixed TAC_TC
j-h.choi [Fri, 26 Aug 2022 02:07:07 +0000 (11:07 +0900)]
Fixed TAC_TC

Change-Id: Id626c06a649c7903559cf8bbf43a8248f8bd148f

20 months agoAdd log when profile data is successfully loaded in candidate process
j-h.choi [Tue, 30 Aug 2022 09:31:39 +0000 (18:31 +0900)]
Add log when profile data is successfully loaded in candidate process

Change-Id: Ibceb2b5f8fb7dd0aa8b31b79759f22b98dbbb4f8

20 months agoChange the published value of metadata accepted/tizen/unified/20220826.060837 submit/tizen/20220826.015422
j-h.choi [Fri, 26 Aug 2022 01:42:25 +0000 (10:42 +0900)]
Change the published value of metadata

Change-Id: Ie0a17da992a647afa642c7a6c0b58c708c8d1010

20 months agoFixed build warning submit/tizen/20220825.083931
j-h.choi [Thu, 11 Aug 2022 05:52:04 +0000 (14:52 +0900)]
Fixed build warning

Change-Id: Iafff976b1ad4fa3556260f0709058a7fe573ffeb

20 months ago[WIP] Profile data generation tools to use in candidate process
j-h.choi [Mon, 25 Jul 2022 04:35:50 +0000 (13:35 +0900)]
[WIP] Profile data generation tools to use in candidate process

Change-Id: If92eaf2089233d65e137cd8c8b8c59f120541de1

20 months agoAdd the option to check Internet privilege in dotnettool for the FOTA
j-h.choi [Tue, 14 Jun 2022 07:13:45 +0000 (16:13 +0900)]
Add the option to check Internet privilege in dotnettool for the FOTA

Change-Id: I74604e5145519db06f8a0b6f8bd57ba69707c190

21 months agoAdd NCDB startup hook support.
Mikhail Kurinnoi [Fri, 29 Jul 2022 15:30:26 +0000 (18:30 +0300)]
Add NCDB startup hook support.

21 months agoUpgrade the nuget(Newtonsoft.Json) version of TC (#422)
최종헌/Common Platform Lab(SR)/삼성전자 [Tue, 19 Jul 2022 23:53:03 +0000 (08:53 +0900)]
Upgrade the nuget(Newtonsoft.Json) version of TC (#422)

Change-Id: I9234a89f05489a771f3ea50242d750e71d652951

22 months ago[WIP] Set the MCJ in the candidate process
j-h.choi [Sun, 8 May 2022 23:41:35 +0000 (08:41 +0900)]
[WIP] Set the MCJ in the candidate process

Change-Id: I95438e3a8ee4a4bbe5e538dc5add317d543a26f0

22 months agolink profile_common library to apptype_plugin (#421)
조웅석/Common Platform Lab(SR)/삼성전자 [Wed, 6 Jul 2022 21:39:17 +0000 (06:39 +0900)]
link profile_common library to apptype_plugin (#421)

To avoid symbol lookup error, link libprofile_common.so to libapptype_plugin.so

22 months agoSeparate the code related to the profile data into a profile_common file
j-h.choi [Tue, 14 Jun 2022 06:54:12 +0000 (15:54 +0900)]
Separate the code related to the profile data into a profile_common file

Change-Id: I6c62e7a26f502651333458473202b6d438f46261

22 months agoChange --ni-dir option operation
Woongsuk Cho [Wed, 29 Jun 2022 05:36:17 +0000 (14:36 +0900)]
Change --ni-dir option operation

if the --inputbubble option and --ni-dir option used together, all input directories must be processed as one bubble.
For this requirements, change implementation of --ni-dir option.

22 months agoRenew InputBubble Option (#416)
조웅석/Common Platform Lab(SR)/삼성전자 [Tue, 28 Jun 2022 00:01:54 +0000 (09:01 +0900)]
Renew InputBubble Option (#416)

When the native image compiled with the --inputbubble option is executed, all assemblies included in the same bubble must be compiled too.
Previous --ni-dll or --no-pipeline option can lead misusage of --inputbubble option.
For example, if the below command are executed, system libraries are compiled one by one.

$ dotnettool --inputbubble --no-pipeline --ni-dir /usr/share/dotnet.tizen/netcoreapp

In this case, a problem may occur because crossgen2 is executed with compiled native images with --inputbubble and the non-compiled assemblies

In order to prevent errors caused by such misuse, the following modifications were made.
1. When using no-pipeline mode, it was temporarily created as ni.dll.tmp and then changed to ni.dll in the last step of dotnettool.
2. if --inputbubbleref option is not set, only input file(s) of dotnettool is added to bubble

Additionally, for fine tunning, --ref and --inputbubbleref option get file path(s) ot directory path(s)

22 months agoChange update size for PBA (#419)
조웅석/Common Platform Lab(SR)/삼성전자 [Wed, 22 Jun 2022 10:34:57 +0000 (19:34 +0900)]
Change update size for PBA (#419)

When using PBA, file size was used to calculate next base address of assembly.
However, there is a problem that the file size is smaller than the image size loaded in the actual memory.
when native image files are loaded in the memory area, some native image files cannot be loaded where desired because of area overlapping.

So, get size of image from OptionalHeader, and use that value for updating next base address.

23 months agoAvoid calling storage API
Woongsuk Cho [Wed, 4 May 2022 01:41:04 +0000 (10:41 +0900)]
Avoid calling storage API

The storage API is used to get direcoty of SpecialFolder
In special case (like target booting up time), some delay can occur inside the API.

So, to avoid that kind of delay, set SpecialFolder with environment variable if that is set.

23 months agoChange the optimization options for crossgen2 (#409)
최종헌/Common Platform Lab(SR)/삼성전자 [Wed, 25 May 2022 21:36:03 +0000 (06:36 +0900)]
Change the optimization options for crossgen2 (#409)

Change-Id: Ic9588655352bc3e439e5432455e4a433d5c0ec19

2 years agoSet base address at native image (#400) accepted/tizen/unified/20220501.223640 submit/tizen/20220429.002649
조웅석/Common Platform Lab(SR)/삼성전자 [Fri, 29 Apr 2022 00:37:07 +0000 (09:37 +0900)]
Set base address at native image (#400)

--imagebase option is added to set base address at native imaage to avoid relocatoin.

Note! this feature is enabled --no-pipeline mode only

2 years agoSet collect delay when profile data does not exist
Woongsuk Cho [Tue, 26 Apr 2022 00:17:52 +0000 (09:17 +0900)]
Set collect delay when profile data does not exist

2 years agoAdd assembly to preload list in candidate process
j-h.choi [Wed, 20 Apr 2022 01:29:32 +0000 (10:29 +0900)]
Add assembly to preload list in candidate process

Change-Id: I7274a7cea59e208c66c02ea8761faec78e6223e2

2 years agoAdd additional environment for invariant mode
Woongsuk Cho [Tue, 19 Apr 2022 23:40:16 +0000 (08:40 +0900)]
Add additional environment for invariant mode

.NET 6 contains breaking change related to globalization invariant mode.
(https://docs.microsoft.com/en-us/dotnet/core/compatibility/globalization/6.0/culture-creation-invariant-mode)
For backward compatibility, add an additional environment variable to avoid breaking changes
- DOTNET_SYSTEM_GLOBALIZATION_PREDEFINED_CULTURES_ONLY=false

2 years agoFix mibc option for crossgen2 (#401)
이형주/Common Platform Lab(SR)/삼성전자 [Tue, 19 Apr 2022 22:52:20 +0000 (07:52 +0900)]
Fix mibc option for crossgen2 (#401)

`--ibc-dir $(directory path)` to `--mibc $(file path)`

Co-authored-by: 조웅석/Common Platform Lab(SR)/삼성전자 <ws77.cho@samsung.com>
2 years agoAdd --skip-ro-app option
Woongsuk Cho [Tue, 29 Mar 2022 22:34:50 +0000 (07:34 +0900)]
Add --skip-ro-app option

The "--ni-regen-all-app" option performs AOTC again for all installed apps.
If the "--ni-regen-all-app" option is performed after FOTA (OTN),
an error may occur or unnecessary AOTC may be performed by running AOTC for an app installed in the RO area.

To avoid this situation, the "--skip-ro-app" option is added.
If this option is set, native image regenration for apps installed in the RO area is skipped.

Note! this option works with "--ni-regen-all-app" option only.

2 years agoAdd `metadata-profile.xml`
Hyungju Lee [Tue, 12 Apr 2022 06:53:47 +0000 (15:53 +0900)]
Add `metadata-profile.xml`

2 years agoAdd the NI_FLAGS_EXTRA_REF flag used to create ni for app_pkg (#393) accepted/tizen/unified/20220318.132742 submit/tizen/20220318.045134
최종헌/Common Platform Lab(SR)/삼성전자 [Fri, 18 Mar 2022 04:37:57 +0000 (13:37 +0900)]
Add the NI_FLAGS_EXTRA_REF flag used to create ni for app_pkg (#393)

Change-Id: Iab85217a9a97341a99c5e2e6f6521648ddade074

2 years agoBug-fix: fix path for pdb file copying (#392)
조웅석/Common Platform Lab(SR)/삼성전자 [Mon, 7 Mar 2022 23:51:15 +0000 (08:51 +0900)]
Bug-fix: fix path for pdb file copying (#392)

2 years agoRemove ICULoadDisable support from platform image. (#391) accepted/tizen/unified/20220224.125720 submit/tizen/20220224.033231
이형주/Common Platform Lab(SR)/삼성전자 [Thu, 24 Feb 2022 03:31:35 +0000 (12:31 +0900)]
Remove ICULoadDisable support from platform image. (#391)

2 years agoFix app ni path for readonly app (#389) accepted/tizen/unified/20220223.132451 submit/tizen/20220223.002542
이형주/Common Platform Lab(SR)/삼성전자 [Wed, 23 Feb 2022 00:21:35 +0000 (09:21 +0900)]
Fix app ni path for readonly app (#389)

There was a bug in setting the app ni path when RO installed app was updated.
To fix this bug, check root path whether read-only area or not.

Co-authored-by: Woongsuk Cho <ws77.cho@samsung.com>
2 years agoCheck the SPC before creating a native image for the app accepted/tizen/unified/20220222.034344 submit/tizen/20220222.013136
j-h.choi [Mon, 21 Feb 2022 05:19:17 +0000 (14:19 +0900)]
Check the SPC before creating a native image for the app

Change-Id: I14ac5775cb5b58df00fec96134d6c3f75474d3fc

2 years agoApply ICULoadDisable option (#386)
이형주/Common Platform Lab(SR)/삼성전자 [Fri, 18 Feb 2022 02:24:17 +0000 (11:24 +0900)]
Apply ICULoadDisable option (#386)

Apply ICULoadDisable option for apps that run during cold boot

Co-authored-by: 김종민/S/W Platform Lab(VD)/Engineer/삼성전자 <jong-min.kim@samsung.com>