]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/netapi.git/commitdiff
some updates to scripts/web pages
authorDavid Lide <a0216552@gtudci01.(none)>
Fri, 15 Aug 2014 14:38:43 +0000 (10:38 -0400)
committerDavid Lide <a0216552@gtudci01.(none)>
Fri, 15 Aug 2014 14:38:43 +0000 (10:38 -0400)
ti/runtime/netapi/demo/demo_setup_files/dpicgi4.sh
ti/runtime/netapi/demo/demo_setup_files/dpicgi5.sh [new file with mode: 0755]
ti/runtime/netapi/demo/demo_setup_files/index.html
ti/runtime/netapi/demo/demo_setup_files/stats1.awk
ti/runtime/netapi/demo/demo_setup_files/stats2.awk
ti/runtime/netapi/demo/demo_setup_files/tilogo.gif [new file with mode: 0644]
ti/runtime/netapi/demo/demo_setup_files/titagline.gif [new file with mode: 0644]

index 51ebca4ee823f64002b84a5eb91bc46348d23927..1e258c49e0412980cc7b5072cb3387c2637451e8 100755 (executable)
@@ -3,5 +3,13 @@ echo Content-type: text/html
 echo
 echo
 #dump mem stat
-awk -f ../stats3.awk  ../stats1.txt
-#dpidemo stats | awk -f ../stats3.awk
\ No newline at end of file
+echo "<HTML>"
+echo "<HEAD>"
+echo "</HEAD>"
+echo "<BODY>"
+echo "<H2> DPI Memory Useage Stats.. Coming Soon.. </H2>"
+echo "<A href=\"\index.html\"> <p><u>RETURN</u></p> </A>"
+echo "</BODY>"
+echo "</HTML>"
+
+#dpidemo stats | awk -f ../stats3.awk
diff --git a/ti/runtime/netapi/demo/demo_setup_files/dpicgi5.sh b/ti/runtime/netapi/demo/demo_setup_files/dpicgi5.sh
new file mode 100755 (executable)
index 0000000..e98940f
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+echo Content-type: text/html
+echo
+echo
+#dump  bridge stats
+/usr/bin/transport_dpi_demo stats | awk -f ../stats4.awk
index 9440abc0212867c9574cf301ecfeb629c0e09d7f..f7e6f79cdcd30990c001ed4bfaccb21b03758747 100644 (file)
@@ -20,4 +20,7 @@ xt>
 <A href="cgi-bin/dpicgi2.sh"> <p>Protocols Seen</p> </A>
 <A href="cgi-bin/dpicgi3.sh"> <p>Cycles by Protocol</p> </A>
 <A href="cgi-bin/dpicgi4.sh"> <p>Memory Usage</p> </A>
-</body>
\ No newline at end of file
+<img src="titagline.gif">
+</body>
+</html>
+
index 5fd71d84fcb67a9831a1758435f1f1a65d7c1f20..e21232fabcba1204f40db2e0da8637b1fff5aaa1 100644 (file)
@@ -7,17 +7,19 @@
 
 
 BEGIN { state=0;
+        thread=1;
         printf("<HTML>\n");
         printf("</HEAD>\n");
         printf("<BODY>\n");
         printf("<H2> DPI Protocol Statistics </H2>\n");
-
+        
  }
 
 $0 ~ "NAVL DPI stats"  {
   if (state==0)
   {
   state=1;
+  printf("<p><b>  DPI Thread %d: </b> </p>\n", thread);
   printf("<table>\n");
   printf("<tr>\n");
 #  printf("<th> colspan="6" <b>Results</b> </th> </tr> \n");
@@ -38,7 +40,7 @@ $0 ~ "NAVL DPI stats"  {
  }
 }
 /--------/ { if (state==1) state=2}
-/packets captured/ {if (state==2) {state=3; printf("</table>\n");}}
+/packets captured/ {if (state==2) {state=0; thread+=1;  printf("</table>\n"); printf("%s\n\n",$0);}}
 
 
 
@@ -49,4 +51,4 @@ END {
  printf("</HTML>\n");
 
 
-}
\ No newline at end of file
+}
index a3431ef34c70bc83d64fc15a2eaa5f240f5240cf..9c9266b2bf07ae2f6702270e0f9a773775596695 100644 (file)
@@ -7,17 +7,19 @@
 
 
 BEGIN { state=0;
+        thread=1;
         printf("<HTML>\n");
         printf("</HEAD>\n");
         printf("<BODY>\n");
         printf("<H2> DPI Cycle Statistics by Protocol </H2>\n");
-
+        
  }
 
 $0 ~ "NAVL DPI stats"  {
   if (state==0)
   {
   state=1;
+  printf("<p><b>  DPI Thread %d: </b> </p>\n", thread);
   printf("<table>\n");
   printf("<tr>\n");
 #  printf("<th> colspan="6" <b>Results</b> </th> </tr> \n");
@@ -40,7 +42,7 @@ $0 ~ "NAVL DPI stats"  {
  }
 }
 /--------/ { if (state==1) state=2}
-/packets captured/ {if (state==2) {state=3; printf("</table>\n");}}
+/packets captured/ {if (state==2) {state=0; thread+=1;  printf("</table>\n");}}
 
 
 
@@ -49,4 +51,6 @@ END {
  printf("<A href=\"\\index.html\"> <p><u> RETURN </u> </p> </A>\n");
  printf("</BODY>\n");
  printf("</HTML>\n");
-}
\ No newline at end of file
+
+
+}
diff --git a/ti/runtime/netapi/demo/demo_setup_files/tilogo.gif b/ti/runtime/netapi/demo/demo_setup_files/tilogo.gif
new file mode 100644 (file)
index 0000000..f2fab2d
Binary files /dev/null and b/ti/runtime/netapi/demo/demo_setup_files/tilogo.gif differ
diff --git a/ti/runtime/netapi/demo/demo_setup_files/titagline.gif b/ti/runtime/netapi/demo/demo_setup_files/titagline.gif
new file mode 100644 (file)
index 0000000..743a024
Binary files /dev/null and b/ti/runtime/netapi/demo/demo_setup_files/titagline.gif differ