[kgtp] r1549 committed - Update test

  • From: kgtp@xxxxxxxxxxxxxx
  • To: kgtp@xxxxxxxxxxxxx
  • Date: Wed, 08 May 2013 01:35:36 +0000

Revision: 1549
Author:   teawater
Date:     Tue May  7 18:35:18 2013
Log:      Update test

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

Modified:
 /bak/test.txt

=======================================
--- /bak/test.txt       Wed Apr 17 07:10:39 2013
+++ /bak/test.txt       Tue May  7 18:35:18 2013
@@ -22,6 +22,7 @@
 #Access static LIST_HEAD(modules)
p *((struct module *)((char *)modules->next - ((size_t) &(((struct module *)0)->list)))) p *((struct module *)((char *)modules->next->next - ((size_t) &(((struct module *)0)->list))))
+ls
#Access DEFINE_PER_CPU(irq_cpustat_t, irq_stat) ____cacheline_internodealigned_in_smp;
 p *(irq_cpustat_t *)(__per_cpu_offset[0]+(uint64_t)(&per_cpu__irq_stat))
 p *(irq_cpustat_t *)(__per_cpu_offset[1]+(uint64_t)(&per_cpu__irq_stat))
@@ -249,6 +250,7 @@
 cd bin
 ls
 tstop
+undisplay
 display $cpu_id
 display $watch_val

@@ -282,6 +284,7 @@
 display $cpu_id
 display $watch_val

+#step
 trace vfs_read
   commands
     collect $regs
@@ -335,6 +338,7 @@
 #Access static LIST_HEAD(modules)
p *((struct module *)((char *)modules->next - ((size_t) &(((struct module *)0)->list)))) p *((struct module *)((char *)modules->next->next - ((size_t) &(((struct module *)0)->list))))
+!lsmod
#Access DEFINE_PER_CPU(irq_cpustat_t, irq_stat) ____cacheline_internodealigned_in_smp;
 p *(irq_cpustat_t *)(__per_cpu_offset[0]+(uint64_t)(&irq_stat))
 p *(irq_cpustat_t *)(__per_cpu_offset[1]+(uint64_t)(&irq_stat))
@@ -355,7 +359,7 @@
 add-inferior
 inferior 2
 file a.out
-ps -e
+!ps -e | grep a.out
 attach xxx
 p c

@@ -392,7 +396,7 @@
 target tfile /sys/kernel/debug/gtpframe

 #TSV
-target remote /sys/kernel/debug/gtp
+gtp
 set disconnected-tracing off
 d
 set pagination off
@@ -436,8 +440,8 @@
 sudo ~/kernel/svn/trunk/putgtprsp gtpstart
 sudo ~/kernel/svn/trunk/putgtprsp gtpstop
 tail -f /var/log/syslog
-sudo su

+sudo su
 rmmod gtp
 echo scan > /sys/kernel/debug/kmemleak
 cat /sys/kernel/debug/kmemleak
@@ -451,17 +455,17 @@
 sudo gdb ./vmlinux
 gtp
 info tvariables
-sudo cat /proc/kallsyms
+!cat /proc/kallsyms
 trace vfs_readdir
 actions
 teval $test3=(int64_t)$rip
 teval $test3=(int64_t)0x...
 end
 tstart
-ls
+!ls
 tstop
 quit
-rmmod plugin_example
+sudo rmmod plugin_example

 #Watch tracepoints
 trace *&jiffies_64
@@ -531,6 +535,7 @@
 cd bin
 ls
 tstop
+undisplay
 display $cpu_id
 display $watch_val

@@ -543,8 +548,9 @@
     collect $watch_addr
     collect $watch_val
   end
+#Need set in get_empty_filp:spin_lock_init(&f->f_lock);
 list get_empty_filp
-trace 133
+trace 140
   commands
     teval $watch_set_addr=1
     teval $watch_size=4
@@ -563,13 +569,17 @@
 display $cpu_id
 display $watch_val

-
+#step
+#sudo gdb /usr/lib/debug/lib/modules/$(uname -r)/vmlinux
+target remote /sys/kernel/debug/gtp
+#set disconnected-tracing on
 trace vfs_read
+passcount 1
   commands
-    collect $regs
+    collect $bt
     collect $step_count
-    while-stepping 1000
-      collect $regs
+    while-stepping 2000
+      collect $bt
       collect $step_count
     end
   end
@@ -584,10 +594,11 @@
 b

 trace do_IRQ
+passcount 1
   commands
     collect $bt
     collect $step_count
-    while-stepping 1000
+    while-stepping 7000
       collect $bt
       collect $step_count
     end

Other related posts:

  • » [kgtp] r1549 committed - Update test - kgtp