Dmitry Kovalenko [Thu, 18 Aug 2016 12:35:10 +0000 (15:35 +0300)]
Energy: Support new function names in new kernel
sock_aio_read/write -> sock_read/write_iter
Change-Id: I868d148ed380417a5a93e35b8928093b236ab192
Dmitry Kovalenko [Thu, 22 Dec 2016 12:21:42 +0000 (15:21 +0300)]
loader: fix error: 'LOADER_CALLER' defined but not used
Change-Id: If342b77f0dccf76c0cc8f4c4e6ac4767ad0bdf50
Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>
Dmitry Kovalenko [Wed, 14 Dec 2016 04:29:04 +0000 (07:29 +0300)]
Fix SVACE issue: Null pointer dereference
Change-Id: I879fa8a0f64db4e98b7464b3b8278055c7ed2efa
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Vyacheslav Cherkashin [Tue, 6 Dec 2016 15:16:18 +0000 (18:16 +0300)]
Add setup buffer via debugfs
Change-Id: I01c749ff0e920530e5bc1579acfd901177aa9f82
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 6 Dec 2016 15:04:58 +0000 (18:04 +0300)]
Add get/set callbacks for debugfs
Change-Id: I9446ebe3aefa9e21655c96a7d163348e605d8c74
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Alexander Aksenov [Wed, 7 Dec 2016 14:08:33 +0000 (17:08 +0300)]
Fix pte_offset_map() result checking
Svace issue
Change-Id: Ia9ae564c86555ef5434eccdbb3dd51c60a8676f0
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Fri, 25 Nov 2016 16:02:42 +0000 (19:02 +0300)]
Uprobe: fix NULL dereference on x86
When uprobe_handler_part2() is called, it dereferences
pre_handler callback without any check, but
uprobe_handler_part2() is called itself from
uprobe_handler_atomic() when pre_handler is NULL.
Change-Id: Ia4cdbdc20c50aa3d891c790eea3545da06506f47
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vyacheslav Cherkashin [Thu, 1 Dec 2016 10:49:22 +0000 (13:49 +0300)]
Fix BUG() with spm_processor_id()
Use raw_smp_processor_id() instead. If CONFIG_DEBUG_PREEMPT is enabled,
spm_processor_id() is defined as debug_smp_processor_id() which should
be called only in atomic context.
Change-Id: I039f2c0b50bb319a5473a2823db68984bedfe2fe
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Anatolii Nikulin [Thu, 1 Dec 2016 12:12:10 +0000 (15:12 +0300)]
Fix race condition while we unregister uprobes
When we stop profiling, da_manager and profiling application may
unregister the same probe simultaneously.
Change-Id: I81d4e02fa97f27215ebf321e6c58896ec761ce2a
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Wed, 30 Nov 2016 14:56:21 +0000 (17:56 +0300)]
Fix releasing pf_group
release pf_group reference when we disable web profiling
Change-Id: Ibe37acd7c0e479c72749a4d875bf94f1798d2a34
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Wed, 30 Nov 2016 14:20:10 +0000 (17:20 +0300)]
Rework Web startup profiling
1) change function names
2) rework resources API,
3) remove unused code
4) fix code style
Change-Id: I3aadd3185c49d4247668000494b6f45341a2ef98
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Alexander Aksenov [Wed, 30 Nov 2016 10:04:17 +0000 (13:04 +0300)]
Fix aggrigated uprobes handling
Issue:
When aggrigated uprobe is executed, it never correctly returns
from trampoline_uprobe_handler's retprobe_instance list iteration
if it was called inside anther profiled function.
Solution:
It happened, because break condition was never satisfied: first
time because orig_ret_addr == tramp_addr, all other times because
p, which is pointer to the first uprobe, is not equal to up, which
is other probes related uprobe.
So, this fix removes p and up comparsion as a mistake.
Change-Id: I9979b1fc113c7c0f204a8d20e69dd4bce30127cd
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vyacheslav Cherkashin [Fri, 25 Nov 2016 12:02:15 +0000 (15:02 +0300)]
webprobe: fix web messages sending
Fix parameters getting and strings packing.
Change-Id: I26d2f2df86cf17da7246a8e02faa362120745eec
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 24 Nov 2016 09:04:07 +0000 (12:04 +0300)]
writer: reduce atomic context usage in swap_msg
Usage pool buffer in swap_msg. If pool buffer is empty,
per_cpu buffer will be used which lead atomic context.
Change-Id: Ica59721ed12ae74bda1bc486b6dfe1928e0c1f1f
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 24 Nov 2016 08:53:24 +0000 (11:53 +0300)]
writer: replace printk() by pr_*()
Change-Id: I3ba7a526ef156eb9c5ced9392eea0705655cf816
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 23 Nov 2016 16:13:05 +0000 (19:13 +0300)]
Remove race condition from __swap_unregister_uprobe()
Add rcu_read_lock() for RCU-lists traversal.
Change-Id: Ifd35cb42222bef7f00b64da3db23a65dcf2e3c93
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Alexander Aksenov [Wed, 9 Nov 2016 11:34:17 +0000 (14:34 +0300)]
GOT patcher: add profiling by apps comm
Change-Id: If435b367bbea2e2fe9bc4486e4b4f3c6ce7dc183
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Wed, 9 Nov 2016 09:36:18 +0000 (12:36 +0300)]
GOT patcher: make common code general
Change-Id: I3d9f62333b0201d22f7f79608104923b0a1dcd8b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Tue, 8 Nov 2016 11:06:43 +0000 (14:06 +0300)]
Fix svace issues
Change-Id: I209f787729b3da74d1427f322ea9532c268e32af
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Gihun Chang [Fri, 4 Nov 2016 01:32:01 +0000 (10:32 +0900)]
Add an exclude condition for arm-wayland projects on public OBS.
Change-Id: Ied8f8da527a962854add3ece0ab7630d40ad41ed
Dmitry Kovalenko [Tue, 4 Oct 2016 15:03:51 +0000 (18:03 +0300)]
Use unified kernel-devel name & paths
Change-Id: I5fcb4c868b62cfa3153e555a9cb281cc042146f2
Alexander Aksenov [Thu, 26 Jun 2014 10:31:24 +0000 (14:31 +0400)]
uprobe: uretprobes cleanup
Add uretprobes cleanup when swap_register_uprobe() fails
Change-Id: I89d2528d01835b5f6c2d3dd2d2f9bc0148c25d8b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vyacheslav Cherkashin [Thu, 27 Oct 2016 11:05:04 +0000 (14:05 +0300)]
us_manager: fix "comm" filter
Check task->comm instead task->group_leader->comm, because
page_fault might will be call from child task which comm field
is defferent from main task.
Change-Id: Idaea3116c90c683cfcdd1344ad069dc0d49c64b7
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Alexander Aksenov [Wed, 30 Mar 2016 11:45:04 +0000 (14:45 +0300)]
GOT patcher: implement initial version
Change-Id: I8f8cb66f19a56afa6509cc619c1ed2aae5df756f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Anatolii Nikulin [Tue, 25 Oct 2016 12:59:07 +0000 (15:59 +0300)]
Rework webprobe module
Implement webprobe probes like probes in NSP module
Change-Id: I467f1cb84be43ca21da257b4b601dbe382190ad5
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Tue, 27 Sep 2016 08:07:19 +0000 (11:07 +0300)]
Rework WEBPROBE
So webkit replaced by libchromium, we change code in order to
extract data from libchromium objects
Change-Id: I2873728e048c742229d970cfc41ac70627d0f0b9
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Thu, 6 Oct 2016 08:13:17 +0000 (11:13 +0300)]
enable multiprobe on same address
Now we can set several probes on same address
Change-Id: Iff80e76474521a13a6bff7f2596b6fda02899986
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Vitaliy Cherepanov [Fri, 29 Apr 2016 10:01:45 +0000 (13:01 +0300)]
[FIX] wsp unregister
Change-Id: I05af37021f2fa911aa9b8c85dc1482947ca5ad9c
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Fri, 4 Mar 2016 13:03:44 +0000 (16:03 +0300)]
Implement protocol version 4.2
Depends on manager: Implement protocol version 4.2
add sockets info to MSG_PROCESS_STATUS_INFO
Change-Id: I92fe298dd54188793f3da9d9dff7da206eae776e
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vyacheslav Cherkashin [Fri, 1 Jul 2016 14:44:38 +0000 (17:44 +0300)]
fix modules loading for kernel 3.18
Change-Id: I9849292e39df00f2e44357606b420c5656021917
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Anatolii Nikulin [Fri, 15 Jul 2016 12:48:59 +0000 (15:48 +0300)]
rework UIHV init/deinit
Depends on manager: fix UIHV start/stop
Add enable/disable command for UIHV
Change-Id: I8a1474ce3aa86f8c158a7ae7595e8946aa996cb7
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Dmitry Kovalenko [Mon, 18 Jul 2016 09:58:02 +0000 (12:58 +0300)]
Add emulator-circle build target
Change-Id: I8dadc3fb4e4d66e45a6fbacd97c232dd2804a622
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Anatolii Nikulin [Wed, 29 Jun 2016 13:52:18 +0000 (16:52 +0300)]
[FIX] change nsp functions
Change-Id: I0daf666880368ed290285d3fdc7e90e78bc5639f
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Thu, 30 Jun 2016 06:15:02 +0000 (09:15 +0300)]
[CLEAN] noisy printk
Change-Id: If4c4873bb70d3758e64d75e3ca1ec26e62546a6a
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Mon, 27 Jun 2016 14:52:45 +0000 (17:52 +0300)]
[CLEAN] Remove unused code
Change-Id: Ic474cdc2838b427c418bb0c41eb8304aa1509160
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Thu, 23 Jun 2016 15:45:36 +0000 (18:45 +0300)]
[FIX] build for r720
Change-Id: I0b4c694dd4aaa3c5988f4d838ceb0454687490ed
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Thu, 23 Jun 2016 11:57:50 +0000 (14:57 +0300)]
[FIX] arm probes on do_page_fault
It's a workaround. We don't receive do_page_fault() on all pages,
so we check all mapped pages on every do_page_fault()
Change-Id: Ib5e4c704afb90fa5a179592aaac4345d002fffb9
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Vyacheslav Cherkashin [Mon, 20 Jun 2016 18:11:01 +0000 (21:11 +0300)]
[FIX] rcu_nmi_enter/exit() inconsistentence (for x86)
Add rcu_nmi_enter() call to exceptions_handler(), because we change
US context to KS context as a result rcu_nmi_exit() will be called
on exiting exception and rcu_nmi_enter() and rcu_nmi_exit() calls
must be consistent.
Change-Id: Idbf5a7d6be1284ba841c4b43b565aaf18197ab28
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 20 Jun 2016 15:23:04 +0000 (18:23 +0300)]
[FIX] interrupt checking from exception (for x86)
In LINUX_VERSION_CODE >= 4.0.0 exception handlers wrapped with ist_enter()
and ist_exit() where preempt_count is incremented and decremented, so we
cannot determine interruptable state.
Solution: mask HARDIRQ_OFFSET bit.
Change-Id: If961547e3221ec27157ebc0c993f2a7a3c0e8605
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 20 Jun 2016 12:47:50 +0000 (15:47 +0300)]
[FIX] incorrect searching module_free() symbol
Change-Id: I5e7fa85966ca9a2ac078ef3a3cbc219e6c451d1f
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Anatolii Nikulin [Fri, 17 Jun 2016 07:57:30 +0000 (10:57 +0300)]
[FIX] modules loading for kernel 4.4
Change-Id: I97bd9063f19ccead6579440f8f263190c34fa578
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Dmitry Kovalenko [Wed, 22 Jun 2016 09:26:23 +0000 (12:26 +0300)]
[FIX] build for TV emulator
Change-Id: I2f52d6b6a6d7f933bbed650d02f8e832a9e99c72
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Vyacheslav Cherkashin [Fri, 10 Jun 2016 14:09:58 +0000 (17:09 +0300)]
[IMPROVE] add kprobe tests
Change-Id: Iabb57b18b81452a58cc07b64169e897e24ff0636
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Fri, 10 Jun 2016 13:26:54 +0000 (16:26 +0300)]
[FIX] kretprobe disarming on x86 platform
Now swap_kernel_sp() is to be used in kprobe handlers instead
of kernel_stack_pointer() to get the stack pointer.
Change-Id: Ida8c02ab82f3754d7a0d9b32bbfbc0dfe8e347e1
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 9 Jun 2016 12:50:26 +0000 (15:50 +0300)]
[REFACTOR] divide kprobe tests module
Change-Id: I34dabc4072e385a1a504fe2dbb3a55ceb29a1c37
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 6 Jun 2016 19:01:35 +0000 (22:01 +0300)]
[FIX] __switch_to for ARM
Change-Id: I6e0a18d2f73d80260e02eeb5d5817ff0f953c827
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Fri, 3 Jun 2016 15:57:22 +0000 (18:57 +0300)]
[FIX] __switch_to for x86
In order not to miss calls __switch_to() we use special flags (which
are stored in the stack). These flags we set when enter __switch_to and
reset when return from __switch_to. If flags have been set we use
PER_CPU (exclusive for __switch_to) to store temporary values.
To identify __switch_to kretprobe we set SWITCH_TO_RP flag to next
executing process. And reset this flag in trampoline_probe_handler().
Change-Id: Id86e40853755bf9acdde642df8a7db337440e1db
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 2 Jun 2016 08:48:43 +0000 (11:48 +0300)]
[FIX] call kprobe from IRQ context (x86)
If kprobe is called from IRQ context, we call handler in current
context and use PER_CPU to store temporary values.
Otherwise, we jump to exec_trampoline to call handler in process
context and use stack (swap_ktd) to store temporary values.
Change-Id: If377dbb02a47e9ae03f44d426f74b7ce8a40bb6f
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
SeokYeon Hwang [Wed, 8 Jun 2016 02:25:28 +0000 (11:25 +0900)]
[FIX] use version independant path for emulator-kernel
Change-Id: I750453fae3063716665f90472f45a7b9d733517a
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Anatolii Nikulin [Wed, 1 Jun 2016 05:43:12 +0000 (08:43 +0300)]
[IMPROVE] kernel with version > 4.0.0 support
Change-Id: I185a64e561b85dca01f327ac0db52f5d4e8752b5
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Vyacheslav Cherkashin [Wed, 25 May 2016 19:35:59 +0000 (22:35 +0300)]
[FIX] NULL pointer dereference
Change-Id: I679432eb9ecfbef7c2368ca9420f09c54c52ebcd
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Anatolii Nikulin [Wed, 25 May 2016 11:35:25 +0000 (14:35 +0300)]
[FIX] Svace issues
|-------------------------------------------------------|
| WGID | Type | File |
|-------------------------------------------------------|
| 27672 | STATIC_OVERFLOW.SCANF | wsp/wsp_debugfs.c |
|-------------------------------------------------------|
Change-Id: I97ce0a3755bdbc20c67c7a9a1a813c25e7547e65
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Dmitry Kovalenko [Wed, 18 May 2016 11:22:01 +0000 (14:22 +0300)]
Merge branch 'tizen_2.4_dev' into tizen
Change-Id: I2ca10946582bb778756f4e6a2fd265966839e805
Vyacheslav Cherkashin [Mon, 16 May 2016 11:46:20 +0000 (14:46 +0300)]
[FIX] Skip fixup do_page_fault for x86
Change-Id: I199e8a4c685804bbae602f1680cca310233a2255
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 16 May 2016 08:28:35 +0000 (11:28 +0300)]
[IMPROVE] add kprobe tests
Change-Id: I8f89454a43ca725bfbad01163c224321c5937c3b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Fri, 13 May 2016 07:59:32 +0000 (10:59 +0300)]
[CLEAN] remove kjumper
Change-Id: I9ec339052737f62c38d08587b98cf355e8a7764c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 10 May 2016 12:41:00 +0000 (15:41 +0300)]
[IMPROVE] remove atomic context from kprobe handler
Changes:
1. Kprobe redesign.
2. Current kprobe state saved in stack (thread context) or
in per_cpu_kpc_data (interrupt context).
for ARM:
In kprobe handler irq is turned on, if kprobe was fired in
non-irq context.
for x86:
Breakpoint is processed in several stages:
1. Save regs and change ip on exec_trampoline().
2. Call handlers in original context.
3. Restore regs and changed instruction processing.
Change-Id: I0b8d007eafddaabffd3a030a7a9aaa7ebf1642f3
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Alexander Aksenov [Tue, 17 May 2016 15:26:46 +0000 (18:26 +0300)]
[FIX] Loader: dentry get/put balance
Add putting dentry for already existed binaries in
loader_storage lists.
Change-Id: I6ca2c70dd8128108ef94ac440fd21fd4aff984e0
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vyacheslav Cherkashin [Thu, 12 May 2016 11:27:16 +0000 (14:27 +0300)]
[IMPROVE] take out swap_unregister_kprobe() from atomic context
Change-Id: I3f00340f2a45dc08f3909451c417d744b22be673
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 12 May 2016 12:41:38 +0000 (15:41 +0300)]
[FIX] double call swap_unregister_kretprobe()
Change-Id: Ie785baec540d7226fa6969e89c0cb16511a7dd61
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Fri, 29 Apr 2016 12:52:13 +0000 (15:52 +0300)]
[IMPROVE] call kprobe handlers at current context (for x86)
Move kprobe handler from atomic context to current
Change-Id: I8c3cc6bb964c6df1a2a83786f5bfca9c10b594a0
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Dmitry Kovalenko [Tue, 17 May 2016 14:58:39 +0000 (17:58 +0300)]
Merge branch 'tizen_2.4_dev' into tizen
Change-Id: Ia6a12395c6f82ee2131de1edf9d3e8990238f0f5
Vyacheslav Cherkashin [Tue, 26 Apr 2016 16:40:21 +0000 (19:40 +0300)]
[IMPROVE] remove preemption disabling from kprobe
Change-Id: Ie0ac12b32b4caa76fc2162b7dc467851260c9f0a
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 26 Apr 2016 12:44:44 +0000 (15:44 +0300)]
[IMPROVE] remove PER_CPU variables from kprobe
Now all intermediate data that is needed for kprobe instrumentation
implementation saved in stack (using swap_ktd). And thus, it is
possible to abandon PER_CPU variables usage.
Change-Id: Ibe9f600a4e01b729b9ac21030f818eec554348d1
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Dmitry Kovalenko [Mon, 16 May 2016 05:20:58 +0000 (08:20 +0300)]
[IMPROVE] Add target-circle support
Change-Id: I7d3f91c74a6359871df7334f4ef481de2b24df60
Dmitry Kovalenko [Mon, 16 May 2016 05:17:57 +0000 (08:17 +0300)]
[FIX] Removed arm-wayland target from spec
Change-Id: I1435b47bb3ad7fdfd0d5d3fc0b0f3f474d424bda
Dmitry Kovalenko [Mon, 16 May 2016 05:15:33 +0000 (08:15 +0300)]
[STYLE] Indent size changed in spec 4 -> 2
Change-Id: Ib64e1226a1fbb4072a90fbeb9a044b33409f3cf2
Alexander Aksenov [Fri, 13 May 2016 09:44:58 +0000 (12:44 +0300)]
[FIX] Build for device
Add module.h in loader_pd.c and uihv_debugfs.c
Add returned value initialization
Change-Id: I0fa0250b0017b912a8b6a35f8b922ad216b9c693
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Dmitry Kovalenko [Wed, 11 May 2016 05:23:41 +0000 (08:23 +0300)]
[FIX] Build for Tizen TV. Spec changed
Change-Id: Id75db8ed2a70940d5ff7dcb2f803f64112314123
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Alexander Aksenov [Mon, 27 Jul 2015 12:52:51 +0000 (15:52 +0300)]
[FEATURE] UI Viewer implementation
Change-Id: Icb4d7432c41518a6f3c35d54aa30d9b9d450a44d
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Mon, 8 Feb 2016 17:50:37 +0000 (20:50 +0300)]
[REFACTOR] Loader separated from preload
Change-Id: I04159e8f3066ff8c5d0584661b91b6fd4219e7df
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Dmitry Kovalenko [Fri, 29 Apr 2016 05:31:14 +0000 (08:31 +0300)]
[FIX] Added missing include
Change-Id: I6c4ed9ec458d862f73a44e52d1db94fbe0adaa2b
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Dmitry Kovalenko [Mon, 25 Apr 2016 10:20:12 +0000 (13:20 +0300)]
[STYLE] Change "usuported repo" error generation
Change-Id: I8c48f85429ae9259e46ed2fe52da6dfa5a0eaaf5
Dmitry Kovalenko [Mon, 25 Apr 2016 07:42:52 +0000 (10:42 +0300)]
[FIX] Build for wearable emulator and TM1
Change-Id: I8ec4e222b3fc340787696d908d7246588aa948a2
Vyacheslav Cherkashin [Tue, 19 Apr 2016 14:51:36 +0000 (17:51 +0300)]
[FIX] warning in ktd_exit()
Set proc pointer to NULL before free
Change-Id: I2fd81a84b55c9b8bdbfc7809e7ab5abfeb24aaf5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Dmitry Kovalenko [Fri, 22 Apr 2016 12:08:15 +0000 (15:08 +0300)]
[FIX] Build for arm-wayland and emulator32
Change-Id: Ie0d3f24e04412078002240572c9c3ffcae42c86d
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Vyacheslav Cherkashin [Tue, 19 Apr 2016 14:45:52 +0000 (17:45 +0300)]
[FIX] sspt_proc struct double put
Change-Id: Ie5cdf0e69292dddc4ec0a24004b65932b0151a71
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 24 Mar 2016 10:41:58 +0000 (13:41 +0300)]
[FIX] Preload: implement automatic ARM <-> THUMB mode switch
Previously it was implemented only for THUMB -> ARM case.
Now proper mode is determined automaticaly.
Change-Id: I573d4c5cd41ac85bc41e04795b1ffa7f30dbe9c5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Fri, 15 Apr 2016 12:15:43 +0000 (15:15 +0300)]
[FIX] sspt_ip usage after removing
Change-Id: I5d897ad063a31ac02e15ae4ccb9b8aca54e1fae7
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 11 Apr 2016 17:22:54 +0000 (20:22 +0300)]
[IMPROVE] synchronize usage of img_file.ips.head
Change-Id: I121d367f77ef9b7bc2c5bd6f476aa286c45810e0
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 11 Apr 2016 14:48:54 +0000 (17:48 +0300)]
[IMPROVE] synchronize usage of sspt_file.htable.heads
Change-Id: I4fc0715b3a0ac9a06e59ffec112b0b412a640eca
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 11 Apr 2016 14:06:02 +0000 (17:06 +0300)]
[IMPROVE] synchronize usage of sspt_proc.files.head
Change-Id: Id308856c9d300394e3946094a43b6d3c8102eb0d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 11 Apr 2016 12:19:17 +0000 (15:19 +0300)]
[FIX] race condition when use sspt_proc
Change-Id: I74f18ff7631c521dceebf137c19d5269c2e2339c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 11 Apr 2016 09:34:09 +0000 (12:34 +0300)]
[CLEAN] Remove unused code
Change-Id: Ie2ce4582acfa5cef8fc9321f9f4a8ae8ece38f4b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Fri, 8 Apr 2016 13:32:46 +0000 (16:32 +0300)]
[IMPROVE] Remove atomic context usage in uretprobe handlers
Change-Id: Idfe5937b84e2890aede70598e98380456a6be200
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Fri, 8 Apr 2016 12:14:46 +0000 (15:14 +0300)]
[IMPROVE] Remove atomic context usage in sspt_page_*()
Change-Id: I42ff9bbc1126e27d455e6902a1ef1d381887977e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 6 Apr 2016 12:46:57 +0000 (15:46 +0300)]
[IMPROVE] storing sspt_proc in group_leader's stack
Change-Id: I3ea8e4809efe461c24949ab543ba11e317847504
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 31 Mar 2016 19:22:07 +0000 (22:22 +0300)]
[IMPROVE] remove atomic context for img_proc.filse
Change-Id: I52f848ebbd0c62c5335793ab35254ca5250ce05d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 31 Mar 2016 18:48:36 +0000 (21:48 +0300)]
[IMPROVE] remove atomic context for sspt_proc.filter
Change-Id: I8884fabacf97760c1f4c955117896dbdcea77ebb
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 31 Mar 2016 18:27:04 +0000 (21:27 +0300)]
[IMPROVE] remove atomic context for pfg_list
Change-Id: I8200310bfe892fc712a0d5679a35464b9de5fee5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 31 Mar 2016 13:34:29 +0000 (16:34 +0300)]
[REFACTOR] naming in img_*
Change-Id: I591760ac9b81337943cb8e5fa5b264f612242adb
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 31 Mar 2016 13:14:25 +0000 (16:14 +0300)]
[REFACTOR] naming in sspt_*
Change-Id: I92206c9ee15895d9dc641d3548a6defc75bdf074
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Alexander Aksenov [Wed, 28 Oct 2015 18:43:12 +0000 (21:43 +0300)]
[IMPROVE] Modern kernels (> 3.16) support
Issue:
Great amount of changes in kernel interface, differences
between arch-dependent symbols and definitions.
Solutions:
- Add necessary includes and definitions for
getnstimeofday() (changed interface and declaration location);
- Replace f_dentry with f_path.dentry (f_dentry definition was
removed);
- Replace instruction_pointer() definition with regs->pc for ARM64
(it is casted to unsinged long, so, is treated as simple number);
- Replace hlist_add_after() by version-dependent definition
(now it is hlist_add_behind() in kernel);
- Replace dereference of task->real_start_time with definition
(on recent kernels its type was changed);
- Redefined __get_cpu_var() for modern kernels
(it was removed from kernel);
- Make kernel version-dependent .map/.unmap methods for
pipe_buf_operations;
- Add necessary include for using splice.h;
- Replace strict_strtoul() with kstrtoul() (strict_strtoul()
was removed);
Change-Id: Id4d5ca4f809b6e13f18614bc0266d6f54d4c47fd
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vyacheslav Cherkashin [Wed, 30 Mar 2016 11:12:03 +0000 (14:12 +0300)]
[FIX] nsp: sleeping function called from atomic context
Change-Id: I47cef6151729ed39456999424e47e7037153a67d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 24 Mar 2016 10:41:58 +0000 (13:41 +0300)]
[FIX] Preload: implement automatic ARM <-> THUMB mode switch
Previously it was implemented only for THUMB -> ARM case.
Now proper mode is determined automaticaly.
Change-Id: I573d4c5cd41ac85bc41e04795b1ffa7f30dbe9c5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 11 Feb 2016 17:28:55 +0000 (20:28 +0300)]
[FIX] set correct CPU mode
Change-Id: I202c34f31152126eedd8f53303444bbd98816c45
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 11 Feb 2016 17:28:55 +0000 (20:28 +0300)]
[FIX] set correct CPU mode
Change-Id: I202c34f31152126eedd8f53303444bbd98816c45
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 10 Feb 2016 12:21:15 +0000 (15:21 +0300)]
Merge branch 'tizen_2.4_dev' into tizen
Conflicts:
preload/preload_storage.c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Change-Id: I28203dee54e9222aa10bab2d4256fcd784d55169
Vyacheslav Cherkashin [Tue, 9 Feb 2016 11:39:11 +0000 (14:39 +0300)]
[FIX] inserting preload module
Change libsmack.so path.
Change-Id: Ide85c64d0b3fbfa410be842d625f1f2beb5d34e6
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 3 Feb 2016 09:05:11 +0000 (12:05 +0300)]
[FIX] synchronizing of unregister_uprobe()
Add atomic usage counter to uprobe struct and check it before remove uprobe.
Change-Id: Idc7804d38028413d68d4fbac41813ca3899e5443
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>