[IMPROVE] Modern kernels (> 3.16) support 93/64893/4
authorAlexander Aksenov <a.aksenov@samsung.com>
Wed, 28 Oct 2015 18:43:12 +0000 (21:43 +0300)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Wed, 6 Apr 2016 11:04:37 +0000 (14:04 +0300)
commitb61957913dcdaec2eb94ce91422c927668a62f78
tree459235ff4a0a0e11596347cdc20224718a09b957
parentb87ca96ccdfd63f4fbf756e401c2994c4097828e
[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>
23 files changed:
driver/device_driver.c
driver/driver_to_buffer.c
driver/us_interaction.c
driver/us_interaction.h
energy/energy.c
energy/lcd/lcd_base.c
fbiprobe/fbiprobe.c
kprobe/swap_kprobes.h
kprobe/swap_kprobes_deps.c
kprobe/swap_kprobes_deps.h
ks_features/file_ops.c
ks_features/file_ops.h
parser/usm_msg.c
preload/preload_control.c
preload/preload_handlers.c
preload/preload_module.c
preload/preload_pd.c
sampler/sampler_hrtimer.c
uprobe/swap_uprobes.c
us_manager/pf/proc_filters.c
us_manager/sspt/sspt_proc.c
webprobe/webprobe.c
writer/swap_msg.h