[kgtp] r911 committed - Make getgtprsp.pl support all special trace state variables.

  • From: kgtp@xxxxxxxxxxxxxx
  • To: kgtp@xxxxxxxxxxxxx
  • Date: Mon, 06 Feb 2012 11:52:04 +0000

Revision: 911
Author:   teawater
Date:     Mon Feb  6 03:51:07 2012
Log:      Make getgtprsp.pl support all special trace state variables.

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

Modified:
 /trunk/UPDATE
 /trunk/getgtprsp.pl

=======================================
--- /trunk/UPDATE       Sat Feb  4 00:32:45 2012
+++ /trunk/UPDATE       Mon Feb  6 03:51:07 2012
@@ -3,6 +3,8 @@
 * Fix build error with Linux Kernel 3.0.x version.
   Thanks for report from sam.wanshan.

+* Make getgtprsp.pl support all special trace state variables.
+
 *** 20120131

 * https://lkml.org/lkml/2012/1/31/215
=======================================
--- /trunk/getgtprsp.pl Wed Apr 20 01:51:29 2011
+++ /trunk/getgtprsp.pl Mon Feb  6 03:51:07 2012
@@ -33,6 +33,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') {
@@ -58,23 +60,54 @@
                                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';
                        } else {
                                print '$l#6c';
                        }

Other related posts:

  • » [kgtp] r911 committed - Make getgtprsp.pl support all special trace state variables. - kgtp