[kgtp] r921 committed - Add $pipe_trace to getgtprsp.pl

  • From: kgtp@xxxxxxxxxxxxxx
  • To: kgtp@xxxxxxxxxxxxx
  • Date: Sun, 19 Feb 2012 03:09:45 +0000

Revision: 921
Author:   teawater
Date:     Sat Feb 18 19:09:33 2012
Log:      Add $pipe_trace to getgtprsp.pl

http://code.google.com/p/kgtp/source/detail?r=921

Modified:
 /trunk/getgtprsp.pl
 /trunk/gtp_for_review.patch

=======================================
--- /trunk/getgtprsp.pl Mon Feb  6 03:51:07 2012
+++ /trunk/getgtprsp.pl Sat Feb 18 19:09:33 2012
@@ -108,6 +108,8 @@
                                print '$2:0:1:6370755f6964#f1';
                        } elsif ($var_count == 22) {
                                print '$1:0:1:6774705f76657273696f6e#6b';
+                       } elsif ($var_count == 23) {
+                               print '$19:0:1:706970655f7472616365#cb';
                        } else {
                                print '$l#6c';
                        }
=======================================
--- /trunk/gtp_for_review.patch Fri Feb 17 07:11:56 2012
+++ /trunk/gtp_for_review.patch Sat Feb 18 19:09:33 2012
@@ -12,9 +12,9 @@
  lib/Makefile                           |    4
lib/gtp.c | 8452 +++++++++++++++++++++++++++++++++
  lib/gtp_rb.c                           |  495 +
- scripts/getgtprsp.pl                   |  102
- scripts/getmod.py                      |  132
- 13 files changed, 11026 insertions(+), 2 deletions(-)
+ scripts/gtp/getgtprsp.pl               |  137
+ scripts/gtp/getmod.py                  |  132
+ 13 files changed, 11061 insertions(+), 2 deletions(-)

 --- /dev/null
 +++ b/Documentation/trace/gtp.txt
@@ -10903,14 +10903,14 @@
 +      GTP_RB_UNLOCK_IRQ(rb, flags);
 +}
 --- /dev/null
-+++ b/scripts/getgtprsp.pl
-@@ -0,0 +1,102 @@
++++ b/scripts/gtp/getgtprsp.pl
+@@ -0,0 +1,137 @@
 +#!/usr/bin/perl
 +
 +# This script to get the GDB tracepoint RSP package and save it
 +# to ./gtpstart and ./gtpstop file.
 +# GPL
-+# Copyright(C) Hui Zhu (teawater@xxxxxxxxx), 2010
++# Copyright(C) Hui Zhu (teawater@xxxxxxxxx), 2010, 2011
 +
 +binmode STDIN, ":raw";
 +$| = 1;
@@ -10940,6 +10940,8 @@
 +                      print '$S05#b8';
 +              } elsif ($line eq '$g#67') {
 +                      print '$00000000#80';
++              } elsif ($line eq '$k#6b') {
++                      exit;
 +              } elsif ($line =~ /^\$m/ || $line =~ /^\$p/) {
 +                      print '$00000000#80';
 +              } elsif ($line eq '$qTStatus#49') {
@@ -10965,23 +10967,56 @@
 +                              print STARTFILE '$QTBuffer:circular:0#f8'."\n";
 +                      }
 +              } elsif ($line eq '$qTfV#81') {
-+                      print '$8:0:1:64756d705f737461636b#f6';
++                      print '$18:0:1:6972715f636f756e74#ca';
 +              } elsif ($line eq '$qTsV#8e') {
 +                      if ($var_count == 0) {
-+                              print '$7:0:1:7072696e746b5f666f726d6174#9b';
++                              print '$17:0:1:736f66746972715f636f756e74#a6';
 +                      } elsif ($var_count == 1) {
-+                              print '$6:8:1:7072696e746b5f6c6576656c#3a';
++                              print '$16:0:1:686172646972715f636f756e74#70';
 +                      } elsif ($var_count == 2) {
-+                              print '$5:0:1:7072696e746b5f746d70#28';
++                              print '$15:0:1:6c6173745f6572726e6f#59';
 +                      } elsif ($var_count == 3) {
-+                              print '$4:0:1:6370755f6964#f3';
++                              print '$14:0:1:69676e6f72655f6572726f72#38';
 +                      } elsif ($var_count == 4) {
-+                              print '$3:0:1:636c6f636b#e1';
++                              print '$13:0:1:7874696d655f6e736563#35';
 +                      } elsif ($var_count == 5) {
-+                              print '$2:0:1:63757272656e745f7468726561';
-+                              print '645f696e666f#1f';
++                              print '$12:0:1:7874696d655f736563#99';
 +                      } elsif ($var_count == 6) {
-+                              print '$1:0:1:63757272656e745f7461736b#c7';
++                              print '$11:0:1:6b726574#48';
++                      } elsif ($var_count == 7) {
++                              print '$10:0:1:70635f70655f656e#4e';
++                      } elsif ($var_count == 8) {
++                              print '$f:0:1:6370755f6e756d626572#29';
++                      } elsif ($var_count == 9) {
++                              print '$e:0:1:6e6f5f73656c665f7472616365#ca';
++                      } elsif ($var_count == 10) {
++                              print '$d:0:1:64756d705f737461636b#22';
++                      } elsif ($var_count == 11) {
++                              print '$c:0:1:7072696e746b5f666f726d6174#c7';
++                      } elsif ($var_count == 12) {
++                              print '$b:8:1:7072696e746b5f6c6576656c#66';
++                      } elsif ($var_count == 13) {
++                              print '$a:0:1:7072696e746b5f746d70#54';
++                      } elsif ($var_count == 14) {
++                              print 
'$9:0:1:646973636172645f706167655f6e756d#ab';
++                      } elsif ($var_count == 15) {
++                              print '$8:0:1:636f6f6b65645f7264747363#01';
++                      } elsif ($var_count == 16) {
++                              print '$7:0:1:7264747363#57';
++                      } elsif ($var_count == 17) {
++                              print '$6:0:1:636f6f6b65645f636c6f636b#8d';
++                      } elsif ($var_count == 18) {
++                              print '$5:0:1:636c6f636b#e3';
++                      } elsif ($var_count == 19) {
++                              print 
'$4:0:1:63757272656e745f7468726561645f696e666f#21';
++                      } elsif ($var_count == 20) {
++                              print '$3:0:1:63757272656e745f7461736b#c9';
++                      } elsif ($var_count == 21) {
++                              print '$2:0:1:6370755f6964#f1';
++                      } elsif ($var_count == 22) {
++                              print '$1:0:1:6774705f76657273696f6e#6b';
++                      } elsif ($var_count == 23) {
++                              print '$19:0:1:706970655f7472616365#cb';
 +                      } else {
 +                              print '$l#6c';
 +                      }
@@ -11008,7 +11043,7 @@
 +      }
 +}
 --- /dev/null
-+++ b/scripts/getmod.py
++++ b/scripts/gtp/getmod.py
 @@ -0,0 +1,132 @@
 +#!/usr/bin/python
 +

Other related posts:

  • » [kgtp] r921 committed - Add $pipe_trace to getgtprsp.pl - kgtp