Seung-Woo Kim [Fri, 10 May 2019 09:34:20 +0000 (18:34 +0900)]
Add the swap-modules-rpi3 package build for 32-bit arm
Currently, only arm64 build for rpi3 is supported, but rpi3
kernel also support 32-bit arm. To support the 32-bit kernel,
add the swap-modules-rpi3 package build for 32-bit arm.
Note: new arm built rpm is named with arm arch name because
already existing arm64 built, arm repackaged rpm file name has
aarch64 arch like swap-modules-rpi3-aarch64.
Change-Id: Ica1ab4c28f6bbc71e1fb69bc4c2e3f5b39250a44
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Vyacheslav Cherkashin [Wed, 30 Jan 2019 18:28:45 +0000 (21:28 +0300)]
us_manager: fix incorrect counter usage in sspt_proc
Change-Id: Ia1b26a2d2f6110187af4efad084e1877e2432eb2
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Seung-Woo Kim [Fri, 4 Jan 2019 06:34:57 +0000 (15:34 +0900)]
Add the swap-modules-tw3 package build
For enabling/disabling build of the swap-modules-tw3 package
set BUILD_PACKAGE_TW3 to 1/0.
Note: based on the commit
1735096b40f5 ("Add the swap-modules-tw2 package build")
and kernel version of tw3 is v4.9.y.
Change-Id: I885ff6d81ee4a0947b55200764aeef98156e36d7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Vyacheslav Cherkashin [Wed, 12 Dec 2018 19:24:05 +0000 (22:24 +0300)]
Fix dentry leaks from swap_preload module
Add missed call probe_info_unit() for deinitialize 'probe_info'
Change-Id: I6c9506e64c6ebd2d90b1b1bde6b029d77defba3b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 13 Dec 2018 19:49:50 +0000 (22:49 +0300)]
Remove dead code
Fields the copy and the cleanup in probe_iface structure already do not
used. Therefore, remove them from all source code.
Change-Id: Iaa72ddf5bfb999fc07292cf7505ec07320c4380d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 13 Dec 2018 19:46:15 +0000 (22:46 +0300)]
Fix memory corruption in the fbiprobe module
Change-Id: I78ff0c4f425d243477181128e7e5bf6a1095e055
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 13 Dec 2018 19:42:13 +0000 (22:42 +0300)]
Fix memory corruption in the retprobe module
Change-Id: Iee6a46fc8c7190a200de0bf94d47e1989e6238f3
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 27 Nov 2018 10:59:41 +0000 (13:59 +0300)]
Add support kernel v4.14
Change-Id: Id30162600c1c8cfe59a05d5b9cc9131156ee3b91
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 1 Oct 2018 10:27:35 +0000 (13:27 +0300)]
us_manager: remove old dentry manipulation interface
Change-Id: Ib68a78ecc5f97bdfb9cc6f8ec022af6dc3350179
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 11 Oct 2018 19:27:49 +0000 (22:27 +0300)]
Remove web profiling legacy code
Change-Id: I7c5040a2e67da08a286c7ac566a8257d6bda98e6
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 11 Oct 2018 10:44:04 +0000 (13:44 +0300)]
wsp: remove module
Change-Id: I7b3f86a91b841f774f4ce3436e3551a3e913804b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 10 Oct 2018 16:49:26 +0000 (19:49 +0300)]
preload: fix 'dentry' leak
Change-Id: I9fc3be48fd8814bc46a222198e2c747da4233479
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 10 Oct 2018 13:28:31 +0000 (16:28 +0300)]
loader: fix linker_info data leak
Change-Id: I1e70b91e67199750968e98014dc3bf828b4c50b7
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 9 Oct 2018 15:37:33 +0000 (18:37 +0300)]
got_patcher: fix 'dentry' leaks
Change-Id: I5f9ea49223387cc557b237e61135fc00e55ebcef
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 3 Oct 2018 11:49:19 +0000 (14:49 +0300)]
us_manager: add debugging to swap_dcache
For enabling dcache debug, set "#define SWAP_DCACHE_DEBUG"
Sample debugging output:
SWAP_DCACHE: BUG: incorrect dentry[
f5c4f000 ld-2.24.so] counter=2:
SWAP_DCACHE: DGET swap_loader[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/loader/loader_storage.c:120]
SWAP_DCACHE: DGET swap_preload[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/preload/preload_control.c:253]
SWAP_DCACHE: DGET swap_gtp[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/got_patcher/gt_module.c:668]
SWAP_DCACHE: DGET swap_gtp[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/got_patcher/gt_module.c:678]
SWAP_DCACHE: DPUT swap_preload[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/preload/preload_control.c:90]
SWAP_DCACHE: DGET swap_us_manager[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/us_manager/img/img_file.c:57]
SWAP_DCACHE: DPUT swap_us_manager[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/us_manager/img/img_file.c:83]
SWAP_DCACHE: DGET swap_us_manager[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/us_manager/img/img_file.c:57]
SWAP_DCACHE: DPUT swap_us_manager[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/us_manager/img/img_file.c:83]
SWAP_DCACHE: DPUT swap_loader[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/loader/loader_storage.c:145]
SWAP_DCACHE: BUG: incorrect dentry[
f5c4f700 libpthread-2.24.so] counter=2:
SWAP_DCACHE: DGET swap_preload[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/preload/preload_control.c:253]
SWAP_DCACHE: DGET swap_preload[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/preload/preload_process.c:444]
SWAP_DCACHE: DGET swap_gtp[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/got_patcher/gt_module.c:979]
SWAP_DCACHE: DPUT swap_preload[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/preload/preload_control.c:90]
SWAP_DCACHE: DGET swap_us_manager[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/us_manager/img/img_file.c:57]
SWAP_DCACHE: DPUT swap_us_manager[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/us_manager/img/img_file.c:83]
SWAP_DCACHE: DGET swap_us_manager[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/us_manager/img/img_file.c:57]
SWAP_DCACHE: DPUT swap_us_manager[/home/abuild/rpmbuild/BUILD/swap-modules-3.0/modules/us_manager/img/img_file.c:83]
Change-Id: Ie03a86cd0373f1090a1dadb326b2067557607aeb
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 1 Oct 2018 09:01:43 +0000 (12:01 +0300)]
got_patcher: use new dentry manipulation interface
Change-Id: I7dbc355c8ef6c3e82582118c015ecfcb3f128a9a
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Fri, 28 Sep 2018 15:07:18 +0000 (18:07 +0300)]
preload: use new dentry manipulation interface
Change-Id: I4a4eeba66390421cc6a0d94b2373e2b877730059
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Fri, 28 Sep 2018 14:42:58 +0000 (17:42 +0300)]
loader: use new dentry manipulation interface
Change-Id: Ibc5e1a3264f8e7ed8bff50366ace22e11725bae9
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 26 Sep 2018 17:50:57 +0000 (20:50 +0300)]
parser: fix dentry usage
Change-Id: I4beceae4c89d962345788200c9479d0cf90c293d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 25 Sep 2018 13:29:51 +0000 (16:29 +0300)]
nsp: fix dentry usage
Change-Id: I752d857e7a24b07b92c007768c289fd46c60b989
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 25 Sep 2018 18:30:28 +0000 (21:30 +0300)]
us_manager: add automatic dentry capture
Don't wait pf_unregister_probe() call after pf_register_probe()
one to release dentry because dentry is captured and released
automatically.
Change-Id: Ia2cc749487a7dc815d1a26205771011a0cac4108
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 25 Sep 2018 17:47:59 +0000 (20:47 +0300)]
us_manager: implement dentry manipulation interface
Change-Id: Ia71d79a88c8e351e15fdd8761f89d2793baaaf20
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 3 Oct 2018 07:58:00 +0000 (10:58 +0300)]
us_manager: fix module initialization in error case
Change-Id: I651e545573cbffcec05c729bd795d94e833570aa
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 18 Sep 2018 11:06:10 +0000 (14:06 +0300)]
nsp: fix memory leak
Add cleaning nsp_data structures before unloading module.
Change-Id: I06fecf489db5958567c1620aacb4a788d1d74f04
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 1 Aug 2018 12:16:24 +0000 (15:16 +0300)]
Fix x86 build
Change path to kernel headers
Change-Id: I4e55f8807c51cc9d2021827223a285ddbe71d67e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 24 Jul 2018 15:34:09 +0000 (18:34 +0300)]
Fix unified build
arch:i586
repository:standard
Change-Id: I029c5d5fa11e15b3ca73d3fff97e0c1179c7376e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Fri, 6 Jul 2018 12:33:49 +0000 (15:33 +0300)]
Remove swap-modules package build
swap-modules package containing modules for all supported targets is
obsolete and it is no longer used. Now each supported device has its
own package.
Change-Id: Ifbada7ada8ec551b48eea6628c6b11caa87ab31f
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 4 Jul 2018 18:25:23 +0000 (21:25 +0300)]
Add the swap-modules-emulator32 package build
For enabling/disabling build of the swap-modules-emulator32 package
set BUILD_PACKAGE_EMULATOR32 to 1/0.
Change-Id: Ie9ba14a981fce8396198eea875c7d865a61eb65c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 4 Jul 2018 18:00:50 +0000 (21:00 +0300)]
Add the swap-modules-odroidxu3 package build
For enabling/disabling build of the swap-modules-odroidxu3 package
set BUILD_PACKAGE_ODROIDXU3 to 1/0.
Change-Id: I7efa5543b7c7eb44203f60b442623eef68550dac
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 4 Jul 2018 17:18:22 +0000 (20:18 +0300)]
Add the swap-modules-tm1 package build
For enabling/disabling build of the swap-modules-tm1 package
set BUILD_PACKAGE_TM1 to 1/0.
Change-Id: I405c172ec76c6c6c5199184b6c68cbd2b168eeba
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 4 Jul 2018 16:49:23 +0000 (19:49 +0300)]
Add the swap-modules-tw2 package build
For enabling/disabling build of the swap-modules-tw2 package
set BUILD_PACKAGE_TW2 to 1/0.
Change-Id: Ic5901b57c8ace46f15552d733283c937858ee81d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 4 Jul 2018 16:41:15 +0000 (19:41 +0300)]
Add the swap-modules-tm2 package build
For enabling/disabling build of the swap-modules-tm2 package
set BUILD_PACKAGE_TM2 to 1/0.
Change-Id: Idd276b96eb5a0d92ba0d8cbebe3b462482cfeb3c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 4 Jul 2018 09:10:49 +0000 (12:10 +0300)]
Add the swap-modules-rpi3 package build
For enabling/disabling build of the swap-modules-rpi3 package
set BUILD_PACKAGE_RPI3 to 1/0.
Change-Id: Ib69beb17dc664abb00a13f7cfd1c6b64eaa87c1d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 27 Feb 2017 16:43:24 +0000 (19:43 +0300)]
ARM64: add __switch_to() support for kprobe
Change-Id: I62efddef49d7863e8e5746ef0a5928cc910a4e98
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 14 May 2018 05:53:53 +0000 (08:53 +0300)]
Remove structurally dead code
Change-Id: I984551f439cce060b94033eb186a39ef8cb02dad
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 16 Apr 2018 13:10:51 +0000 (16:10 +0300)]
tests: add support for kernel >= v4.5
Change-Id: I420156efbe222c7009613253d3beb4f2dc705a76
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 16 Apr 2018 12:50:48 +0000 (15:50 +0300)]
tests: fix kretprobe test
Change-Id: I06b58814997883f390ccc6a4dfa33816f4efa9aa
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 16 Apr 2018 12:37:45 +0000 (15:37 +0300)]
tests: add kprobe tests for kernel and for module
Change-Id: I591f52b9caf5a35374744e7961d5161049c80666
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 23 Apr 2018 14:46:47 +0000 (17:46 +0300)]
packaging: fix repacking aarch64 to armv7l
Change-Id: I436b68fbff1dc586c54a5d26ac847c201dc792b5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 17 Apr 2018 09:33:12 +0000 (12:33 +0300)]
master: add support for kernel version v4.7..v4.14
This is a workaround for fix deadlock in a kernel debugfs v4.7..v4.14
Change-Id: Ib1ad88b205f82e9503e1ca21e915a7fa2536a95b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 16 Apr 2018 11:24:57 +0000 (14:24 +0300)]
ktd: Fix synchronization when module is unloaded
Problem:
When unloading the module there was a race condition between
__put_task_strcut() handler call and cleaning td struct
for all tasks (after swap_ktd_uninit_top() and
before swap_ktd_uninit_bottom() calls).
Solution:
Add get_task_flag flag to td struct. Set it if task was catched
(increment task usage in swap_ktd_uninit_top() and task_prepare()).
Add checking this flag and it handler to do_put_task() handler.
Change-Id: I627acad69819630c02f0eaac1632b11825d856f5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Fri, 13 Apr 2018 15:04:09 +0000 (18:04 +0300)]
ARM64: Fix for changing write protected kernel memory
Use the private kernel function arch64_insn_patch_text()
for changing kernel memory.
Change-Id: Id9eec388f135ec15f82b46d2c4227a48ae8b6e80
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 26 Apr 2018 14:51:40 +0000 (17:51 +0300)]
driver: fix buffer overflow
Change-Id: Id6ee316bf03b37af091b951fe9f630ac95138c1d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Alexander Aksenov [Mon, 12 Mar 2018 13:57:09 +0000 (16:57 +0300)]
parser: fix struct size for get_task_comm()
Now the field where task comm is collected is declared of size
TASK_COMM_LEN
Change-Id: I6bda4ecbdb85e16e752211b59038238d3b1a55d1
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Seung-Woo Kim [Mon, 12 Mar 2018 01:31:49 +0000 (10:31 +0900)]
driver: fix invalid printing format for size_t
The size_t type is differ from 32/64 bit and printing format %u
is invalid. Fix the invalid printing format for size_t with %zu.
Change-Id: Ib7d105b0f54c416f2448344d6ef2a2afc2d421fd
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Alexander Aksenov [Tue, 20 Feb 2018 16:35:02 +0000 (19:35 +0300)]
Fix SVACE issues
- add limit for splice data reading;
- remove path memleak from wsp.
Change-Id: I9dc26627f16f912843350ddbc6d1a6028d3643e4
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Wed, 7 Feb 2018 15:09:19 +0000 (18:09 +0300)]
us_manager: fix sspt_proc private data creation/destruction
- Add calling creation callback on each first and subsequent install;
- Redesign sspt_proc private data storing;
- Add sspt_proc destruction calling;
- Make mmap handler to be called only when proc priv data is inited.
Change-Id: I676566d013a7ebbc7851862d136c6803c4371b66
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Wed, 7 Feb 2018 14:57:02 +0000 (17:57 +0300)]
us_manager: add skipping page faults while handling one
Change-Id: I67a2188401471232bc800ecc905fba3e925773a3
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Mon, 29 Jan 2018 15:12:31 +0000 (18:12 +0300)]
Loader: add process data destructor
Change-Id: Ie78123f3beedfd96b6618db91ea56dd4b8aa812b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Mon, 29 Jan 2018 15:11:37 +0000 (18:11 +0300)]
US manager: add sspt_proc private data destruction
Now it is called on exec and probes uninstalling
Change-Id: I1055585ffbc509a99c8c1533c053d1b4917d7074
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vyacheslav Cherkashin [Mon, 19 Feb 2018 12:45:59 +0000 (15:45 +0300)]
Fix kernel v4.9 build
Change-Id: Ia6c8f9609e834f0f53b2a219fa583e1140ca6190
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 13 Feb 2018 18:12:03 +0000 (21:12 +0300)]
master: add modules initialization errors to kernel log
Change-Id: I796e23c1e5ef933a8f0e043d5c5d8e1e3548217e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 13 Feb 2018 17:23:18 +0000 (20:23 +0300)]
master: add checking unsupported kernel versions 4.7..4.14
Global rcu-lock(debugfs_srcu) was added to debugfs
in commit to linux-kernel:
9fd4dcece43.
It causes deadlock in debugfs_remove_recursive().
Change-Id: Ie26901cfe52029a8f930e61333d46f93dff74fda
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Fri, 2 Feb 2018 13:53:36 +0000 (16:53 +0300)]
Fix kernel v4.14 build
Change-Id: I362f7028b90d1dd53c3717bce7e4e4e391916907
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 13 Feb 2018 18:29:08 +0000 (21:29 +0300)]
kprobe: remove legacy code (file swap_kdebug.h)
Change-Id: Ife6f7894ac38c0db6c05a3480bfbb3dbf693cfe5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 12 Feb 2018 11:21:06 +0000 (14:21 +0300)]
parser: remove unused code
Change-Id: I6b8125dee4746aeff3fcdee20c1e696c178330af
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 7 Feb 2018 16:30:05 +0000 (19:30 +0300)]
sampler: add cpu/hotplug support
Change-Id: Ia23652587f808e24a3ecb7ac5c2d572768828359
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 7 Feb 2018 15:25:38 +0000 (18:25 +0300)]
sampler: move cpu notifier logic to the separate file
Preparatory commit for add cpu/hotplug support
Change-Id: I2c62892c30a2793472569cec5453a350bf6c4b54
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Alexander Aksenov [Tue, 16 Jan 2018 15:36:30 +0000 (18:36 +0300)]
GOT patcher: Run process_features() at library loading
Related with:
Ie0fdabe552d2046226d54231b065c7e825fd48d9 swap-manager
I57b08fb5ab67957492085d7f7b7cb1a8fbb81034 swap-probe
Change-Id: I28160b1e8c2e127755fb2cd3ce4719a5c02376e2
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Thu, 11 Jan 2018 09:24:13 +0000 (12:24 +0300)]
Kernel integration: add section numbers
Change-Id: I90e5d80d7603ea6b4c6a0507411a382fffd368d3
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Wed, 10 Jan 2018 11:58:13 +0000 (14:58 +0300)]
Kernel integration: fix script args order
Change-Id: Ib00a4829020792fd371bd2f79ad5bbc1cd753b85
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Wed, 13 Dec 2017 12:57:36 +0000 (15:57 +0300)]
Kernel integration: add Porting Guide
Change-Id: If664459bbdd6227b8fcf51af8964493e11f848e3
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Mon, 11 Dec 2017 14:48:55 +0000 (17:48 +0300)]
Kernel integration: make kernel preparation automatically
Change-Id: Ice36cbc45cfb4303af86782d9db0aa78d68dbeca
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Mon, 11 Dec 2017 12:46:03 +0000 (15:46 +0300)]
Kernel integration: fix paths in sync script
Change-Id: Iade0c1b575e1ea6f1033399e2fa89746983bc23b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Fri, 8 Dec 2017 09:44:22 +0000 (12:44 +0300)]
Merge branch 'tizen_4.0' into tizen
Change-Id: I5068db0372d4ebdd960e57c92e5696355d1c2c7f
Vyacheslav Cherkashin [Wed, 25 Oct 2017 14:20:49 +0000 (17:20 +0300)]
energy: use kprobe for __switch_to detecting
Change-Id: I069d8d2427029c6f7452d6d9f198904ebf94ae1e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 25 Oct 2017 14:10:55 +0000 (17:10 +0300)]
energy: '__swicth_to' handling refactoring
Change-Id: Id68c9c2fe86197aa6b30517a9cb9a66041896975
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 25 Oct 2017 13:12:56 +0000 (16:12 +0300)]
ks_feature: use kprobe for __switch_to detecting
Change-Id: I9d907645c241b29679659ef3fc0145ac956989b6
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 30 Jan 2017 17:01:03 +0000 (20:01 +0300)]
Implement functions to get next/prev tasks from __switch_to()
functions:
swap_switch_to_prev()
swap_switch_to_next()
Change-Id: I09ba03d506a2ae361ddfac62fe3323ad300a7c5d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 21 Feb 2017 12:54:16 +0000 (15:54 +0300)]
ARM: miscellaneous control instructions implement
Change-Id: I8c5ee011a1a8a54f80ce856fb656ec22803a5ee3
Vyacheslav Cherkashin [Tue, 21 Feb 2017 08:47:27 +0000 (11:47 +0300)]
ARM: Refactor thumb decoding
Change-Id: Id30ebfcd60afa668966eb7516307abba251f299a
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 24 Oct 2017 18:24:29 +0000 (21:24 +0300)]
energy: add LCD support for sprdfb_panel driver
support configs:
- CONFIG_FB_SCX35
- CONFIG_FB_SCX30G
- CONFIG_FB_SCX15
- CONFIG_FB_SCX35L
Change-Id: Ieba9dec593379104190859aa72e2df92fa4e4db4
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 24 Oct 2017 15:22:15 +0000 (18:22 +0300)]
energy: fix LCD support for maru driver
Add actual maru driver support
Change-Id: I2b9aba9e2662d3b5a56ded8a1d68bb77a6159056
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Fri, 20 Oct 2017 13:19:36 +0000 (16:19 +0300)]
us_manager: replace GFP_ATOMIC by GFP_KERNEL
Now in a lot of places doesn't requires GFP_ATOMIC flag,
because these code executes in non-atomic context.
Change-Id: Ie6d85f14ac04375c30aa120804f97af5f985aa12
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 19 Oct 2017 18:19:01 +0000 (21:19 +0300)]
ksyms: use the common initialization mechanism
Change-Id: I1981cd3bd78420bf6a2d40e96f01c946611c41a8
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 19 Oct 2017 18:10:33 +0000 (21:10 +0300)]
ks_manager: use the common initialization mechanism
Change-Id: I781b5bd69c38f2d4deda7c5d9707b358341f522c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 19 Oct 2017 18:01:22 +0000 (21:01 +0300)]
retprobe: use the common initialization mechanism
Change-Id: I603e901bf9f5fc7a7e416793f57edb0985075680
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 19 Oct 2017 17:50:32 +0000 (20:50 +0300)]
fbiprobe: use the common initialization mechanism
Change-Id: Iaee19e8db0711d282e064bf13c191abf11de6340
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 19 Oct 2017 17:43:34 +0000 (20:43 +0300)]
buffer: use the common initialization mechanism
Change-Id: I9322914ffa310cdd0ef354af4e4a586cd028c1e6
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 19 Oct 2017 17:39:01 +0000 (20:39 +0300)]
sampler: use the common initialization mechanism
Change-Id: I80d620161ad52056395336525f785543366f4356
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 19 Oct 2017 18:02:28 +0000 (21:02 +0300)]
master: add SWAP_LIGHT_INIT_MODULE_CORE() interface
Change-Id: I7f42a65e69dcbd0f8f2bdccccedcef4cf717b742
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 3 Oct 2017 11:53:35 +0000 (14:53 +0300)]
uihv: remove module
Change-Id: Id6540ff3783bded563d333dfe6a0863423c01791
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 17 Oct 2017 12:45:28 +0000 (15:45 +0300)]
KI: add kernel hooks handlers
Change-Id: I9b16ad8bf2aee557e3c26b36b353b1a25f907f6b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 16 Oct 2017 18:01:02 +0000 (21:01 +0300)]
KI: add kernel patch for CONFIG_SWAP_HOOK_SIGNAL support
Change-Id: I7615c636ea468d3792af342062024504de4bf813
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 16 Oct 2017 18:00:05 +0000 (21:00 +0300)]
KI: add kernel patch for CONFIG_SWAP_HOOK_FILE_OPS support
Change-Id: I02be4335154ac888efb718fc21d83067f89da935
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 16 Oct 2017 17:59:19 +0000 (20:59 +0300)]
KI: add kernel patch for CONFIG_SWAP_HOOK_ENERGY support
Change-Id: I76bbe5195da7720fc75cc984716058d39c9b47e9
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 16 Oct 2017 17:58:18 +0000 (20:58 +0300)]
KI: add kernel patch for CONFIG_SWAP_HOOK_SWITCH_TO support
Change-Id: Id47af2199f79dcba96f2a65a3d26d5e7490f9e90
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 16 Oct 2017 17:57:28 +0000 (20:57 +0300)]
KI: add kernel patch for CONFIG_SWAP_HOOK_USAUX support
Change-Id: I5e1d849fee82b89eb16cbb9bb5b1771032763f6b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 16 Oct 2017 17:56:27 +0000 (20:56 +0300)]
KI: add kernel patch for CONFIG_SWAP_HOOK_TASKDATA support
Change-Id: I6e1c7a65a5231838eb5dfac462cf2192dcb4e39c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 4 Oct 2017 18:14:35 +0000 (21:14 +0300)]
KI: add kernel patch for CONFIG_SWAP_HOOK_SYSCALL support
Change-Id: I922f4abf1cebde741ab28b94115daa18cc2e259d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 4 Oct 2017 14:59:03 +0000 (17:59 +0300)]
KI: introduce script and README for integration in to kernel
Change-Id: I14b84ab040a371c3bbb630ec8a8179246186fe48
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 3 Oct 2017 15:48:25 +0000 (18:48 +0300)]
Move modules to modules dir
Change-Id: I2b4cbfe8c39fef4049083d523eb2d4acbea03041
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Dmitry Kovalenko [Tue, 17 Oct 2017 09:17:19 +0000 (12:17 +0300)]
Merge branch 'tizen_4.0' into tizen
Change-Id: I6c9013239acb80b199f99759b85476a921bbf419
Dmitry Kovalenko [Tue, 17 Oct 2017 04:58:51 +0000 (07:58 +0300)]
Merge branch 'tizen_4.0' into tizen
Change-Id: Id8e9eff58ac4f4161063c4eb5e345d03c935effa
Vyacheslav Cherkashin [Mon, 16 Oct 2017 14:09:04 +0000 (17:09 +0300)]
ARM: use swap_access_process_vm() for user memory access
Change-Id: I93b31067a58d538de30d9e37d4e3406b2b74ac17
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Dmitry Kovalenko [Mon, 16 Oct 2017 13:58:56 +0000 (16:58 +0300)]
Fix build for ARM targets
Change-Id: I8412bf8be7ebd648feb0683ea0aa2c8c99bdf491
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Dmitry Kovalenko [Fri, 13 Oct 2017 09:36:58 +0000 (12:36 +0300)]
Fix issues found by static analysis tool
decode_thumb.c: Out-of-bounds access
probes_arm.c: Out-of-bounds access
swap_kprobes.c: Resource leak
Change-Id: I54c92029f5adb83b8d4f8f29cc4e683d6545ab6c
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Dmitry Kovalenko [Tue, 10 Oct 2017 07:58:27 +0000 (10:58 +0300)]
Not build unsupported targets
Change-Id: I9b8f895c30751671c879bab0fad8263779e1f27d
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Dmitry Kovalenko [Tue, 10 Oct 2017 07:10:50 +0000 (10:10 +0300)]
Disable build for non-emulator i586 target
Change-Id: I3b9a3000e3755c304a4119b0ad877bbcd5b8b78f
Vyacheslav Cherkashin [Tue, 3 Oct 2017 07:33:56 +0000 (10:33 +0300)]
wsi: remove feature
Change-Id: I9d28a5af96efbdeb40f26cdd22258337e45c39ab
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>