[STYLE] Code style
authorAlexander Aksenov <a.aksenov@samsung.com>
Mon, 15 Jul 2013 14:23:00 +0000 (18:23 +0400)
committerAlexander Aksenov <a.aksenov@samsung.com>
Mon, 15 Jul 2013 14:23:00 +0000 (18:23 +0400)
54 files changed:
buffer/swap_buffer_errors.h
driver_new/device_driver_to_driver_to_buffer.h
driver_new/driver_defs.h
driver_new/driver_to_msg.h
driver_new/swap_driver_errors.h
kprobe/arch/asm-arm/trampoline_arm.h
kprobe/arch/asm-x86/dbi_kprobes_deps.c
ks_features/features_data.c
ks_features/ks_features.c
ks_features/ks_features.h
ks_features/syscall_list.h
parser/features.c
parser/features.h
parser/msg_buf.c
parser/msg_buf.h
parser/msg_cmd.c
parser/msg_cmd.h
parser/msg_parser.c
parser/msg_parser.h
parser/parser_defs.h
parser/swap_msg_parser.c
parser/us_inst.c
parser/us_inst.h
sampler/swap_sampler_errors.h
sampler/swap_sampler_module.h
uprobe/arch/asm-arm/swap_uprobes.c
uprobe/arch/asm-arm/swap_uprobes.h
uprobe/arch/asm-arm/trampoline_thumb.h
uprobe/arch/asm-x86/swap_uprobes.c
uprobe/arch/asm-x86/swap_uprobes.h
uprobe/swap_uprobes.c
uprobe/swap_uprobes.h
us_manager/helper.c
us_manager/helper.h
us_manager/img/img_file.c
us_manager/img/img_file.h
us_manager/img/img_ip.c
us_manager/img/img_ip.h
us_manager/img/img_proc.c
us_manager/img/img_proc.h
us_manager/pf/pf_group.c
us_manager/pf/pf_group.h
us_manager/pf/proc_filters.c
us_manager/pf/proc_filters.h
us_manager/sspt/us_proc_types.h
us_manager/us_def_handler.c
us_manager/us_def_handler.h
us_manager/us_manager.c
us_manager/us_manager.h
us_manager/us_slot_manager.c
us_manager/us_slot_manager.h
writer/swap_writer_errors.h
writer/swap_writer_module.c
writer/swap_writer_module.h

index a78aae8..516c00c 100644 (file)
  *
  * Copyright (C) Samsung Electronics, 2013
  *
- * 2013         Alexander Aksenov <a.aksenov@samsung.com>: SWAP Buffer implement
+ * 2013         Alexander Aksenov <a.aksenov@samsung.com>: SWAP Buffer implement
  *
  */
 
 /* SWAP Buffer error codes enumeration */
 
