Revision: 983 Author: teawater Date: Mon Mar 19 00:46:07 2012 Log: Remove unused code http://code.google.com/p/kgtp/source/detail?r=983 Modified: /trunk/gtp.c /trunk/gtp_for_review.patch ======================================= --- /trunk/gtp.c Mon Mar 12 06:54:29 2012 +++ /trunk/gtp.c Mon Mar 19 00:46:07 2012 @@ -20,7 +20,7 @@ */ /* If "* 10" means that this is not a release version. */ -#define GTP_VERSION (20120224 * 10) +#define GTP_VERSION (20120319) #include <linux/version.h> #ifndef RHEL_RELEASE_VERSION @@ -4848,7 +4848,6 @@ struct gtp_x_loop *glist = NULL, *gtmp; struct gtp_x_var *vlist = NULL, *vtmp; uint8_t *ebuf = ae->u.exp.buf; - int last_trace_pc = -1; printk(KERN_WARNING "Action of tracepoint %d have loop.\n", (int)tpe->num); @@ -5098,9 +5097,6 @@ case 0x2e: { int arg; - if (tpe->have_printk) - last_trace_pc = pc - 1; - if (pc + 1 >= ae->u.exp.size) goto release_out; arg = ebuf[pc++]; ======================================= --- /trunk/gtp_for_review.patch Sun Mar 18 00:15:37 2012 +++ /trunk/gtp_for_review.patch Mon Mar 19 00:46:07 2012 @@ -8,12 +8,12 @@ kernel/events/core.c | 14 lib/Kconfig.debug | 10 lib/Makefile | 4- lib/gtp.c | 8920 +++++++++++++++++++++++++++++++++++++++ + lib/gtp.c | 8916 +++++++++++++++++++++++++++++++++++++++
lib/gtp_rb.c | 498 ++ scripts/gtp/add-ons/pe.py | 729 +++ scripts/gtp/getgtprsp.pl | 137 scripts/gtp/getmod.py | 132 - 14 files changed, 12263 insertions(+), 2 deletions(-) + 14 files changed, 12259 insertions(+), 2 deletions(-) --- /dev/null +++ b/Documentation/gtp/howto.txt @@ -1952,7 +1952,7 @@ +gtp.o: gtp_rb.c --- /dev/null +++ b/lib/gtp.c -@@ -0,0 +1,8920 @@ +@@ -0,0 +1,8916 @@ +/* + * Kernel GDB tracepoint module. + * @@ -1975,7 +1975,7 @@ + */ + +/* If "* 10" means that this is not a release version. */ -+#define GTP_VERSION (20120224 * 10) ++#define GTP_VERSION (20120319) + +#include <linux/version.h> +#include <linux/kernel.h> @@ -6303,7 +6303,6 @@ + struct gtp_x_loop *glist = NULL, *gtmp; + struct gtp_x_var *vlist = NULL, *vtmp; + uint8_t *ebuf = ae->u.exp.buf; -+ int last_trace_pc = -1; + + printk(KERN_WARNING "Action of tracepoint %d have loop.\n", + (int)tpe->num); @@ -6553,9 +6552,6 @@ + case 0x2e: { + int arg; + -+ if (tpe->have_printk) -+ last_trace_pc = pc - 1; -+ + if (pc + 1 >= ae->u.exp.size) + goto release_out; + arg = ebuf[pc++];