Revision: 909 Author: teawater Date: Sat Feb 4 00:49:25 2012 Log: Add version info to gtp_rb.c http://code.google.com/p/kgtp/source/detail?r=909 Modified: /trunk/gtp_rb.c ======================================= --- /trunk/gtp_rb.c Sun Jan 29 19:25:50 2012 +++ /trunk/gtp_rb.c Sat Feb 4 00:49:25 2012 @@ -1,3 +1,24 @@ +/* + * Ring buffer of kernel GDB tracepoint module. + * + * 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) KGTP team (https://code.google.com/p/kgtp/), 2011, 2012 + * + */ + #define ADDR_SIZE sizeof(size_t) #define GTP_RB_HEAD(addr) ((void *)((size_t)(addr) & PAGE_MASK)) #define GTP_RB_DATA(addr) (GTP_RB_HEAD(addr) + ADDR_SIZE)