+#ifndef __SWAP_BUFFER_ERRORS_H__
+#define __SWAP_BUFFER_ERRORS_H__
+
 enum _swap_buffer_errors {
-    E_SB_SUCCESS = 0,               /* Success */
-    E_SB_UNRELEASED_BUFFERS = 1,    /* There are some unreleased buffers. Mainly
-                                       returned by swap_buffer_uninit */
-    E_SB_NO_WRITABLE_BUFFERS = 2,   /* No buffers for writing */
-    E_SB_WRONG_DATA_SIZE = 3,       /* Wrong data size: size == 0 or
-                                       size > subbuffer size */
-    E_SB_IS_STOPPED = 4,            /* Trying to write data after SWAP buffer
-                                       has been stopped. */
-    E_SB_OVERLAP = 5,               /* Memory areas of data to be written and
-                                       subbuffer itself are overlap */
-    E_SB_NO_READABLE_BUFFERS = 6,   /* No buffers for reading */
-    E_SB_NO_CALLBACK = 7,           /* Callback function ptr == NULL */
-    E_SB_NO_MEM_QUEUE_BUSY = 8,     /* Memory for queue_busy wasn't allocated */
-    E_SB_NO_MEM_BUFFER_STRUCT = 9,  /* Memory for one of struct swap_buffer
-                                       wasn't allocated */
-    E_SB_NO_MEM_DATA_BUFFER = 10,   /* Memort for data buffer itself wasn't
-                                       allocated */
-    E_SB_NO_SUBBUFFER_IN_BUSY = 11, /* No such subbuffer in busy_list */
-    E_SB_NOT_ALLOC = 12             /* Subbuffers aren't allocated */
+       E_SB_SUCCESS = 0,                  /* Success */
+       E_SB_UNRELEASED_BUFFERS = 1,    /* There are some unreleased buffers. Mainly
+                                          returned by swap_buffer_uninit */
+       E_SB_NO_WRITABLE_BUFFERS = 2,   /* No buffers for writing */
+       E_SB_WRONG_DATA_SIZE = 3,          /* Wrong data size: size == 0 or
+                                          size > subbuffer size */
+       E_SB_IS_STOPPED = 4,            /* Trying to write data after SWAP buffer
+                                          has been stopped. */
+       E_SB_OVERLAP = 5,                  /* Memory areas of data to be written and
+                                          subbuffer itself are overlap */
+       E_SB_NO_READABLE_BUFFERS = 6,   /* No buffers for reading */
+       E_SB_NO_CALLBACK = 7,      /* Callback function ptr == NULL */
+       E_SB_NO_MEM_QUEUE_BUSY = 8,      /* Memory for queue_busy wasn't allocated */
+       E_SB_NO_MEM_BUFFER_STRUCT = 9,  /* Memory for one of struct swap_buffer
+                                          wasn't allocated */
+       E_SB_NO_MEM_DATA_BUFFER = 10,   /* Memort for data buffer itself wasn't
+                                          allocated */
+       E_SB_NO_SUBBUFFER_IN_BUSY = 11, /* No such subbuffer in busy_list */
+       E_SB_NOT_ALLOC = 12              /* Subbuffers aren't allocated */
 };
+
+#endif /* __SWAP_BUFFER_ERRORS_H__ */
index f6252d6..bce2b62 100644 (file)
@@ -1,3 +1,32 @@
+/*
+ *  SWAP driver
+ *  modules/driver_new/device_driver_to_driver_to_buffer.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Alexander Aksenov <a.aksenov@samsung.com>: SWAP device driver implement
+ *
+ */
+
 /* SWAP device interface for driver_to_buffer */
 
+#ifndef __DEVICE_DRIVER_TO_DRIVER_TO_BUFFER_H__
+#define __DEVICE_DRIVER_TO_DRIVER_TO_BUFFER_H__
+
 void swap_device_wake_up_process(void);
+
+#endif /* __DEVICE_DRIVER_TO_DRIVER_TO_BUFFER_H__ */
index 7c0b4c5..de974bc 100644 (file)
@@ -1,3 +1,27 @@
+/*
+ *  SWAP device driver
+ *  modules/driver_new/driver_defs.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Alexander Aksenov <a.aksenov@samsung.com>: SWAP device driver implement
+ *
+ */
+
 #ifndef __SWAP_DRIVER_DEVICE_DEFS_H__
 #define __SWAP_DRIVER_DEVICE_DEFS_H__
 
index fd9ce56..8df0013 100644 (file)
@@ -1,3 +1,27 @@
+/*
+ *  SWAP device driver
+ *  modules/driver_new/driver_to_msg.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP driver to parser implement
+ *
+ */
+
 #ifndef __SWAP_DRIVER_DRIVER_TO_MSG__
 #define __SWAP_DRIVER_DRIVER_TO_MSG__
 
