Revision: 951 Author: teawater Date: Sat Mar 3 02:47:45 2012 Log: Adding actionx http://code.google.com/p/kgtp/source/detail?r=951 Modified: /branches/actionx/gtp.c ======================================= --- /branches/actionx/gtp.c Sat Mar 3 02:01:37 2012 +++ /branches/actionx/gtp.c Sat Mar 3 02:47:45 2012 @@ -3054,7 +3054,7 @@ pc++; break; /* trace_quick_printk */ - case op_trace_printk: + case op_trace_quick_printk: if (gtp_action_printk(gts, (ULONGEST) top, (size_t) ebuf[pc++])) goto out; @@ -4572,16 +4572,16 @@ return 0; } -struct gtp_x_goto { - struct gtp_x_goto *next; +struct gtp_x_loop { + struct gtp_x_loop *next; unsigned int addr; int non_goto_done; }; -static struct gtp_x_goto * -gtp_x_goto_find(struct gtp_x_goto *list, unsigned int pc) -{ - struct gtp_x_goto *ret = NULL; +static struct gtp_x_loop * +gtp_x_goto_find(struct gtp_x_loop *list, unsigned int pc) +{ + struct gtp_x_loop *ret = NULL; for (ret = list; ret; ret = ret->next) { if (ret->addr == pc) @@ -4591,12 +4591,12 @@ return ret; } -static struct gtp_x_goto *-gtp_x_goto_add(struct gtp_x_goto **list, unsigned int pc, int non_goto_done)
-{ - struct gtp_x_goto *ret; - - ret = kmalloc(sizeof(struct gtp_x_goto), GFP_KERNEL); +static struct gtp_x_loop *+gtp_x_goto_add(struct gtp_x_loop **list, unsigned int pc, int non_goto_done)
+{ + struct gtp_x_loop *ret; + + ret = kmalloc(sizeof(struct gtp_x_loop), GFP_KERNEL); if (!ret) goto out; @@ -4656,12 +4656,11 @@ { int ret = -EINVAL; unsigned int pc = 0, sp = 0; - struct gtp_x_goto *glist = NULL, *gtmp; + 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; unsigned int sp_max = 0; - int need_op_check = 0; reswitch: while (pc < ae->u.exp.size) {