From: Vyacheslav Cherkashin Date: Tue, 29 Jan 2013 10:19:39 +0000 (+0400) Subject: add copyright X-Git-Tag: Tizen_SDK_2.3~716^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1d0bb8d7ee8cdb8080b80db024b7efa72d34f00;p=kernel%2Fswap-modules.git add copyright --- diff --git a/driver/sspt/ip.c b/driver/sspt/ip.c index 1cffb1d..6e5861f 100644 --- a/driver/sspt/ip.c +++ b/driver/sspt/ip.c @@ -1,3 +1,27 @@ +/* + * Dynamic Binary Instrumentation Module based on KProbes + * modules/driver/sspt/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 + * + */ + #include "ip.h" #include "sspt_page.h" #include "sspt_file.h" diff --git a/driver/sspt/ip.h b/driver/sspt/ip.h index eaa942f..510c3fc 100644 --- a/driver/sspt/ip.h +++ b/driver/sspt/ip.h @@ -1,6 +1,30 @@ #ifndef __IP__ #define __IP__ +/* + * Dynamic Binary Instrumentation Module based on KProbes + * modules/driver/sspt/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 + * + */ + #include #include "../../kprobe/dbi_kprobes.h" diff --git a/driver/sspt/sspt.h b/driver/sspt/sspt.h index db61079..47b9251 100644 --- a/driver/sspt/sspt.h +++ b/driver/sspt/sspt.h @@ -1,6 +1,30 @@ #ifndef __SSPT__ #define __SSPT__ +/* + * Dynamic Binary Instrumentation Module based on KProbes + * modules/driver/sspt/sspt.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 + * + */ + #include "ip.h" #include "sspt_page.h" #include "sspt_file.h" diff --git a/driver/sspt/sspt_debug.h b/driver/sspt/sspt_debug.h index 8b25efc..d2635ef 100644 --- a/driver/sspt/sspt_debug.h +++ b/driver/sspt/sspt_debug.h @@ -1,6 +1,30 @@ #ifndef __SSPT_DEBUG__ #define __SSPT_DEBUG__ +/* + * Dynamic Binary Instrumentation Module based on KProbes + * modules/driver/sspt/sspt_debug.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 + * + */ + static void print_jprobe(struct jprobe *jp) { printk("### JP: entry=%x, pre_entry=%x\n", diff --git a/driver/sspt/sspt_file.c b/driver/sspt/sspt_file.c index a0a44ef..460503a 100644 --- a/driver/sspt/sspt_file.c +++ b/driver/sspt/sspt_file.c @@ -1,10 +1,33 @@ +/* + * Dynamic Binary Instrumentation Module based on KProbes + * modules/driver/sspt/sspt_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 + * + */ + #include "sspt_file.h" #include "sspt_page.h" #include #include #include - static int calculation_hash_bits(int cnt) { int bits; diff --git a/driver/sspt/sspt_file.h b/driver/sspt/sspt_file.h index 5f2f2d6..69f493d 100644 --- a/driver/sspt/sspt_file.h +++ b/driver/sspt/sspt_file.h @@ -1,6 +1,30 @@ #ifndef __SSPT_FILE__ #define __SSPT_FILE__ +/* + * Dynamic Binary Instrumentation Module based on KProbes + * modules/driver/sspt/sspt_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 + * + */ + #include "ip.h" #include diff --git a/driver/sspt/sspt_page.c b/driver/sspt/sspt_page.c index 861cb3c..62acabf 100644 --- a/driver/sspt/sspt_page.c +++ b/driver/sspt/sspt_page.c @@ -1,3 +1,27 @@ +/* + * Dynamic Binary Instrumentation Module based on KProbes + * modules/driver/sspt/sspt_page.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 + * + */ + #include "sspt_page.h" #include "sspt_file.h" #include "ip.h" @@ -84,7 +108,5 @@ void sspt_set_all_ip_addr(struct sspt_page *page, const struct sspt_file *file) list_for_each_entry(ip, &page->ip_list, list) { addr = file->vm_start + page->offset + ip->offset; ip->retprobe.kp.addr = ip->jprobe.kp.addr = addr; -// printk("### pp_set_all_kp_addr: start=%x, page_offset=%x, ip_offset=%x, addr=%x\n", -// file_p->vm_start, page_p->offset, ip->offset, addr); } } diff --git a/driver/sspt/sspt_page.h b/driver/sspt/sspt_page.h index 49fb2b1..5d74e5f 100644 --- a/driver/sspt/sspt_page.h +++ b/driver/sspt/sspt_page.h @@ -1,6 +1,30 @@ #ifndef __SSPT_PAGE__ #define __SSPT_PAGE__ +/* + * Dynamic Binary Instrumentation Module based on KProbes + * modules/driver/sspt/sspt_page.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 + * + */ + #include #include diff --git a/driver/sspt/sspt_procs.c b/driver/sspt/sspt_procs.c index a09cc7e..9382b89 100644 --- a/driver/sspt/sspt_procs.c +++ b/driver/sspt/sspt_procs.c @@ -1,3 +1,27 @@ +/* + * Dynamic Binary Instrumentation Module based on KProbes + * modules/driver/sspt/sspt_procs.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 + * + */ + #include "sspt_procs.h" #include #include diff --git a/driver/sspt/sspt_procs.h b/driver/sspt/sspt_procs.h index e081081..79beb84 100644 --- a/driver/sspt/sspt_procs.h +++ b/driver/sspt/sspt_procs.h @@ -1,6 +1,30 @@ #ifndef __SSPT_PROC__ #define __SSPT_PROC__ +/* + * Dynamic Binary Instrumentation Module based on KProbes + * modules/driver/sspt/sspt_procs.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 + * + */ + #include #include "sspt_file.h"