index 69c6935..fcae6f9 100644 (file)
@@ -1,22 +1,51 @@
+/*
+ *  SWAP Buffer Module
+ *  modules/buffer/swap_driver_errors.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Alexander Aksenov <a.aksenov@samsung.com>: SWAP Buffer implement
+ *
+ */
+
+#ifndef __SWAP_DRIVER_ERRORS_H__
+#define __SWAP_DRIVER_ERRORS_H__
+
 /* SWAP Driver error codes enumeration */
 
 enum _swap_driver_errors {
-    E_SD_SUCCESS = 0,               /* Success */
-    E_SD_ALLOC_CHRDEV_FAIL = 1,     /* alloc_chrdev_region failed */
-    E_SD_CDEV_ALLOC_FAIL = 2,       /* cdev_alloc failed */
-    E_SD_CDEV_ADD_FAIL = 3,         /* cdev_add failed */
-    E_SD_CLASS_CREATE_FAIL = 4,     /* class_create failed */
-    E_SD_DEVICE_CREATE_FAIL = 5,    /* device_create failed */
-    E_SD_NO_SPLICE_FUNCS = 6,       /* splice_* funcs not found */
-    E_SD_NO_DATA_TO_READ = 7,       /* swap_buffer_get tells us that there is no
-                                       readable subbuffers */
-    E_SD_NO_BUSY_SUBBUFFER = 8,     /* No busy subbuffer */
-    E_SD_WRONG_SUBBUFFER_PTR = 9,    /* Wrong subbuffer pointer passed to
-                                       swap_buffer module */
-    E_SD_BUFFER_ERROR = 10,         /* Unhandled swap_buffer error */
-    E_SD_WRITE_ERROR = 11,          /* Write to subbuffer error */
-    E_SD_WRONG_ARGS = 12,           /* Arguments, passed to the func, doesn't 
-                                       pass sanity check */
-    E_SD_NO_MEMORY = 13,            /* No memory to allocate */
-    E_SD_UNINIT_ERROR = 14          /* swap_buffer uninitialization error */
+       E_SD_SUCCESS = 0,                  /* Success */
+       E_SD_ALLOC_CHRDEV_FAIL = 1,      /* alloc_chrdev_region failed */
+       E_SD_CDEV_ALLOC_FAIL = 2,          /* cdev_alloc failed */
+       E_SD_CDEV_ADD_FAIL = 3,  /* cdev_add failed */
+       E_SD_CLASS_CREATE_FAIL = 4,      /* class_create failed */
+       E_SD_DEVICE_CREATE_FAIL = 5,    /* device_create failed */
+       E_SD_NO_SPLICE_FUNCS = 6,          /* splice_* funcs not found */
+       E_SD_NO_DATA_TO_READ = 7,          /* swap_buffer_get tells us that there is no
+                                          readable subbuffers */
+       E_SD_NO_BUSY_SUBBUFFER = 8,      /* No busy subbuffer */
+       E_SD_WRONG_SUBBUFFER_PTR = 9,   /* Wrong subbuffer pointer passed to
+                                          swap_buffer module */
+       E_SD_BUFFER_ERROR = 10,  /* Unhandled swap_buffer error */
+       E_SD_WRITE_ERROR = 11,    /* Write to subbuffer error */
+       E_SD_WRONG_ARGS = 12,      /* Arguments, passed to the func, doesn't 
+                                          pass sanity check */
+       E_SD_NO_MEMORY = 13,            /* No memory to allocate */
+       E_SD_UNINIT_ERROR = 14    /* swap_buffer uninitialization error */
 };
+
+#endif /* __SWAP_DRIVER_ERRORS_H__ */
index 3b35f2f..e535958 100644 (file)
@@ -1,3 +1,31 @@
+/*
+ *  Dynamic Binary Instrumentation Module based on KProbes
+ *  modules/kprobe/arch/asm-arm/trampoline_arm.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2006-2010
+ *
+ * 2006-2007    Ekaterina Gorelkina <e.gorelkina@samsung.com>: initial implementation for ARM/MIPS
+ * 2008-2009    Alexey Gerenkov <a.gerenkov@samsung.com> User-Space
+ *              Probes initial implementation; Support x86/ARM/MIPS for both user and kernel spaces.
+ * 2010         Ekaterina Gorelkina <e.gorelkina@samsung.com>: redesign module for separating core and arch parts
+ *
+ * 2010-2011    Alexander Shirshikov <a.shirshikov@samsung.com>: initial implementation for Thumb
+ */
+
 #ifndef __ASM_ARM_TRAMPOLINE_ARM_H
 #define __ASM_ARM_TRAMPOLINE_ARM_H
 
