Hwankyu Jhun [Tue, 15 Dec 2020 07:47:47 +0000 (16:47 +0900)]
Release version 0.15.27
Changes:
- Check return value of vsnprintf()
Change-Id: If70675a4c30020fca27db06e15f4669f4005a96e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 10 Dec 2020 23:17:19 +0000 (08:17 +0900)]
Check return value of vsnprintf()
Change-Id: I6609f8bac28ec162e23867d01766a9857153e65b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 27 Nov 2020 00:44:15 +0000 (09:44 +0900)]
Release version 0.15.26
Changes:
- Check executable file
Change-Id: Ic205fdbd383441271532388fc2263cb0cb5a333b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 26 Nov 2020 22:36:24 +0000 (07:36 +0900)]
Check executable file
If an app_path is not executable, launchpad rejects the launch request.
Change-Id: I2ae28b5c1852cb2d500d323fbbc2c4016f0f9720
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 26 Nov 2020 04:53:12 +0000 (13:53 +0900)]
Release version 0.15.25
Changes:
- Support logger path setting
Change-Id: I4ee727cb650dc9c93f46e928e0ba2dbd5fd22849
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 25 Nov 2020 03:44:03 +0000 (12:44 +0900)]
Support logger path setting
Currently, the logger path is hard coded. After this patch is applied,
the platform developer can change the logger path using the configuration file.
Change-Id: Icd510c6bcdfee40e4ca1e15f938b202a92aac75e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 12 Nov 2020 02:47:52 +0000 (11:47 +0900)]
Release version 0.15.24
Changes:
- Fix a bug about loader resumption
Change-Id: I8a0f7774832a0634af486669cbe52112db805cb7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 11 Nov 2020 07:24:29 +0000 (16:24 +0900)]
Fix a bug about loader resumption
When the system memory is available, all paused loaders should be prepared.
Change-Id: I249b9a921fb25ed043e0086876afaf9922100d52
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 27 Oct 2020 01:28:27 +0000 (10:28 +0900)]
Release version 0.15.23
Changes:
- Fix a bug about handling OOM
- Fix coding style
Change-Id: I0ce4b8f4931ccf8ac06ff17a09f83d3c79831250
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Mon, 26 Oct 2020 00:54:27 +0000 (09:54 +0900)]
Fix coding style
Change-Id: I606f1009765cd0bd78afda1951f304855415043c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Wed, 14 Oct 2020 23:00:21 +0000 (08:00 +0900)]
Fix a bug about handling OOM
When system is out of memory and the low memory status is true,
launchpad-process-pool always tries to kill last running slot.
Even if there is no running slot, launchpad-process-pool tries that.
Because, the memory status is true. In that time, launchpad-process-pool
is deadlock state.
After this patch is applied, launchpad-process-pool tries to kill
all running slots when system is OOM. If system is not OOM,
launchpad-process-pool stops killing slots.
Change-Id: I5ff858e20e948407252f603894ffb3edf7d64b12
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Mon, 5 Oct 2020 04:24:42 +0000 (13:24 +0900)]
Release version 0.15.22
Changes:
- Refactor coding style
Change-Id: I62c50bc93d99a17c069415a1854e6037ededd516
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 29 Sep 2020 03:33:04 +0000 (12:33 +0900)]
Refactor coding style
- Fix some coding style
- Change to make_shared instead of constructor
- Use std::move()
Change-Id: I8e2991eb98e68666cc880a5271204aaa548a41f0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Tue, 22 Sep 2020 05:48:25 +0000 (14:48 +0900)]
Release version 0.15.21
Changes:
- Fix directory hierarchy & cmake configuration files
Change-Id: I82bae4a397bb7a02f04bae3198dff0ec872341f0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 21 Sep 2020 06:12:23 +0000 (15:12 +0900)]
Fix directory hierarchy & cmake configuration files
CMake configuration files are changed.
Directory hierarchy is changed as below:
+-----------------------------------------------------+
| launchpad/ |
| |-- cmake/ |
| |-- packaging/ |
| |-- src/ |
| |-- app-defined-loader/ |
| |-- launchpad-loader/ |
| |-- launchpad-parser/ |
| |-- launchpad-process-pool/ |
| |-- lib/ |
| |-- common/ |
| |-- launchpad/ |
| |-- launchpad-hydra/ |
+-----------------------------------------------------+
Change-Id: I1e8c0416c46a61bb749855309d141dd422fd01dd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 25 Aug 2020 00:15:16 +0000 (09:15 +0900)]
Release version 0.15.20
Changes:
- Adjust coding style
- Add privilege level check for plugin parser
- Separate default loader
Change-Id: Iaf49ee02707a0aeb69b49908d15978fd7095194c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 24 Aug 2020 22:51:02 +0000 (07:51 +0900)]
Separate default loader
In 64bit environment(Tizen 64bit IoT), default_arch64.loader.in will be installed
to reduce memory usage.
Change-Id: Ie1201593968541655736cbca4085818dfb982fd1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 20 Aug 2020 00:53:06 +0000 (09:53 +0900)]
Add privilege level check for plugin parser
App-defined loader feature is only for platform developers.
Change-Id: Icbb87b3835bf3e4b866aeb9f8e66896256bc9e71
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 20 Aug 2020 00:33:21 +0000 (09:33 +0900)]
Adjust coding style
Change-Id: I7848355cc6498aad5c243c2d99665abca082366d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 19 Aug 2020 07:46:17 +0000 (16:46 +0900)]
Release version 0.15.19
Changes:
- Add hwc logs for performance check
Change-Id: I212357fc657369556622a76f898a3699218c0a28
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 19 Aug 2020 06:59:37 +0000 (15:59 +0900)]
Add hwc logs for performance check
Change-Id: I77dcd11e86967cead7b6199812dca6ae8cdb872d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 19 Aug 2020 05:35:06 +0000 (14:35 +0900)]
Release version 0.15.18
Changes:
- Remove unused codes
Change-Id: I1122f248c13d322c622f8185d1594e86b09c45ac
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 14 Aug 2020 01:39:54 +0000 (10:39 +0900)]
Remove unused codes
Change-Id: I55b92d53e6824866d3cf0143c514407c924faf4e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Fri, 14 Aug 2020 00:36:21 +0000 (09:36 +0900)]
Release version 0.15.17
Changes:
- Fix memory leak
- Fix double free
Change-Id: I28896bfe7c58075e384c4ca70d6a03a5f531f72b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 14 Aug 2020 00:19:11 +0000 (09:19 +0900)]
Fix double free
Change-Id: I42d55f853c852d73667de28d7665341023f9103c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 13 Aug 2020 10:12:27 +0000 (10:12 +0000)]
Merge "Fix memory leak" into tizen
Changgyu Choi [Thu, 13 Aug 2020 10:03:10 +0000 (19:03 +0900)]
Fix memory leak
Change-Id: Iacde7fe8fe768c39def208e017a89e619b635ab2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Mon, 10 Aug 2020 01:58:39 +0000 (10:58 +0900)]
Release version 0.15.16
Changes:
- Add worker thread for cleanup app
Change-Id: I4df5b28af75beffc299bb80fa140acc87b43ca87
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 10 Aug 2020 00:34:05 +0000 (09:34 +0900)]
Add worker thread for cleanup app
To avoid blocking launchpad, a new worker thread is added for
calling security_manager_cleanup_app().
While installing / uninstalling / updating the package, security-manager
daemon can be blocked. If launchpad calls security_manager_cleanup_app()
at that time, launchpad will be blocked.
Change-Id: I1e88ec38f61eabe21afa754f39f511606c85f148
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 7 Aug 2020 06:49:46 +0000 (15:49 +0900)]
Release version 0.15.15
Changes:
- Fix client pid check
Change-Id: I75c21585d3379a59be25e9e2b732f1422a217f33
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 7 Aug 2020 05:49:08 +0000 (14:49 +0900)]
Fix client pid check
If the loader context is a hydra loader, launchpad doesn't check the
client process ID. The child process of the hydra loader tries to
connect to the launchpad-process-pool. If launchpad rejects the request,
the child process of the hydra loader will be terminated.
Change-Id: If4898ba64acb75f647086e266289a669f83673d5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 4 Aug 2020 23:41:09 +0000 (08:41 +0900)]
Release version 0.15.14
Changes:
- Add debugging logs
Change-Id: I28fac4fa8d4f3125e2ee65ce67aab2529ccbf6fa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 4 Aug 2020 23:35:02 +0000 (08:35 +0900)]
Add debugging logs
Change-Id: I77be8ed0eac2ceb39776bb362f30a87597b7e56d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 31 Jul 2020 01:09:15 +0000 (10:09 +0900)]
Release version 0.15.13
Changes:
- Fix exception handling about printing log
Change-Id: I48573b405361a58988de64720987f188b08ab5d6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 31 Jul 2020 01:00:47 +0000 (10:00 +0900)]
Fix exception handling about printing log
If the logger initialization is failed, printing log will be skipped.
Change-Id: I2e94fb628ed6cc2b42312e9d83bcbfebd5c24c3a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 27 Jul 2020 03:52:09 +0000 (12:52 +0900)]
Release version 0.15.12
Changes:
- Fix Launchpad Library
- Fix wrong implementation
Change-Id: I8a8cae0b277f8302ed6ec0a4b68060195d4b304d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 27 Jul 2020 02:34:19 +0000 (11:34 +0900)]
Fix wrong implementation
Change-Id: I9629c44391733c43ef8d9ff00cf428cb68fdec52
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 22 Jul 2020 04:46:18 +0000 (13:46 +0900)]
Fix Launchpad Library
- Removes calling _launchpad_plugin_prepare_app()
Change-Id: I9f4d1737c446c4749f4a7e454add23145487fd68
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 22 Jul 2020 06:01:09 +0000 (15:01 +0900)]
Release version 0.15.11
Changes:
- Fix Memory Monitor
Change-Id: I280478744858d4e95e5bb27ec929e5e9fe4be1c8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 22 Jul 2020 03:56:07 +0000 (12:56 +0900)]
Fix Memory Monitor
If previous memory status is equal to current memory status,
the callback function is not called.
Change-Id: Ie5c96ef10e19a4f0614b33ec6331ef0db01349c5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Mon, 20 Jul 2020 04:54:56 +0000 (13:54 +0900)]
Release version 0.15.10
Changes:
- Add to check pid from __accept_candidate_process()
Change-Id: I297cd5cb2a16f32fef93a4d1536e9325a5f2c7f5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 20 Jul 2020 01:36:31 +0000 (10:36 +0900)]
Add to check pid from __accept_candidate_process()
Check whether different cpc and received socket pid,
when accept client socket.
If they are different, It is invalid accept.
Change-Id: I2f2a3e9896fc07fc6ee77d4ca77d47042fa6d958
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 13 Jul 2020 00:56:13 +0000 (09:56 +0900)]
Release version 0.15.9
Changes:
- Fix Launchpad Recovery Feature
Change-Id: I318cfd0a3f062ce0305c8551c98437d0b7fcb884
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 10 Jul 2020 02:45:03 +0000 (11:45 +0900)]
Fix Launchpad Recovery Feature
Add to select ".launchpad-process-pool-sock".
".luanchpad-recovery-sock" is just used socket activation for recovery.
Change-Id: I73e5dd59bbb99b2e24f25a84437284742dc337fe
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Tue, 30 Jun 2020 06:12:45 +0000 (15:12 +0900)]
Release version 0.15.8
Changes:
- Include missing header file
Change-Id: I2e260900474094b74e5299754864b6a190234da3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 30 Jun 2020 05:38:01 +0000 (14:38 +0900)]
Include missing header file
Change-Id: I5c671b8fc280457632fdf163104b2bf1de8626f6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 30 Jun 2020 04:19:16 +0000 (13:19 +0900)]
Release version 0.15.7
Changes:
- Change size method to 'sizeof'
- Remove unused CMakeLists.txt file
- Revert "Change size method to 'sizeof'"
- Handle returned events
- Add a file log for debugging launchpad
- Change SMACK label of the log file
Change-Id: I06a676ee851b0a678496c1f4b4c53843328187f5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 30 Jun 2020 03:53:53 +0000 (12:53 +0900)]
Change SMACK label of the log file
Change-Id: Ib07f8c8b69065a817626557c2f1dc18698ff9941
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 26 Jun 2020 06:31:58 +0000 (15:31 +0900)]
Add a file log for debugging launchpad
"/var/log/appfw/launchpad/launchpad.log" is added.
Change-Id: I280d010bb048671c66f4fe0eed698977335a4a61
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 26 Jun 2020 05:33:53 +0000 (14:33 +0900)]
Handle returned events
When IO_ERR, IO_HUP or IO_NVAL is delivered, Launchpad tries to recover
the socket. If it's failed, Launchpad uses abort() to terminate itself
abnormally.
Change-Id: I0680c5a6b1899d3dac22459361a927a2591478fc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
changyu.choi [Thu, 25 Jun 2020 08:55:03 +0000 (17:55 +0900)]
Revert "Change size method to 'sizeof'"
This reverts commit
6813b19565277ac4102d3b97bc0e5039ad1cc5f5.
Change-Id: I242026d861b6f9dcc6a3fc847ffdb9aad68682a0
Signed-off-by: changyu-choi <changyu.choi@samsung.com>
Hwankyu Jhun [Thu, 25 Jun 2020 09:57:56 +0000 (18:57 +0900)]
Remove unused CMakeLists.txt file
Change-Id: I1c27ed409b9cffe24cef5362e83a0df8cdfe3265
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
changyu.choi [Thu, 25 Jun 2020 05:35:49 +0000 (14:35 +0900)]
Change size method to 'sizeof'
Change-Id: I22ae01445be913c5c4b8c890bd899bad56f71f1a
Signed-off-by: changyu-choi <changyu.choi@samsung.com>
Hwankyu Jhun [Tue, 23 Jun 2020 23:36:50 +0000 (08:36 +0900)]
Release version 0.15.6
Changes:
- Check the error value Before printing error logs
- Fix SMACK error
Change-Id: I9d40a9bd655b421d2e71e9e74247b8847a56a408
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 23 Jun 2020 22:33:45 +0000 (07:33 +0900)]
Fix SMACK error
When calling sd_journal_stream_fd() is failed, the child process used
the fds of the parent. It causes SMACK errors.
To prevent SMACK errors, the child process uses "/dev/null" for standard I/O
redirection if calling sd_journal_stream_fd() is failed.
Change-Id: Ia1816c552c8d417317d031d3945c9f89a86edb40
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 23 Jun 2020 01:21:15 +0000 (10:21 +0900)]
Check the error value Before printing error logs
If the error value is -ENOENT(No such file or directory), the process
doesn't print the error logs.
Change-Id: I15548f966b4c28928f0f460c4be5a611df57503d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 18 Jun 2020 23:33:49 +0000 (08:33 +0900)]
Release version 0.15.5
Changes:
- Limit error log from __get_connection
- Reduce printing logs
- Fix bugs about sending dbus signal
- Fix standard I/O redirection
Change-Id: If8157766ddc65e2c9ca55f61be76e825faacb6c5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 18 Jun 2020 08:18:39 +0000 (17:18 +0900)]
Fix standard I/O redirection
If calling sd_journal_stream_fd() is failed, the child process uses
the interitance of file descriptors.
Change-Id: Ia37c1ca586d735280cc07298088c00c93815b2aa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 18 Jun 2020 22:07:43 +0000 (07:07 +0900)]
Fix bugs about sending dbus signal
If flushing a pending signal is failed, launchpad should not create and
store a new pending item from it.
Change-Id: Ieb72efd4c16d92610f1aa7a20dc741cd16e0998b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 18 Jun 2020 22:45:36 +0000 (07:45 +0900)]
Reduce printing logs
Change-Id: I8da9db42385a395aaf4a36d83ff27d48ffe1f7e8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
changyu-choi [Thu, 18 Jun 2020 08:16:37 +0000 (17:16 +0900)]
Limit error log from __get_connection
Change-Id: I29bbbe56296a2ede7a8cb7f0422d9318ccf7b917
Signed-off-by: changyu-choi <changyu.choi@samsung.com>
Hwankyu Jhun [Fri, 12 Jun 2020 01:32:09 +0000 (10:32 +0900)]
Release version 0.15.4
Changes:
- Fix setting LC_ALL env
- Fix hydra sigchld handler
Change-Id: If4b202bcb6687612df5e533c4d71352eb3fea7ba
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 9 Jun 2020 11:53:46 +0000 (20:53 +0900)]
Fix hydra sigchld handler
When the child process of the hydra loader is dead, the hydra loader
sends the signal to the launchpad-process-pool.
This patch separates launchpad_signal.c file.
Change-Id: Idaddf9c963b331e1257fbeb8d8f1f985adbd9b0a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 12 Jun 2020 01:25:22 +0000 (10:25 +0900)]
Fix setting LC_ALL env
Change-Id: Ifb0e2fc6da3a425fafdb771b900d270b540ba0bb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 2 Jun 2020 07:32:49 +0000 (16:32 +0900)]
Release version 0.15.3
Changes:
- Add logs for debugging launching performance
Change-Id: I7a033eabe7046a5d46499e34427e527033f7aa78
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 1 Jun 2020 01:22:06 +0000 (10:22 +0900)]
Add logs for debugging launching performance
Change-Id: Ide2343c0b9e2aebcbc1c4d75e2c04584008f960e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 1 Jun 2020 00:34:13 +0000 (09:34 +0900)]
Release version 0.15.2
Changes:
- Remove getting vconf values
Change-Id: Ia5f07f8b63337fbecd989461d57649b85982ef3e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 1 Jun 2020 00:15:28 +0000 (09:15 +0900)]
Remove getting vconf values
This patch removes getting vconf values while launching an application.
Sometimes, calling vconf API in the child process is failed by timed out error.
If the environment variable is already set, the child process uses it to set.
If it's not, the child process uses "en_US.UTF-8".
Change-Id: I8b630a3c3874d00bd3120fb0f2c7e689d3574818
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 29 May 2020 02:27:37 +0000 (11:27 +0900)]
Release version 0.15.1
Changes:
- Support ASAN debug mode
- Set environment variables before executing the application
Change-Id: Id6beb8ce372038a015e040cf5f0319bf7e71c4b3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 29 May 2020 02:07:02 +0000 (11:07 +0900)]
Set environment variables before executing the application
To avoid thread-safe issue of setenv() / getenv(), the child process
adds the environment variables to increase buffer size of __environ.
Change-Id: Ia656b8c4cbc2fb5014a1fe399e78dfc9475dbf6d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 27 May 2020 11:13:15 +0000 (20:13 +0900)]
Support ASAN debug mode
Change-Id: I5ff27faf3ea93c478ff5fcb22845455787300dba
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 19 May 2020 00:16:34 +0000 (09:16 +0900)]
Release version 0.15.0
Changes:
- Change project name of launchpad library
- Fix loader management
- Support plugin module
- Fix resource leak
Change-Id: I3245c3b75c6bc090c790809c5fd0f58826ffc0fb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 19 May 2020 00:39:37 +0000 (09:39 +0900)]
Fix resource leak
Change-Id: If9de9ee89410b7cf27162be3d878d9035a30653b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 18 May 2020 03:09:41 +0000 (12:09 +0900)]
Support plugin module
Before dropping capabilities of child process, the plugin module is called
to prepare changing the application.
Change-Id: I18600b383a3c7a87e8f0df012b7fda219bccbd6f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 18 May 2020 11:50:19 +0000 (20:50 +0900)]
Fix loader management
If the cpu check count has exceeded 10 times, the loader context is queuing and
the next loader context will be checked. The platform developer can adjust
the maximum CPU check count by modifying launchpad.conf file.
Change-Id: I0e0917cff2b88cbf6d1a6ea2b0e2fedb983d9ebf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 18 May 2020 23:29:07 +0000 (08:29 +0900)]
Change project name of launchpad library
Change-Id: I20640bb7e230e823388548748ebbbe4279dc9798
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 18 May 2020 04:45:32 +0000 (13:45 +0900)]
Release version 0.14.5
Changes:
- Fix ASAN build issue
Change-Id: Id141f6e85ed86de829437f5a83b678ee70589495
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 18 May 2020 03:38:26 +0000 (12:38 +0900)]
Fix ASAN build issue
Change-Id: Ife64bd725926ffac0b1cb4581b1b917ca3dd93bc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 15 May 2020 09:39:34 +0000 (18:39 +0900)]
Release version 0.14.4
Changes:
- Check loader id validation
Change-Id: Ibc5a4184c79c42f3148f7f57627b8ab4d0f6c826
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 15 May 2020 07:47:46 +0000 (16:47 +0900)]
Check loader id validation
Change-Id: I74f713afdd4ba9c367f4b4a7f9c0a9c2871e3c6c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 14 May 2020 02:17:06 +0000 (11:17 +0900)]
Release version 0.14.3
Changes:
- Print PSS usage after loading preload libraries
Change-Id: I8ce772cc17fd0ccfa9f0dc3c25a1d6379f5fa5ef
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 13 May 2020 07:28:49 +0000 (16:28 +0900)]
Print PSS usage after loading preload libraries
Change-Id: I48fb1ee0266ed3624302a8e0f4cfcc7e06c37c40
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 12 May 2020 23:51:16 +0000 (08:51 +0900)]
Release version 0.14.2
Changes:
- Fix default debugger config file
Change-Id: Ib0e6bf9f58568a98e606cc2c3c82b01701910375
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 12 May 2020 01:17:42 +0000 (10:17 +0900)]
Fix default debugger config file
Adds:
- gdb
Change-Id: Ie2465a4732ecc0aeb1122d0c418c373c5f21a156
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 7 May 2020 01:20:14 +0000 (10:20 +0900)]
Release version 0.14.1
Changes:
- Fix Logger Handler
Change-Id: I6cea08feaf187ecac0c7976d7be5e2a2390d0c5f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 29 Apr 2020 03:30:30 +0000 (12:30 +0900)]
Fix Logger Handler
- Uses LOGE() instead of SECURE_LOGE() for debugging errors
Change-Id: Ifa8d3bc631bd94b27ed49a8aa21a7261e5a4b272
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 8 Apr 2020 03:33:46 +0000 (12:33 +0900)]
Release version 0.14.0
Changes:
- Check EFL module version in build time
- Add a new tag for loader
Change-Id: Ia450474d6f518670b603040cc3764616e47fe817
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 7 Apr 2020 06:26:43 +0000 (15:26 +0900)]
Add a new tag for loader
If "APP_CHECK" is "OFF", the launchpad doesn't check whether the
application is installed or not.
Change-Id: I74aa5c02429c945194113a8a29649d71bf068256
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Jongmin Lee [Wed, 8 Apr 2020 00:08:23 +0000 (09:08 +0900)]
Check EFL module version in build time
EFL module path depend on its version. This commit makes it possible
to read EFL module version and generate EFL module path in build time.
Change-Id: I8bcf33dc814878bd0e8900b7c29105a07c2208d9
Jusung Son [Wed, 26 Feb 2020 04:32:26 +0000 (13:32 +0900)]
Release version 0.13.1
Changes:
- Modify candidate process creation rule for app-defined loader
- Fix resource leak
- Apply time-to-live range for app-defined loader
Change-Id: I2bd0fae505bee9ed5c64c7ff04fdfcf5fdb90a49
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
Jusung Son [Tue, 25 Feb 2020 08:15:32 +0000 (17:15 +0900)]
Apply time-to-live range for app-defined loader
- min : 30sec, max 60sec
Change-Id: Id31bc158a6841ee3240552e9bc8ccddd91973bc1
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
Jusung Son [Tue, 25 Feb 2020 05:26:08 +0000 (14:26 +0900)]
Fix resource leak
Change-Id: I480ea356548a4ce25a4e6ebb6028474bd011a950
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
Jusung Son [Tue, 25 Feb 2020 05:21:58 +0000 (14:21 +0900)]
Modify candidate process creation rule for app-defined loader
- Create only one candidate process for each loader
Change-Id: If4a17d2574a8068620eda7e8621c39df5dc38ff0
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
Hwankyu Jhun [Tue, 25 Feb 2020 04:27:50 +0000 (13:27 +0900)]
Release version 0.13.0
Changes:
- Add app_defined_loader
- Support memory management feature
- Add memory management feature on app-defined-loader
- Fix memory management feature
- Adjust coding style
- Fix char overflow
Change-Id: Ib77043876d29015c78253717c0a15ea90373b7b4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Jusung Son [Tue, 25 Feb 2020 02:30:47 +0000 (11:30 +0900)]
Fix char overflow
char type_str[0] = '0' + LAUNCHPAD_LOADER_TYPE_DYNAMIC = 48 + 100 = -108
Change-Id: Ifebba27e34d303fcdbaf5205471d39c91c1dbcbc
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
Hwankyu Jhun [Tue, 25 Feb 2020 01:46:17 +0000 (10:46 +0900)]
Adjust coding style
- Uses static_cast<...>(...) instead of C-style cast
- Uses left alignment style
- Adds C++ coding style check tool
Change-Id: I5b0a7817fe9f523027b1a8ee4c2fe4eb5b05d236
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 25 Feb 2020 01:12:43 +0000 (10:12 +0900)]
Fix memory management feature
Change-Id: Icff15a3b5e9b16e3e3e0572a1cbdb8daa673e2b9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 25 Feb 2020 00:43:15 +0000 (09:43 +0900)]
Add memory management feature on app-defined-loader
If PSS of app-defined-loader process is over the threshold,
app-defined-loader process stops loading the libraries.
The platform developer can change the threshold using
app-defined-loader.conf file.
Change-Id: Id2476dbcfbce5d3c272028a883ec6a509cfa310f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 21 Feb 2020 03:34:13 +0000 (12:34 +0900)]
Support memory management feature
To manage memory usage, the launchpad checks the proc filesystem.
If the percentage of memory usage is over the threshold value, the
launchpad terminates the running slots. In this time, the running slots
are managed by the score and the memory usage(PSS). (exclude hydra loader)
The score of the candidate slot is decided by the amount of usage.
Change-Id: Ie8678be7dc6dfb346b4523b996bfa39d02b006f5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
hyunho [Thu, 20 Feb 2020 02:11:36 +0000 (11:11 +0900)]
Add app_defined_loader
Change-Id: I9ec6d2202ec3e6596a19b787a204703771996669
Signed-off-by: hyunho <hhstark.kang@samsung.com>