]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/netapi.git/commitdiff
some changes to scripts
authorDavid Lide <a0216552@gtudci01.(none)>
Mon, 18 Aug 2014 14:43:49 +0000 (10:43 -0400)
committerDavid Lide <a0216552@gtudci01.(none)>
Mon, 18 Aug 2014 14:43:49 +0000 (10:43 -0400)
ti/runtime/netapi/demo/demo_setup_files/dpicgi4.sh
ti/runtime/netapi/demo/demo_setup_files/stats3.awk

index 1e258c49e0412980cc7b5072cb3387c2637451e8..5e487f90a959fe6b2f8304f9261025ec6eba6063 100755 (executable)
@@ -3,13 +3,4 @@ echo Content-type: text/html
 echo
 echo
 #dump mem stat
-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
+/usr/bin/transport_dpi_demo stats | awk -f ../stats3.awk
index 4650d32c296b66f2f61ac630fb4d6be38e95136a..fdc52e5e002ab64d8e098e6de3c3ab3ddb474e67 100644 (file)
@@ -7,17 +7,19 @@
 
 
 BEGIN { state=0;
+        thread=1;
         printf("<HTML>\n");
         printf("</HEAD>\n");
         printf("<BODY>\n");
-        printf("<H2> DPI Memory Utilization Statistics </H2>\n");
-
  }
 
  // {
  if (state==1)
  {
-    if ($0 ~"-------------")
+    if ($0 ~"-------------") 
+    {
+    }
+    else if ($0 ~ "NAVL DPI")
     {
     }
     else if (NF==1)
@@ -49,14 +51,21 @@ BEGIN { state=0;
    }
 }
 }
-/packets captured/ {if (state==0) {state=1; printf("<table>\n");}}
-/Peak allocated/ {if(state==1) {state=2; printf("</table>");}}
+/packets captured/ {
+        if (state==0) 
+        {
+        state=1; 
+        printf("<H2> DPI Memory Utilization Statistics Thread %d </H2>\n", thread);
+        printf("<table>\n");}
+}
+/NAVL DPI/ {if(state==1) {state=0; printf("</table>"); thread+=1;}}
 
 
 
 END {
+ printf("</table>\n");
  printf("</PRE>\n");
  printf("<A href=\"\\index.html\"> <p><u> RETURN </u> </p> </A>\n");
  printf("</BODY>\n");
  printf("</HTML>\n");
-}
\ No newline at end of file
+}