index b448d66..77b3910 100644 (file)
@@ -1,3 +1,50 @@
+/*
+ *  Kernel Probes (KProbes)
+ *  arch/x86/kernel/kprobes.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) IBM Corporation, 2002, 2004
+ */
+
+/*
+ *  Dynamic Binary Instrumentation Module based on KProbes
+ *  modules/kprobe/arch/asm-x86/dbi_kprobes.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2006-2010
+ *
+ * 2008-2009    Alexey Gerenkov <a.gerenkov@samsung.com> User-Space
+ *              Probes initial implementation; Support x86/ARM/MIPS for both user and kernel spaces.
+ * 2010         Ekaterina Gorelkina <e.gorelkina@samsung.com>: redesign module for separating core and arch parts
+ * 2012         Stanislav Andreev <s.andreev@samsung.com>: added time debug profiling support; BUG() message fix
+ */
+
 #include "../../dbi_kprobes_deps.h"
 
 DECLARE_MOD_DEP_WRAPPER (module_alloc, void *, unsigned long size)
index 7f8f4c7..e74547b 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP kernel features
+ *  modules/ks_features/features_data.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP ks_features implement
+ *
+ */
+
+
 #include "syscall_list.h"
 
 struct feature {
index dd8da03..42998ee 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP kernel features
+ *  modules/ks_features/ks_features.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP ks_features implement
+ *
+ */
+
+
 #include <linux/module.h>
 #include <asm/errno.h>
 #include <ksyms.h>
index 6247810..629e0f0 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP kernel features
+ *  modules/ks_features/ks_features.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP ks_features implement
+ *
+ */
+
+
 #ifndef _KS_FEATURES_H
 #define _KS_FEATURES_H
 
index 1a352a9..e24c3a4 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP kernel features
+ *  modules/ks_features/syscall_list.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP ks_features implement
+ *
+ */
+
+
 #ifndef _SYSCALL_LIST_H
 #define _SYSCALL_LIST_H
 
index c5de74c..ffbde0f 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP Parser
+ *  modules/parser/features.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP Parser implement
+ *
+ */
+
+
 #include <linux/types.h>
 #include <linux/module.h>
 #include <ks_features/ks_features.h>
index 6f25d2f..b3a9dd6 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP Parser
+ *  modules/parser/features.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP Parser implement
+ *
+ */
+
+
 #ifndef _FEATURES_H
 #define _FEATURES_H
 
index f769b21..868d9b1 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP Parser
+ *  modules/parser/msg_buf.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin, Vitaliy Cherepanov: SWAP Parser implement
+ *
+ */
+
+
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
 #include "msg_buf.h"
index df43f04..80a1a9b 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP Parser
+ *  modules/parser/msg_buf.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP Parser implement
+ *
+ */
+
+
 #ifndef _MSG_BUF_H
 #define _MSG_BUF_H
 
index ab97922..61c7bf1 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP Parser
+ *  modules/parser/msg_cmd.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP Parser implement
+ *
+ */
+
+
 #include <linux/errno.h>
 #include <writer/swap_writer_module.h>
 #include "msg_parser.h"
index 3cd43c8..9f0342b 100644 (file)
@@ -1,3 +1,27 @@
+/*
+ *  SWAP Parser
+ *  modules/parser/msg_cmd.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP Parser implement
+ *
+ */
+
 #ifndef _MSG_CMD_H
 #define _MSG_CMD_H
 
index b0d1b57..438351b 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP Parser
+ *  modules/parser/msg_parser.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin, Vitaliy Cherepanov: SWAP Parser implement
+ *
+ */
+
+
 #include <linux/slab.h>
 #include "msg_parser.h"
 #include "msg_buf.h"
index 542e070..36e5bf8 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP Parser
+ *  modules/parser/msg_parser.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin, Vitaliy Cherepanov: SWAP Parser implement
+ *
+ */
+
+
 #ifndef _MSG_PARSER_H
 #define _MSG_PARSER_H
 
index c11bf0b..063bb03 100644 (file)
@@ -1,3 +1,29 @@
+/*
+ *  SWAP Parser
+ *  modules/parser/parser_defs.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Alexander Aksenov <a.aksenov@samsung.com>, Vitaliy Cherepanov:
+ *          SWAP Parser implement
+ *
+ */
+
+
 #ifndef __SWAP_DRIVER_DEVICE_DEFS_H__
 #define __SWAP_DRIVER_DEVICE_DEFS_H__
 
index 0f223a6..00d9862 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP Parser
+ *  modules/parser/swap_msg_parser.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin, Vitaliy Cherepanov: SWAP Parser implement
+ *
+ */
+
+
 #include <linux/module.h>
 #include <linux/vmalloc.h>
 #include <asm/uaccess.h>
index 6f39b1a..c8da330 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP Parser
+ *  modules/parser/us_inst.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP Parser implement
+ *
+ */
+
+
 #include <linux/module.h>
 #include <linux/version.h>
 #include <linux/errno.h>
index 0f8e7e6..76abcde 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP Parser
+ *  modules/parser/us_inst.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP Parser implement
+ *
+ */
+
+
 #ifndef _US_INST_H
 #define _US_INST_H
 
index f387af5..a68905e 100644 (file)
@@ -1,4 +1,30 @@
+/*
+ *  SWAP Sampler
+ *  modules/sampler/swap_sampler_errors.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Alexander Aksenov <a.aksenov@samsung.com>: Implement SWAP sampler
+ *          errors file
+ *
+ */
+
+
 enum _swap_sampler_errors {
-    E_SS_SUCCESS = 0,           /* Success */
-    E_SS_WRONG_QUANTUM = 1      /* Wrong timer quantum set */
+       E_SS_SUCCESS = 0,           /* Success */
+       E_SS_WRONG_QUANTUM = 1      /* Wrong timer quantum set */
 };
index 3768ba4..bc1accf 100644 (file)
@@ -1,3 +1,29 @@
+/*
+ *  SWAP Sampler
+ *  modules/sampler/swap_sampler_module.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Alexander Aksenov <a.aksenov@samsung.com>: Implement SWAP Sampler
+ *              interface
+ *
+ */
+
+
 /* SWAP Sampler interface */
 
 #ifndef __SWAP_SAMPLER_MODULE_H__
index e927e25..c79438a 100644 (file)
@@ -1,3 +1,29 @@
+/*
+ *  Dynamic Binary Instrumentation Module based on KProbes
+ *  modules/uprobe/arch/asm-arm/swap_uprobes.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2006-2010
+ *
+ * 2008-2009    Alexey Gerenkov <a.gerenkov@samsung.com> User-Space
+ *              Probes initial implementation; Support x86/ARM/MIPS for both user and kernel spaces.
+ * 2010         Ekaterina Gorelkina <e.gorelkina@samsung.com>: redesign module for separating core and arch parts
+ *
+ */
+
 #include <dbi_kprobes.h>
 #include <asm/dbi_kprobes.h>
 #include <asm/trampoline_arm.h>
index 1083791..ecdec91 100644 (file)
@@ -1,3 +1,30 @@
+/*
+ *  Dynamic Binary Instrumentation Module based on KProbes
+ *  modules/uprobe/arch/asm-arm/swap_uprobes.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2006-2010
+ *
+ * 2008-2009    Alexey Gerenkov <a.gerenkov@samsung.com> User-Space
+ *              Probes initial implementation; Support x86/ARM/MIPS for both user and kernel spaces.
+ * 2010         Ekaterina Gorelkina <e.gorelkina@samsung.com>: redesign module for separating core and arch parts
+ *
+ */
+
+
 #ifndef _ARM_SWAP_UPROBES_H
 #define _ARM_SWAP_UPROBES_H
 
index 8d89428..9716f50 100644 (file)
@@ -1,3 +1,30 @@
+/*
+ *  Dynamic Binary Instrumentation Module based on KProbes
+ *  modules/uprobe/arch/asm-arm/trampoline_thumb.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2006-2010
+ *
+ * 2008-2009    Alexey Gerenkov <a.gerenkov@samsung.com> User-Space
+ *              Probes initial implementation; Support x86/ARM/MIPS for both user and kernel spaces.
+ * 2010         Ekaterina Gorelkina <e.gorelkina@samsung.com>: redesign module for separating core and arch parts
+ *
+ */
+
+
 #ifndef __ASM_ARM_TRAMPOLINE_THUMB_H
 #define __ASM_ARM_TRAMPOLINE_THUMB_H
 
index f5779ac..467c6fa 100644 (file)
@@ -1,3 +1,29 @@
+/*
+ *  Dynamic Binary Instrumentation Module based on KProbes
+ *  modules/uprobe/arch/asm-x86/swap_uprobes.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2006-2010
+ *
+ * 2008-2009    Alexey Gerenkov <a.gerenkov@samsung.com> User-Space
+ *              Probes initial implementation; Support x86/ARM/MIPS for both user and kernel spaces.
+ * 2010         Ekaterina Gorelkina <e.gorelkina@samsung.com>: redesign module for separating core and arch parts
+ *
+ */
+
 #include <linux/kdebug.h>
 #include <asm/dbi_kprobes.h>
 #include <swap_uprobes.h>
index 7864fca..c3a099d 100644 (file)
@@ -1,3 +1,29 @@
+/*
+ *  Dynamic Binary Instrumentation Module based on KProbes
+ *  modules/uprobe/arch/asm-x86/swap_uprobes.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2006-2010
+ *
+ * 2008-2009    Alexey Gerenkov <a.gerenkov@samsung.com> User-Space
+ *              Probes initial implementation; Support x86/ARM/MIPS for both user and kernel spaces.
+ * 2010         Ekaterina Gorelkina <e.gorelkina@samsung.com>: redesign module for separating core and arch parts
+ *
+ */
+
 #ifndef _ARM_SWAP_UPROBES_H
 #define _ARM_SWAP_UPROBES_H
 
index 4b3e551..8a06009 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Dynamic Binary Instrumentation Module based on KProbes
- *  modules/kprobe/dbi_uprobes.h
+ *  modules/uprobe/swap_uprobes.h
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 7fad2fe..0add55d 100644 (file)
@@ -3,7 +3,7 @@
 
 /*
  *  Dynamic Binary Instrumentation Module based on KProbes
- *  modules/kprobe/dbi_uprobes.h
+ *  modules/uprobe/swap_uprobes.h
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 1507b4c..c44d637 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/helper.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
+
 #include <dbi_kprobes.h>
 #include <dbi_kprobes_deps.h>
 #include <ksyms.h>
index 4c57794..62c37e0 100644 (file)
@@ -1,3 +1,27 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/helper.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
 #ifndef _HELPER_H
 #define _HELPER_H
 
index 4b56298..55781b2 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/img/img_file.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
+
 #include "img_file.h"
 #include "img_ip.h"
 #include <linux/slab.h>
index 9f9226e..6cca65b 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/img/img_file.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
+
 #ifndef _IMG_FILE_H
 #define _IMG_FILE_H
 
index 39ae629..224627a 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/img/img_ip.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
+
 #include "img_ip.h"
 #include <linux/slab.h>
 
index 0faf282..2f5b4ae 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/img/img_ip.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
+
 #ifndef _IMG_IP_H
 #define _IMG_IP_H
 
index 735bf7f..7d4f03f 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/img/img_proc.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
+
 #include "img_proc.h"
 #include "img_file.h"
 #include <linux/slab.h>
index b89f71e..dad9d66 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/img_proc.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
+
 #ifndef _IMG_PROC_H
 #define _IMG_PROC_H
 
index 7567260..ff2b7d2 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/pf/pf_group.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
+
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/list.h>
index 0278e0b..e4977ff 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/pf/pf_group.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
+
 #ifndef _PF_GROUP_H
 #define _PF_GROUP_H
 
index 4b6eeb0..3922b0e 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/pf/proc_filters.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
+
 #include <linux/slab.h>
 #include <linux/sched.h>
 #include <linux/mm_types.h>
index 41ae1d4..3653107 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/pf/proc_filters.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
+
 #ifndef _PROC_FILTERS_H
 #define _PROC_FILTERS_H
 
index 6195a67..5ccb127 100644 (file)
@@ -1,3 +1,31 @@
+#ifndef __US_PROC_TYPES_H__
+#define __US_PROC_TYPES_H__
+
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/sspt/us_proc_types.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Alexander Aksenov <a.aksenov@samsung.com>: Porting structures
+ *              declarations from old driver
+ *
+ */
+
 typedef struct
 {
        struct list_head list;
@@ -57,3 +85,5 @@ typedef struct {
        // new_dpf
        struct sspt_proc *pp;
 } inst_us_proc_t;
+
+#endif /* __US_PROC_TYPES_H__ */
index 3fb52ca..a08a81c 100644 (file)
@@ -1,12 +1,32 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/us_def_handler.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
 #include <linux/module.h>
 #include <asm/percpu.h>
-//#include <ec_probe.h>
-//#include <picl.h>
 #include <swap_uprobes.h>
 #include <sspt/ip.h>
 #include <dbi_kprobes_deps.h>
-//#include "storage.h"
-//#include "us_proc_inst.h"
 #include <sspt/sspt.h>
 #include <writer/swap_writer_module.h>
 
index 3628ac0..2bfb678 100644 (file)
@@ -1,3 +1,27 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/us_def_handler.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
 #ifndef _US_DEF_HANDLER_H
 #define _US_DEF_HANDLER_H
 
index 53ddebc..77fd4ee 100644 (file)
@@ -1,3 +1,27 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/us_manager.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
 #include <linux/module.h>
 #include <us_manager/sspt/sspt.h>
 #include <us_manager/sspt/sspt_proc.h>
index 577081b..b98f59b 100644 (file)
@@ -1,3 +1,27 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/us_manager.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
 #ifndef _US_MANAGER_H
 #define _US_MANAGER_H
 
index 3f96b35..c45b642 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/us_slot_manager.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
+
 #include <linux/slab.h>
 #include <linux/hardirq.h>
 #include <linux/sched.h>
index 8b49902..6dd42bc 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP uprobe manager
+ *  modules/us_manager/us_slot_manager.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Vyacheslav Cherkashin: SWAP us_manager implement
+ *
+ */
+
+
 #ifndef _US_SLOT_MANAGER_H
 #define _US_SLOT_MANAGER_H
 
index 65c8991..3c7691e 100644 (file)
@@ -1,3 +1,33 @@
+/*
+ *  SWAP Writer
+ *  modules/driver_new/swap_writer_errors.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Alexander Aksenov <a.aksenov@samsung.com>: SWAP Writer module kernel
+ * operaions implement
+ *
+ */
+
+#ifndef __SWAP_WRITER_ERRORS_H__
+#define __SWAP_WRITER_ERRORS_H__
+
 enum _swap_writer_errors {
-    E_SW_SUCCESS = 0        /* Success */
+       E_SW_SUCCESS = 0                /* Success */
 };
+
+#endif /* __SWAP_WRITER_ERRORS_H__ */
index b859d5f..193ae09 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP Writer
+ *  modules/driver_new/swap_writer_module.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Alexander Aksenov <a.aksenov@samsung.com>, Vyacheslav Cherkashin: 
+ *                  SWAP Writer module implement
+ *
+ */
+
 #include <linux/types.h>
 #include <linux/errno.h>
 #include <linux/sched.h>
index 531391d..7e75c0a 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ *  SWAP Writer
+ *  modules/driver_new/swap_writer_module.c
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) Samsung Electronics, 2013
+ *
+ * 2013         Alexander Aksenov <a.aksenov@samsung.com>, Vyacheslav Cherkashin: 
+ *                  SWAP Writer module implement
+ *
+ */
+
 #ifndef _SWAP_MSG_H
 #define _SWAP_MSG_H