Hyotaek Shim [Wed, 11 Mar 2020 02:09:18 +0000 (11:09 +0900)]
Temporarily disable built test
Change-Id: If64ec46bfedbd94f56d31a38605f4033cddf957e
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Agnieszka Baumann [Mon, 2 Mar 2020 12:16:15 +0000 (13:16 +0100)]
parse_bytes prevent out of range value
Change-Id: I65fd241855fa480ffea53b94f6914c925fde9cda
sanghyeok.oh [Thu, 27 Feb 2020 04:14:03 +0000 (13:14 +0900)]
coverity: Fix coverity issue
Coverity: #1092538 Buffer not null terminated
Change-Id: Ib56db8edb211e819aa947f734894a1b757d5a518
Agnieszka Baumann [Thu, 6 Feb 2020 09:48:07 +0000 (10:48 +0100)]
Add proc_app_list test case
Change-Id: Ie311ee403d35f3200095796c1d535b5a59a60afb
Agnieszka Baumann [Thu, 13 Feb 2020 12:21:20 +0000 (13:21 +0100)]
Fix coverity bugs
Change-Id: Ie1f584a9f4b4d42543247dc3657e998b902ddada
Maciej Slodczyk [Mon, 10 Feb 2020 14:12:39 +0000 (15:12 +0100)]
unit tests: add license headers
Change-Id: I4a6d761690c526fb1919688437784eafb947495f
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Maciej Slodczyk [Mon, 10 Feb 2020 13:47:49 +0000 (14:47 +0100)]
unit tests: remove unnecessary cflags
Change-Id: I7dd8ba4ac8c2232d4d98b6be91435b73837b1e55
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Agnieszka Baumann [Tue, 4 Feb 2020 09:30:17 +0000 (10:30 +0100)]
Add skipped unfinished tests
Change-Id: I90935144c9b9d83dfc171919a6821c3ce2af02ee
Agnieszka Baumann [Wed, 5 Feb 2020 15:31:53 +0000 (16:31 +0100)]
Fix -Wextra and -pedantic errors
Change-Id: I8eddbe7c94cfbbc497d6c1d59c180717d6dde898
Agnieszka Baumann [Mon, 3 Feb 2020 15:09:33 +0000 (16:09 +0100)]
make filenames consistent
Change-Id: I4e1bea4a32939d00a312d1efaa8ec28f8f1ba472
Baumann [Thu, 9 Jan 2020 08:29:44 +0000 (09:29 +0100)]
Add proc_app_info childs list unit test
Change-Id: I61859321333ce5e56a837e7536b290b15fca1706
Maciej Slodczyk [Mon, 9 Dec 2019 10:26:07 +0000 (11:26 +0100)]
unit-tests: file-helper
Change-Id: If6060efbebcc48abf1398d31e58564c184bd843c
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Maciej Slodczyk [Mon, 27 Jan 2020 18:09:43 +0000 (19:09 +0100)]
common: preserve correct errno value when writing logs
Change-Id: I51dc6443dbb1e3275fdf8887d398f41896ed814e
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Maciej Slodczyk [Mon, 27 Jan 2020 13:56:57 +0000 (14:56 +0100)]
Add dbus_get_cpu_lists tests
Change-Id: I2f03065f55ca627d1977f854af5de2af230f8199
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Maciej Slodczyk [Mon, 20 Jan 2020 12:16:33 +0000 (13:16 +0100)]
Add dbus_get_memory_lists tests
Change-Id: Ib0a5678825af80d0048ecb798a890c9b35d83926
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Baumann [Mon, 16 Dec 2019 14:49:04 +0000 (15:49 +0100)]
Add proc_add_app_info cmocka unit test
Change-Id: I516946ca67fab4787a1d51153ae8a8e191c9bed2
Maciej Slodczyk [Tue, 17 Dec 2019 17:02:08 +0000 (18:02 +0100)]
unit tests: extend proc_dbus_aul_group tests
Change-Id: I6735f09b0e8f7b3a312434c709cb4ee82b86e59f
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Maciej Slodczyk [Tue, 21 Jan 2020 13:19:34 +0000 (13:19 +0000)]
Merge "tests: fix mocking of large-file syscall versions" into tizen
Michal Bloch [Tue, 21 Jan 2020 12:19:49 +0000 (13:19 +0100)]
tests: fix mocking of large-file syscall versions
Some buildchains produce code that links to large-file versions
of most syscalls (e.g. opendir → opendir64) which also need to
be mocked.
Change-Id: Ia1983069a15ded569172fc326e5f1de07f3cf2d4
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Baumann [Mon, 18 Nov 2019 14:55:06 +0000 (15:55 +0100)]
Add DBus cmocka unit tests
Change-Id: I62008486b3144f27d91ef91916bd32acef28eb8c
Signed-off-by: Baumann <a.baumann@samsung.com>
Adrian Szyndela [Thu, 9 Jan 2020 15:18:04 +0000 (16:18 +0100)]
tests: add tests for lowmem-dbus module
Change-Id: Ib92de33c9fbc380dee4037cd787ee8eb33504a02
Adrian Szyndela [Thu, 9 Jan 2020 15:15:28 +0000 (16:15 +0100)]
tests: add triggering for dbus signals
This adds mocked dbus signals registration function, a registration,
and callback mechanisms. It allows checking if dbus signals handlers
do their thing.
Change-Id: Id6af42d25fd00985e8f84d759d10457e031d39b8
Adrian Szyndela [Wed, 8 Jan 2020 15:38:21 +0000 (16:38 +0100)]
tests: add lowmem-system tests
Change-Id: I2111d33c92d5dd5588685ee95373a8d53e015155
Adrian Szyndela [Wed, 8 Jan 2020 15:34:01 +0000 (16:34 +0100)]
tests: extract common code for lowmem modules
This extracts the code which is common for testing lowmem-limit
and lowmem-system modules to separate files.
Add minor improvements:
* extract function for adding test modules in CMakeLists.txt
* add cmocka_wrap.hpp which aims to make including cmocka.h easier.
Change-Id: I67c34e3dbd84316fbd86d075e72333f2d0d14625
Michal Bloch [Mon, 30 Dec 2019 16:36:29 +0000 (17:36 +0100)]
Various string buffer size checks
Change-Id: I65547beb1beceb0d8eb4a9516dda11cda9d84599
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Mon, 30 Dec 2019 16:38:40 +0000 (17:38 +0100)]
asprintf(3) requires <stdio.h> with _GNU_SOURCE
Change-Id: I514b6c5d229005efa56b303708679c5ac11478e4
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Mon, 30 Dec 2019 16:37:09 +0000 (17:37 +0100)]
Fix 64-bit builds (explicit type casting)
Change-Id: I2f84c225d705aecd326015e3dc3d858457f7ae5b
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Mon, 30 Dec 2019 18:15:30 +0000 (19:15 +0100)]
Fix an instance of errno pollution
Change-Id: Iecfb9e9639a6ddf81ea038e844da66e46cfc0287
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Mon, 30 Dec 2019 16:34:38 +0000 (17:34 +0100)]
Fix CMake flag restoration
Change-Id: Ib098276c83720d88ac8cf1809065f1355067e1f4
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Mon, 30 Dec 2019 11:40:40 +0000 (12:40 +0100)]
Explicit "(null)" for %s (-Werror=format-overflow)
Change-Id: I4e9fa414b3bbb1196491bb9ba5258f83610770ec
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Adrian Szyndela [Mon, 16 Dec 2019 12:32:02 +0000 (13:32 +0100)]
tests: lowmem-limit
This adds tests framework for lowmem_limit module.
The framework consists of:
- mocking layer (lowmem-limit-mock);
- mocked environment (lowmem-limit-env) - mocked system functions and
implemented other functions used by lowmem_limit (lowmem-limit-env);
- test driver (lowmem-limit-test) - contains test cases and runs them.
Change-Id: Id70b8d755bbde4accb7c45d193e7f7c77523d007
Adrian Szyndela [Tue, 17 Dec 2019 14:13:02 +0000 (15:13 +0100)]
spec: allow incremental builds
This makes 'mkdir -p' from 'mkdir' to silence mkdir from complaining
when created directory already exists.
This is needed for incremental builds, as by their very nature they
build over something that was already built. That is, 'build' directory
was created with previous build, and now, while building we don't want
to bail out with error, because it already exists.
Enough said. This is good stuff. Really.
Change-Id: Iaba6fa9d6ecb0d1a9bc4040465c4d979df377695
Adrian Szyndela [Tue, 17 Dec 2019 12:40:36 +0000 (13:40 +0100)]
memory: allow lowmem_limit to reinit for tests
This sets memory_limit_hash to NULL after freeing memory
associated with it. This way we can initialize the module
again. It helps with performing consecutive tests
within a single binary.
Change-Id: Icfe2755c1d7689a314d04d0056c9cac05bdafcd7
Adrian Szyndela [Mon, 16 Dec 2019 16:16:49 +0000 (17:16 +0100)]
lowmem: fix memleak on error
Change-Id: I10a70086f0302335c9023b4892388b2b3209674c
Maciej Slodczyk [Tue, 10 Dec 2019 10:08:46 +0000 (11:08 +0100)]
remove duplicated code
Change-Id: I0a9dfa4534eb87c8e665268ff08b2060762a99f4
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Michal Bloch [Wed, 4 Dec 2019 14:27:19 +0000 (15:27 +0100)]
Fix `aarch64` builds
Change-Id: I0636a683b342bd8e2460737260b7e6934d977d7e
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Maciej Slodczyk [Thu, 14 Nov 2019 16:20:55 +0000 (17:20 +0100)]
unit tests: fd-handler
Change-Id: Id52044e532cc1873c6838f06e24c5f72229e107f
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Maciej Slodczyk [Tue, 5 Nov 2019 16:58:21 +0000 (17:58 +0100)]
unit tests: config parser
Change-Id: If103e1b6a8a9d8ae647ea081fc5a9681c5767881
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Maciej Slodczyk [Tue, 12 Nov 2019 13:16:41 +0000 (14:16 +0100)]
add cmocka based unit testing framework to the build process
Contains a notifier test as a working example.
Change-Id: I545406edad50763d9687abf4c418c2e6b0f94b0d
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Maciej Slodczyk [Tue, 3 Dec 2019 15:27:45 +0000 (16:27 +0100)]
fix file-helper return value on premature EOF
Change-Id: I022f22746db4a9285f50208fe53ec7c49063cb0d
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Łukasz Stelmach [Wed, 28 Feb 2018 14:27:17 +0000 (15:27 +0100)]
vip : rearrange logging to provide more debugging information
Change-Id: I7ece8e8d7b83ff288457f8607eaa39f24b1bfa4a
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
sanghyeok.oh [Tue, 3 Dec 2019 06:26:54 +0000 (15:26 +0900)]
svace fix
Change-Id: Ifc22558c277143c9620b38c9b2eb1552d37b652b
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Michal Bloch [Wed, 27 Nov 2019 10:52:01 +0000 (11:52 +0100)]
Release 6.0.2
Adds some product related functionality.
Change-Id: Ib967cc2f76454576a87714f3b9335a7778a3b345
ByungSoo Kim [Fri, 11 Aug 2017 13:50:56 +0000 (22:50 +0900)]
proc: make new interface to change priority
Systemd can support changing priority of system services
but in case application, no one can change priority.
It adds new interface in order to increase, decrease, reset priority of application
with priviledge.
Change-Id: I268c4ccb4faf8669e200f175691d3bfc8770c947
Signed-off-by: ByungSoo Kim <bs1770.kim@samsung.com>
ByungSoo Kim [Tue, 10 Jan 2017 07:57:48 +0000 (16:57 +0900)]
proc: add new interface for getting ram size
There are many requirements to get total ram size in such as smart
manager or gear manager.
Kernel and bootloader have already known ram size information
and they wrote this to /proc/cmdline.
'mem=nn[KMG] [KNL,BOOT] Force usage of a specific amount of
memory'
Since Resourced can parse this information,
it can avoid using the hard coded value in other modules.
Change-Id: Ib1aca7c23414391b453b9e55c6cd3b393499f49b
Michal Bloch [Thu, 3 Oct 2019 16:33:36 +0000 (18:33 +0200)]
Port heart-battery.c
Change-Id: I232bdda38ab5c2cc73a93c5f75104f31fc49327f
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Mon, 7 Oct 2019 14:42:46 +0000 (16:42 +0200)]
Port vmpressure-lowmem-handler.c
Change-Id: I21fe594cd921aea9943f82bb968e3759d8226fcf
Amandeep Chauhan [Mon, 3 Jun 2019 14:48:17 +0000 (16:48 +0200)]
Remaining Useful Life (RUL) implementation
RUL implementation for monitoring battery health
and detecting when battery needs to be replaced
Change-Id: Id286f292630ede1670be2859e4439f236551631f
Signed-off-by: Amandeep Chauhan <a.chauhan@samsung.com>
INSUN PYO [Mon, 18 Nov 2019 10:57:37 +0000 (19:57 +0900)]
Fix indent
Change-Id: I38295ad9d738103ae2041db8c5a4eea08153d554
Karol Lewandowski [Wed, 13 Nov 2019 15:41:49 +0000 (16:41 +0100)]
Release 6.0.1
This version introduces plugin system, allowing to drop -light
variant as all functionality can be enabled/disabled by providing
or not respective modules.
Change-Id: Ifb5b37652c622a7ea335ac4166b9c2e51be8032b
Karol Lewandowski [Tue, 22 Oct 2019 21:18:08 +0000 (23:18 +0200)]
Drop light variant if favour of plugins
Change-Id: Ie00753f470a0d214db3c0d478df88d9f4bb5445a
Karol Lewandowski [Fri, 8 Nov 2019 14:32:19 +0000 (15:32 +0100)]
plugins: Separate heart module
Change-Id: I6a87903ad00e7bc65879eca2fd4661d5e1f64e70
Karol Lewandowski [Tue, 22 Oct 2019 12:37:55 +0000 (14:37 +0200)]
plugins: Separate swap module
Change-Id: Iea7ce4fefe2444de444b7f353df733322f561aac
Karol Lewandowski [Tue, 22 Oct 2019 10:00:50 +0000 (12:00 +0200)]
plugins: Separate freezer module
Change-Id: Id5a60a03a93064a8e8666cef682214e750baca50
Karol Lewandowski [Tue, 22 Oct 2019 09:13:47 +0000 (11:13 +0200)]
plugins: Separate block module
Change-Id: I43a67d96c0796df8d3da96ab612458c79064ab3a
Karol Lewandowski [Mon, 21 Oct 2019 09:13:04 +0000 (11:13 +0200)]
plugins: Introduce private API and plugin architecture
Split resourced into:
+ private api (libresourced-private-api library and headers)
+ plugins using the api (/usr/lib/resourced/plugins)
Change-Id: I426a9ed26b74f389194300936508cb3f055a2c00
Michal Bloch [Fri, 8 Nov 2019 13:11:14 +0000 (14:11 +0100)]
Bring back some "unused" functions for module use
These are used in freezer.
This partially reverts
ced08db5bb62fd4ba35f0fbc38799097d2da3240.
Change-Id: I2ca2b63c51f2aae6ed576a9a01d9630ef429b1de
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Karol Lewandowski [Tue, 22 Oct 2019 09:10:30 +0000 (11:10 +0200)]
Drop debugging defines
These are rarely/never used - leave them in .c files so that one
can still enable these if really needed.
Change-Id: I2005d9f5121f01d48ede99d7b86ada04c208ad09
Karol Lewandowski [Mon, 21 Oct 2019 09:10:46 +0000 (11:10 +0200)]
Avoid redundant module redefinitions
Change-Id: Icbd38fa648cb14817ecde3c38d6e9434b5371417
Karol Lewandowski [Thu, 17 Oct 2019 13:24:09 +0000 (15:24 +0200)]
Drop unused defines
Change-Id: Ia7a8c43f7e42ab11c9a4b89d635b2b3b1e4e82a3
Karol Lewandowski [Wed, 16 Oct 2019 12:38:18 +0000 (14:38 +0200)]
Use alternatives mechanism to manage configuration (bump to v5.5.3)
This is necessary to support multiple configuration providers.
Bump version to 5.5.3 as this is required for external package to depend
on new resourced configuration scheme.
Change-Id: Ic188a0fc4a75569107e13b9a218652f20ed31f1d
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Maciej Slodczyk [Mon, 21 Oct 2019 11:05:10 +0000 (13:05 +0200)]
Remove unused functions and static vars
Change-Id: Ic1c519b2bd019ebd64cb165c4fe0bb64fc86d623
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Maciej Slodczyk [Mon, 21 Oct 2019 11:04:22 +0000 (13:04 +0200)]
Remove unused heart/decision module
Change-Id: I516b6de69e56c6e9bb2bf0977d875e77894e9fee
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Karol Lewandowski [Mon, 21 Oct 2019 10:56:23 +0000 (10:56 +0000)]
Merge "Fix parsing proc-appusage config" into tizen
sanghyeok.oh [Fri, 18 Oct 2019 02:04:41 +0000 (11:04 +0900)]
dbus-handler: changed to use gvariant
Change-Id: I9b5cd2fe813cb2390f4aa7f160c38201a64824b2
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
sanghyeok.oh [Fri, 18 Oct 2019 00:46:12 +0000 (09:46 +0900)]
svace fix
Change-Id: Ib467abdfa3b6b09a78e689438240945bc31e7ab6
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
INSUN PYO [Thu, 17 Oct 2019 10:25:19 +0000 (19:25 +0900)]
Fix parsing proc-appusage config
/etc/resourced/proc.conf has multi sections.
So, "config-parser.c: config_parse(124) > Failed to read /etc/resourced/proc.conf:16!" appears on dlog.
///////////////////////////////////////////////////////////////////////////////////////////////////////
0 config_parse (file_name=0x41a960 "/etc/resourced/proc.conf", cb=0x40bda9 <load_appusage_config>, user_data=user_data@entry=0x0) at /usr/src/debug/resourced-5.5.2/src/common/config-parser.c:123
1 0x0040bcec in proc_appusage_table_init () at /usr/src/debug/resourced-5.5.2/src/proc-stat/proc-appusage.c:114
2 booting_done (data=<optimized out>) at /usr/src/debug/resourced-5.5.2/src/proc-stat/proc-appusage.c:136
3 0x00418a1a in resourced_notify (status=RESOURCED_NOTIFIER_BOOTING_DONE, data=0x0) at /usr/src/debug/resourced-5.5.2/src/common/notifier.c:101
4 0x0040ccac in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/resourced-5.5.2/src/resourced/main.c:64
//////////////////////////////////////////////////////////////////////////////////////////////////////
Change-Id: I6ae7befc4131adc6eaad05b7f7e6f861b46439fe
Maciej Slodczyk [Tue, 15 Oct 2019 14:47:14 +0000 (16:47 +0200)]
Remove unused defines
Change-Id: I87c7d362e27b1cdd2e02335a716118a3f1db6aaa
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Maciej Slodczyk [Tue, 15 Oct 2019 14:25:53 +0000 (16:25 +0200)]
Remove unused struct definitions
Change-Id: I2e2d4b21562e7fca4ee1868e132affffb0893ae0
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Maciej Slodczyk [Tue, 15 Oct 2019 14:24:16 +0000 (16:24 +0200)]
Remove unused enum definitions
Change-Id: Ideaf0c0446a672d047386ac325851c80a0e6fde9
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Michal Bloch [Fri, 11 Oct 2019 16:10:22 +0000 (18:10 +0200)]
Detect missing cgroups gracefully
Change-Id: Ied92bf63f47977067f69a77961b465fa6d4673ed
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Thu, 10 Oct 2019 06:57:11 +0000 (08:57 +0200)]
Fix a critical section being too short
Change-Id: I51ec823849f273f9f529d33ee5cfdf6395171b6b
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Fri, 30 Aug 2019 12:49:26 +0000 (14:49 +0200)]
Fix various complaints by SVACE static analysis
Change-Id: I30253cab444b3592ca57822b3d398bc69bacf2e0
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
INSUN PYO [Thu, 26 Sep 2019 02:32:37 +0000 (11:32 +0900)]
Refactoring error handling
Change-Id: Ia1d1a2eb9c50c3c1e72f86101e2af5119f744ee0
INSUN PYO [Tue, 24 Sep 2019 04:55:24 +0000 (13:55 +0900)]
Fix memory leak
Change-Id: I9b99d08acae29d280d1dd32dd6616d8e6d373b57
Karol Lewandowski [Fri, 20 Sep 2019 16:14:50 +0000 (16:14 +0000)]
Merge "proc: check application status" into tizen
Karol Lewandowski [Fri, 20 Sep 2019 14:03:52 +0000 (14:03 +0000)]
Merge "heart: Notify SluggishFW on app malfunction detection" into tizen
ByungSoo Kim [Fri, 1 Dec 2017 09:05:36 +0000 (18:05 +0900)]
vip: disable release agent when resourced doesn't work such as poweroff scenario
[Problem scenario]
- request poweroff
- deviced tries to umount /opt/usr partition
- send sigterm signal using "fuser" command
- If a VIP process is accessing /opt/usr, it is terminated by deviced
- resourced detects VIP release agent and restarts device with silent option
So, even though user wants to shutdown device with other option,
device will be started with only "silent" mode.
It is not necessary to check VIP process during poweroff.
It should be disabled.
Change-Id: I4f9185c74de41a2de3d8772975fb17ac2108a1cd
Signed-off-by: ByungSoo Kim <bs1770.kim@samsung.com>
[Fixed typos in commit message]
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
ByungSoo Kim [Fri, 2 Mar 2018 10:47:06 +0000 (19:47 +0900)]
proc: increase period of favorite lists
[Problem] sluggish test fail
[Cause & Measure] don't change the favorite lists while sluggish test
[Checking Method] sluggish test
Change-Id: I5b3886cd822ec5a68e57f6b08644878fc701aec5
Signed-off-by: ByungSoo Kim <bs1770.kim@samsung.com>
ByungSoo Kim [Mon, 12 Jun 2017 12:41:00 +0000 (21:41 +0900)]
cpu: fix wrong condition while checking predefined process
If some process was fixed in predefined lists,
resourced didn't allow to change cpu cgroup inspite of excluded dbus signal.
However, previous condition was wrong so normal process always returned
without changing cpu cgroup.
It was not impact in tizen 3.0 because most process has already declared the category.
But it should be fixed in order to support previous platform.
Change-Id: Ie9bc76fa304e89be274dd630ab2e8dca25c8df40
Signed-off-by: ByungSoo Kim <bs1770.kim@samsung.com>
Michal Bloch [Tue, 17 Sep 2019 14:22:53 +0000 (16:22 +0200)]
Initialize all modules immediately
Waiting for BootingDone is fragile and may leave some modules uninitialized.
Change-Id: I77296d9d7eec770cc6013861204e7d05ed1ea7ff
Michal Bloch [Tue, 17 Sep 2019 10:39:08 +0000 (12:39 +0200)]
Fix a complaint by SVACE static analysis
Change-Id: I289f2d9684332ee1bf7e9b8eb3f971e177443ef3
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Baumann [Mon, 16 Sep 2019 16:10:51 +0000 (18:10 +0200)]
Remove legacy file logging functionality
Change-Id: If859c95bb7f86faba51ad7280fb44a432dd99cb2
ByungSoo Kim [Tue, 10 Jan 2017 07:41:41 +0000 (16:41 +0900)]
proc: check application status
When deviced requests application status,
resourced can identify whether it is normal or malicious.
So, resourced will return good or bad application status to deviced.
Change-Id: I0f0967fc6dc2e50eaaf83771f183999b95adc6fd
Signed-off-by: ByungSoo Kim <bs1770.kim@samsung.com>
jyotsna.a@samsung.com [Tue, 20 Dec 2016 12:49:35 +0000 (18:19 +0530)]
heart: Notify SluggishFW on app malfunction detection
[Problem] New request from Tizen community
[Cause & Measure] Updating sluggish FW to support app malfunction reporting
Change-Id: If2a183a2504f29b30b03dcb969338e5dc89850a9
Signed-off-by: jyotsna.a@samsung.com <jyotsna.a@samsung.com>
Michal Bloch [Wed, 21 Aug 2019 15:00:16 +0000 (17:00 +0200)]
Port DeviceD poweroff signal handler
Change-Id: Ie57f88a42b0433df0989a91b42ef656b36ad2ef0
WaLyong Cho [Tue, 18 Jul 2017 02:38:59 +0000 (11:38 +0900)]
vip-process: add ac.service to vip process
Change-Id: Ib98e4d97ebda57db78f2b6d1b9f5b8dcf86294d4
Signed-off-by: WaLyong Cho <walyong.cho@samsung.com>
Baumann [Fri, 16 Aug 2019 11:04:26 +0000 (13:04 +0200)]
Fix incorrect errno check
Change-Id: Ifbe35f844c00d1df41ca7f04556a97b9d922e368
Signed-off-by: Baumann <a.baumann@samsung.com>
Michal Bloch [Fri, 26 Jul 2019 15:22:19 +0000 (17:22 +0200)]
Extract D-Bus signal name definitions
Change-Id: I304e540307fb7565a80d4d88190e652d4a808330
Michal Bloch [Fri, 26 Jul 2019 13:04:19 +0000 (15:04 +0200)]
Introduce D-Bus pid query.
Will be used in future patches.
Change-Id: I4893b9bc63a60b2ee3f2a3de3ad5788d4993ac46
Michal Bloch [Tue, 30 Jul 2019 11:31:38 +0000 (13:31 +0200)]
Check GVariant correctness for DBus calls
Change-Id: Id4c7dd8bbf99ac47ae4ab41f4c88cd5eb36b6980
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Tue, 30 Jul 2019 10:34:49 +0000 (12:34 +0200)]
Refactor out some needless repetition
Change-Id: Ibba71119e587affb05da27919c087537a903267c
Michal Bloch [Wed, 28 Aug 2019 11:52:34 +0000 (13:52 +0200)]
Fix double free
Change-Id: I6d9d9b4d4a6f7bd3de13f675a580ae8b1dd519ed
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Wed, 28 Aug 2019 11:53:23 +0000 (13:53 +0200)]
Fix a memory leak
Change-Id: I0a6d5aed3646065d39876d36132eeb49f57f7729
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Karol Lewandowski [Fri, 23 Aug 2019 09:31:48 +0000 (11:31 +0200)]
heart: Increase heart module priority
This should ensure that heart moudule is always properly initialized,
as it does not depend on external signal notification (as needed for
late modules which wait for BootingDone signal).
Change-Id: I2c0884c77e1bb2e04e390d2e863d6ba5472f9357
Karol Lewandowski [Wed, 21 Aug 2019 08:55:45 +0000 (10:55 +0200)]
signal handler: Depend on D-Bus policy as single source for policy information
If something has to be blocked, it has to be blocked by standard D-Bus policy.
This reverts commit
26f17bcd9864ebc3bc0ec068a5dea8cabda01198 (effectively).
Change-Id: Ifad4e830cf490247d4781f59ae3d6d0c8e74719c
Michal Bloch [Tue, 30 Jul 2019 11:18:39 +0000 (13:18 +0200)]
Fix some incorrect method call replies
Change-Id: I8be8d489738749de1e657f97cc342e3baaed9132
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Karol Lewandowski [Wed, 14 Aug 2019 16:28:12 +0000 (16:28 +0000)]
Merge "Update (formerly) deviced booting signal paths" into tizen
Michal Bloch [Tue, 13 Aug 2019 13:24:05 +0000 (15:24 +0200)]
Restrict access to vip-release-agent
* file mode: 755 → 700
* SMACK access label: "_" → "System"
Change-Id: I2c725a75a11d60b0c63c2f7d00579cd96cb3a815
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Mon, 12 Aug 2019 15:17:46 +0000 (17:17 +0200)]
Update (formerly) deviced booting signal paths
BootingDone is under system.Booting and EarlyBootingDone no longer exists.
Change-Id: I4e91e037784a454e51bf7c3b639df08076031a30
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>