Michal Bloch [Fri, 28 May 2021 20:16:07 +0000 (22:16 +0200)]
Freezer: handle DBus SocketOverflow
Public part, has no freezer module changes
Change-Id: I95928115d1a33d5ccd8940a8375145ade1869c70
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Hyotaek Shim [Tue, 8 Jun 2021 06:27:46 +0000 (15:27 +0900)]
Temporarily disable VIP reboot for dbus.service
Change-Id: Ie1cc4f88defd21045e7ccbe09571e20d4524bd49
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Youngjae Cho [Mon, 10 May 2021 07:29:55 +0000 (16:29 +0900)]
vip-agent: double check VIPs on booting done
Change-Id: Id2596633387d44233b6df9729c0d24550bd35a68
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Youngjae Cho [Tue, 11 May 2021 06:52:11 +0000 (15:52 +0900)]
Fix svace defects
Change-Id: I6bb82e9293308da17217a67c98c49d8682ba9658
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Karol Lewandowski [Thu, 18 Feb 2021 11:54:04 +0000 (12:54 +0100)]
memlimit: Introduce limit for background apps
Use MemLimitBgApp to set memory limit for any kind of application
(gui, widget).
Change-Id: I9879601ef214ef2e68ede1496084e2f99d27b221
Yunmi Ha [Mon, 15 Feb 2021 06:36:05 +0000 (15:36 +0900)]
Add new dbus method "ProcSwapUsage"
- method name: ProcSwapUsage
- in: 'ai'
- out: 'a(i)'
Change-Id: I673db6c06fc85eb648840298a64f1938ac0f4e17
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Michal Bloch [Wed, 20 Jan 2021 16:51:04 +0000 (17:51 +0100)]
MemLimit: update memory usage immediately
Change-Id: Ifb2297d6458a7721d0a39a0d4e9b08d76844a062
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Karol Lewandowski [Fri, 8 Jan 2021 12:46:25 +0000 (13:46 +0100)]
Bump version to 6.5.x
Change-Id: I32233eb801e55ab1a48ce3835dcd3a542109608b
Karol Lewandowski [Thu, 24 Dec 2020 11:14:29 +0000 (12:14 +0100)]
memlimit: Introduce gui app and widget limits
Use MemLimitGUIApp and MemLimitWidget options to set gui app and widget
limits, respectively.
Change-Id: I70e1040438dd930ea06f268fde0514c3381e17ad
Cho youngjae [Thu, 17 Dec 2020 06:11:17 +0000 (22:11 -0800)]
cpu-sched: move all threads using cgroup.procs
Use cgroup.procs instead of tasks to move all threads.
Change-Id: I83a75ab39ea61036c26e5951998181fd8bc0bdc8
Signed-off-by: Cho youngjae <4nuri1205@naver.com>
Cho youngjae [Thu, 17 Dec 2020 06:10:56 +0000 (22:10 -0800)]
Revert "cpu-sched: move all threads, not just the main one"
This reverts commit
c18193530e5a5ad0e89902b6318f114e8432cc4c.
Change-Id: Idfe24be6476d731ccc16e41482498e16dc780399
Signed-off-by: Cho youngjae <4nuri1205@naver.com>
Michal Bloch [Fri, 11 Dec 2020 19:11:06 +0000 (20:11 +0100)]
cpu-sched: move all threads, not just the main one
Change-Id: If8947e4127d49554ca492571c9d08d755d02902a
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Mon, 23 Nov 2020 13:22:33 +0000 (14:22 +0100)]
Type correctness fixes
Change-Id: I60385a605ac92461da1c438ca0037672954abf0a
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Mon, 23 Nov 2020 19:43:12 +0000 (20:43 +0100)]
Silence ABI incompatibility warnings
Since Tizen stuff gets rebuilt from scratch all the time anyway
Change-Id: I1fcc9c479ce15c160141920ef4885716afee63b9
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Mon, 23 Nov 2020 19:42:37 +0000 (20:42 +0100)]
Fix a strncpy size/length mismatch
Doesn't actually do anything (since we
manually add the null) but the compiler complains.
Change-Id: Ie222ec4b9b077268407db3cf8386f82bcb134db3
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Youngjae Cho [Wed, 11 Nov 2020 09:13:41 +0000 (18:13 +0900)]
Bug fix: parsing memcg threshold
Change-Id: I670abe3b9d38f3f7a6ce9c6546e4f2d175c5bb0a
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Youngjae Cho [Tue, 10 Nov 2020 05:09:13 +0000 (14:09 +0900)]
Make memory logging configurable
Logging section in memory.conf file now configures the memory
logging. Now it is able to set the path and prefix of a logfile,
maximum number of logfiles, or even disable logging itself.
Change-Id: Id18da1b8df4ab4ba346080ad17f7c59da60acccb
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
taemin.yeom [Mon, 26 Oct 2020 01:00:09 +0000 (10:00 +0900)]
Fix typo
Change-Id: I47e0174082dbcda4e473a5514496dc26f217e11a
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
Youngjae Cho [Fri, 25 Sep 2020 01:32:17 +0000 (10:32 +0900)]
Fix the condition for escaping lowmem
The condition for escaping lowmem should be applied only when the lowmem
limit operates as MEM_LIMIT_THRESHOLD.
In case of MEM_LIMIT_OOM, kernel has already blocked the process which
used memory over the limit of cgroup. So if resourced got the eventfd
from the kernel about memory limit, resourced should control the
memory.oom_control node, enabling kernel to handle that oom. Otherwise,
this process would be stuck in D state until receiving SIGKILL signal.
Change-Id: I6279714037a4112823513529c414c3d4a1a04030
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Youngjae Cho [Mon, 12 Oct 2020 01:30:04 +0000 (10:30 +0900)]
Add memcg threshold for memory size larger than 2GB
Change-Id: I5e7a46cba90d8eb57fa80a3fc181541dc4762269
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Michal Bloch [Tue, 6 Oct 2020 10:34:32 +0000 (12:34 +0200)]
spec: remove tapi build requirement
Seems to build correctly without.
Change-Id: I832c78c43786f906cb70e45413c688fd45ddb383
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Youngjae Cho [Mon, 7 Sep 2020 08:07:27 +0000 (17:07 +0900)]
Fix svace issue
In addition to fix svace issue,
change yoda conditions in cpu-sched.c to usual style.
Change-Id: Ifde1796c2bdfbb2893505ec3365036068e454d75
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Elmurod Talipov [Fri, 4 Sep 2020 02:26:40 +0000 (11:26 +0900)]
swap: do NOT set ZRAM size if it is already set by kernel
ZRAM disksize can be set with configuration in Kernel or by other
means, in that case setting and verify ZRAM size fails.
Change-Id: Id296cf8106ecbea368959f92e06ad7d7a6a57f4c
Signed-off-by: Elmurod Talipov <e.talipov@samsung.com>
Karol Lewandowski [Thu, 27 Aug 2020 14:22:35 +0000 (16:22 +0200)]
Release 6.0.5
Change-Id: I2af07d1c242916a025ad21320d25c82527b67ea4
Karol Lewandowski [Fri, 28 Aug 2020 10:18:05 +0000 (12:18 +0200)]
cpu-sched: Fix leaks in load_config
Change-Id: I46201ea6244fc8fd42cd388f4bc5f78d7d86fa7b
Karol Lewandowski [Thu, 27 Aug 2020 14:22:09 +0000 (16:22 +0200)]
cpu-sched: Handle suspend event too
resume event was supported previously, suggesting suspend is missing
Change-Id: Idabe1e8559961332079de018854321466f8ea902
Karol Lewandowski [Tue, 25 Aug 2020 15:04:38 +0000 (17:04 +0200)]
cpu-sched: Add support for handling background events
Change-Id: I2f1f2b8af0ecf146c507697e02cfda0c9e3f5282
Karol Lewandowski [Tue, 25 Aug 2020 12:00:11 +0000 (14:00 +0200)]
cpu-sched: Support assigning cpusets to services
Change-Id: Ie745a30723d4556fb57efaa4a70f76d63ee08c3e
Karol Lewandowski [Mon, 24 Aug 2020 23:35:52 +0000 (01:35 +0200)]
cpu-sched: Do not depend on foreground= being set in configuration
Change-Id: I48330dfe807ab4c581ae2d8a17a0019eead18dd8
Sung-hun Kim [Fri, 28 Aug 2020 06:49:04 +0000 (15:49 +0900)]
fix svace buffer-overflow issue
Change-Id: I1f9b81cf51538d42fcde478fb43dbada82160041
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
Dongwoo Lee [Thu, 27 Aug 2020 05:42:07 +0000 (14:42 +0900)]
swap: zramswap: Use zstd compression algorithm
Change-Id: I6bab2db5cc888d3de8fa199a6f62a8a428984a3b
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Dongwoo Lee [Thu, 27 Aug 2020 05:38:08 +0000 (14:38 +0900)]
swap: zramswap: Fallback to write default compressor
If it fails to write compression algorithm to zram, try again with
default compressor to address that compression algorithm described
in conf file is not supported by kernel.
Change-Id: I69f5b52042b20b5aba504d1baea965e07c315ceb
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Dongwoo Lee [Tue, 25 Aug 2020 02:17:22 +0000 (11:17 +0900)]
Enable memory optimization features on default configuration
This enables dedup module and ReclaimAtBoot of swap module as default.
If the kernel does not support deduplcation, it is ignored.
Change-Id: I0902be43e3f8dc1588bbecea33d21a3d66d3a5c9
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Dongwoo Lee [Mon, 24 Aug 2020 06:52:43 +0000 (15:52 +0900)]
swap: Add support for reclaiming more memory at boot
To reclaim more memory on earily reclaim stage, this provides
new configuration for '[SWAP]' section as "ReclaimAtBootThreshold".
If this is set, reclaim at earily stage continuously until the
reclaimed memory is lower than this threshold. Otherwise, default
value is very large (1024MB), so reclaim will be perfomed once as
before.
Change-Id: Icdd9206cf451a64a9c872833af88e91e8d8a6c6e
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Sung-hun Kim [Thu, 23 Jan 2020 07:18:20 +0000 (16:18 +0900)]
DEDUP: a dedup module to control LKSM
To manage LKSM in the kernel, a dedup module is added to resourced codebase.
The resourced daemon checks memory pressure level when an event is delivered
from the kernel. When the memory pressure level is crossed the predefined
threshold (which is configured by memory.conf), the daemon requests to invoke
memory deduplication via sysfs interface.
In order to enable a dedup module in resourced, the kernel should support LKSM
features.
Change-Id: I6bec596d40e68e1d6cc0c047d80ef30700ab846e
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
Karol Lewandowski [Thu, 13 Aug 2020 11:34:28 +0000 (13:34 +0200)]
Release 6.0.4
Change-Id: Ifa47a5cc4a601812db1da103f6b41052702771ad
Karol Lewandowski [Thu, 13 Aug 2020 11:33:09 +0000 (13:33 +0200)]
memory: Fix: Avoid copying garbage when dir is shorter than fpath
Change-Id: If6966bd3623499f88006f6eb1b740d7de3b4b3d9
Karol Lewandowski [Wed, 12 Aug 2020 13:59:04 +0000 (15:59 +0200)]
procfs: Fix: do not copy garbage when filename is shorter than PROC_NAME_MAX
Change-Id: I04d5d68b25fa9795691d109bc52192406758e99f
Slava Barinov [Wed, 29 Jul 2020 10:40:26 +0000 (13:40 +0300)]
Fix ASan build
Address Sanitizer build requires symbols to be visible for interception.
Change-Id: Ifb56beaa6f24273d8f28c05423323828e993c8cf
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
Hyotaek Shim [Tue, 28 Jul 2020 00:48:39 +0000 (09:48 +0900)]
Increase MemLimitService to 128MB
Change-Id: If90f9215189a3ad61a33f637c7496399b1a6af05
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Tue, 21 Jul 2020 12:11:40 +0000 (21:11 +0900)]
Default conf file for cpu core pinning
Change-Id: I43b1e5e73e83297112cd68935f86424184f7a31c
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Maciej Słodczyk [Tue, 30 Jun 2020 14:14:54 +0000 (16:14 +0200)]
cpu-sched: check app list on startup
Change-Id: Id0f468171e0b9b750bfc38e5e469928e270fa60f
Signed-off-by: Maciej Słodczyk <m.slodczyk2@partner.samsung.com>
Maciej Słodczyk [Mon, 29 Jun 2020 13:28:10 +0000 (15:28 +0200)]
cpu-sched: add apps' static cpusets
Change-Id: I1ce586e2923ea39c280c4e7bb53a04335554f5c1
Signed-off-by: Maciej Słodczyk <m.slodczyk2@partner.samsung.com>
Maciej Słodczyk [Tue, 23 Jun 2020 20:24:08 +0000 (22:24 +0200)]
cpu-sched: use apps' foreground events to pin to proper cpuset
Change-Id: Icb19ef5628f1576aa87f9cc86ed3db59b24f18ef
Signed-off-by: Maciej Słodczyk <m.slodczyk2@partner.samsung.com>
Maciej Słodczyk [Tue, 23 Jun 2020 19:24:48 +0000 (21:24 +0200)]
cpu-sched: use cpu on/off events to create cpusets
Change-Id: I158f2a8e26ae3334065717c06b16b9e161e3281e
Signed-off-by: Maciej Słodczyk <m.slodczyk2@partner.samsung.com>
Maciej Słodczyk [Mon, 15 Jun 2020 14:12:38 +0000 (16:12 +0200)]
cpu-sched: add cpu hotplug notification mechanism
Change-Id: I8b01ef5d757501a709c3e067cdcf95223d522266
Signed-off-by: Maciej Słodczyk <m.slodczyk2@partner.samsung.com>
Maciej Słodczyk [Tue, 23 Jun 2020 18:46:11 +0000 (20:46 +0200)]
cpu-sched: foreground core set data structures
Change-Id: I2bd110e85d7ebc8f30f0b7949abccbbb92cd6881
Signed-off-by: Maciej Słodczyk <m.slodczyk2@partner.samsung.com>
Maciej Słodczyk [Tue, 23 Jun 2020 13:57:59 +0000 (15:57 +0200)]
cpu-sched: add new module
Change-Id: I324d4e32be5d64ba993f8637d0500d8f76c3986b
Signed-off-by: Maciej Słodczyk <m.slodczyk2@partner.samsung.com>
Maciej Slodczyk [Mon, 13 Jul 2020 05:32:50 +0000 (05:32 +0000)]
Merge "file-helper: fix possible memleak" into tizen
sanghyeok.oh [Tue, 7 Jul 2020 02:47:07 +0000 (11:47 +0900)]
tests: Fix wrong operator
Change-Id: Ieb322a7824b29818f112b0fccd81e02821a48e24
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Maciej Słodczyk [Mon, 6 Jul 2020 12:45:55 +0000 (14:45 +0200)]
file-helper: fix possible memleak
Assigning NULL to **str passed pointer on fgets() error
may result in being unable to free memory pointed by *str
(if it was previously allocated dynamically).
Change-Id: Ieda457c4d9da02dab277d476ed79537da41e744e
Signed-off-by: Maciej Słodczyk <m.slodczyk2@partner.samsung.com>
Dongwoo Lee [Mon, 20 Apr 2020 07:55:52 +0000 (16:55 +0900)]
Fix misspelled "swappiness"
Memcg attribute "swappiness" is misspelled as "swapness", so this
corrects them.
Change-Id: Ia6cf4774b26af613e344c25dca6591980a183247
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Dongwoo Lee [Mon, 20 Apr 2020 07:48:56 +0000 (16:48 +0900)]
swap: fix wrong indentation
Change-Id: I95e53f4855ff04cf3241d997d2548e28d7cb3d37
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Maciej Słodczyk [Mon, 15 Jun 2020 14:10:33 +0000 (16:10 +0200)]
Release 6.0.3
Change-Id: I5e84c4682e25a285dfa0b579530ad5db82c7cb23
Signed-off-by: Maciej Słodczyk <m.slodczyk2@partner.samsung.com>
Maciej Słodczyk [Tue, 9 Jun 2020 15:34:42 +0000 (17:34 +0200)]
safe-kill: unit tests
Change-Id: I658e9e85aa57c2cdffc5ce0fa9a44bd28d5bbb28
Signed-off-by: Maciej Słodczyk <m.slodczyk2@partner.samsung.com>
Maciej Słodczyk [Tue, 2 Jun 2020 12:58:56 +0000 (14:58 +0200)]
safe-kill: prevent processes from being killed while dumping a core
Change-Id: I24bd152f04b90b3b7b4f64d06561e2833cf3d130
Signed-off-by: Maciej Słodczyk <m.slodczyk2@partner.samsung.com>
Karol Lewandowski [Thu, 4 Jun 2020 13:33:42 +0000 (13:33 +0000)]
Merge changes I4f376da7,I60270eda into tizen
* changes:
Add common module unit tests
Fix improper behaviour of strstrip when string contains only whitespaces
Agnieszka Baumann [Wed, 19 Feb 2020 11:27:47 +0000 (12:27 +0100)]
Add common module unit tests
Change-Id: I4f376da7f1433dd6e4357080abc7927cf7b2c8a3
Agnieszka Baumann [Thu, 5 Mar 2020 19:14:45 +0000 (20:14 +0100)]
Fix improper behaviour of strstrip when string contains only whitespaces
Change-Id: I60270eda72f634cefd059a83c6f93dd0d4446aa9
Maciej Słodczyk [Tue, 2 Jun 2020 08:05:03 +0000 (10:05 +0200)]
avoid truncate string warning when copying
Deliberately copying substring with strncpy() resulted
in 'output may be truncated' warning. Use memcpy()
to achieve the same without the warning.
Change-Id: Id6a74a3f096f83b1fd6a39728f2f3438172c76f2
Signed-off-by: Maciej Słodczyk <m.slodczyk2@partner.samsung.com>
Maciej Słodczyk [Tue, 2 Jun 2020 08:04:18 +0000 (10:04 +0200)]
tests: make sure all struct fields are initialized
Change-Id: I89820b04c4ce8b15935aad33c6c48a7f5425874c
Signed-off-by: Maciej Słodczyk <m.slodczyk2@partner.samsung.com>
Maciej Słodczyk [Tue, 2 Jun 2020 08:03:47 +0000 (10:03 +0200)]
tests: make sure all vars are unreffed when not needed
Change-Id: I9320fa28495280d801cc6be6dc7ca42b13877787
Signed-off-by: Maciej Słodczyk <m.slodczyk2@partner.samsung.com>
Hyotaek Shim [Fri, 8 May 2020 05:19:05 +0000 (14:19 +0900)]
proc-watchdog: correct the change in the processing parts for each dbus signal
It was an old bug even though there is no big impact.
"freeze" signal has both type and pid,
and "suspend" signal has no param.
But it was reversed from the beginning and
an unnecessary error log was continuously being printed in the journal.
Change-Id: I964c99a04c55ec104148e954782a3069e835f0ae
Signed-off-by: ByungSoo Kim <bs1770.kim@samsung.com>
Change-Id: I244b637e62916fa5560ca27614aa8def3a4c3dca
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Maciej Slodczyk [Tue, 5 May 2020 06:14:45 +0000 (06:14 +0000)]
Merge "Fix double free module_list variable" into tizen
Maciej Slodczyk [Tue, 5 May 2020 06:14:37 +0000 (06:14 +0000)]
Merge "Fix g_list_remove and g_slist_remove bug" into tizen
INSUN PYO [Tue, 21 Apr 2020 08:05:15 +0000 (17:05 +0900)]
Fix double free module_list variable
The modules_list is freed as destructor by remove_module() function.
Change-Id: If5b18c77f9e354599ee1c8d87b6d8cc5a3a93740
ByungSoo Kim [Fri, 24 Apr 2020 14:26:14 +0000 (16:26 +0200)]
Block module priority NORMAL → LATE
Change-Id: I0613ea96f7111ab75070cce702f9b859670d9501
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
ByungSoo Kim [Fri, 24 Apr 2020 14:08:33 +0000 (16:08 +0200)]
Initialize late modules after BootingDone
Change-Id: Iadd21d6a6e402fbdb8bbef9e7d981ed3b8bc3c83
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
INSUN PYO [Wed, 22 Apr 2020 09:33:18 +0000 (18:33 +0900)]
Added variable initialization for g_variant_get
Change-Id: Ica9c29a3ca755a83590ed9af1e8abddedf0cf14a
INSUN PYO [Wed, 22 Apr 2020 00:39:41 +0000 (09:39 +0900)]
Fix g_list_remove and g_slist_remove bug
Change-Id: I6c460647b69e35f44b7e30a51de14e1c93c9f919
sanghyeok.oh [Thu, 13 Feb 2020 08:25:34 +0000 (17:25 +0900)]
dbus: modified to reply error type message
Change-Id: I4a2067c007810690e1607738099894b7f3b8341a
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Michal Bloch [Mon, 16 Mar 2020 13:46:12 +0000 (14:46 +0100)]
Include all GPerf files verbatim
GPerf compilation looks fragile and we already did this to one file
so might as well prevent the problem for the other two.
Change-Id: I808b24ed484e68f4d1ee3d74928d20756e501394
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Mon, 16 Mar 2020 11:38:28 +0000 (12:38 +0100)]
Workaround build issue: include gperf file verbatim
Change-Id: Ib851cc25d9a2e53851ab22cc01f10217d8a7ef64
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Tue, 17 Mar 2020 10:40:55 +0000 (11:40 +0100)]
Fix some warnings
Change-Id: Iece5804c05b2ff4dd36e33da4b827813f26eb2ad
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Michal Bloch [Tue, 17 Mar 2020 10:13:22 +0000 (11:13 +0100)]
Temporarily disable segfaulting tests
They randomly started failing, let's not block the build process while I debug them
Change-Id: I42a2ecaeb3b3d5cf73d2f4bbed1a32dc68ba2d77
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
Hyotaek Shim [Mon, 16 Mar 2020 08:05:17 +0000 (17:05 +0900)]
Add .gitignore
Change-Id: Ibf481f8b9062e367746ca3899ea7c639f4d8d5d2
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Mon, 16 Mar 2020 08:03:21 +0000 (17:03 +0900)]
Fix build error
[ 39s] /usr/lib/gcc/armv7l-tizen-linux-gnueabi/9.2.0/include/c++/bits/stl_map.h: In member function 'int LowmemLimitEnv::
cgroup_make_subdir(const char*, const char*, bool*)':
[ 39s] /usr/lib/gcc/armv7l-tizen-linux-gnueabi/9.2.0/include/c++/bits/stl_map.h:499:8: note: parameter passing for argument of
type 'std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, LowmemLimitEnv::CGroupData>
, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, LowmemLimitEnv::CGroupData> >, std::less<std::__cxx11::basic_
string<char> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, LowmemLimitEnv::CGroupData> > >::const_iterator'
{aka 'std::_Rb_tree_const_iterator<std::pair<const std::__cxx11::basic_string<char>, LowmemLimitEnv::CGroupData> >'} changed in GCC 7.1
Change-Id: Ia62b225a8d26983eced992f7dac5d6b625254487
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Agnieszka Baumann [Wed, 11 Mar 2020 14:45:41 +0000 (15:45 +0100)]
Fix: parse_bytes prevent out of range value
Change-Id: I5a8c59176fc936f02c419cb494548eeac37d0638
Agnieszka Baumann [Mon, 9 Mar 2020 14:13:16 +0000 (15:13 +0100)]
Fix improper behaviour of parse_bytes when string contains only one letter
Change-Id: Ie50ff0a666eedf4396f9e78d3d3aff07d9802885
Hyotaek Shim [Wed, 11 Mar 2020 11:34:38 +0000 (11:34 +0000)]
Revert "Temporarily disable built test"
This reverts commit
fc88a028951abd2ab116c119c6d3c7de3895073e.
Change-Id: I6a818f8c18195adbfd28a663d0b7bc709b65ea04
Michal Bloch [Tue, 10 Mar 2020 15:39:47 +0000 (16:39 +0100)]
Fix a build test error
Change-Id: Id4a129f6a88ceec8939b1c4730bbc5b5f6671a6e
Michal Bloch [Wed, 11 Mar 2020 10:58:15 +0000 (11:58 +0100)]
Fix a compilation failure
Change-Id: Idc3c8a892a748a7c0f2ded99501c96397a90f603
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
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