about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--tapset/all.stp (renamed from tapset/http_request.stp)20
1 files changed, 20 insertions, 0 deletions
diff --git a/tapset/http_request.stp b/tapset/all.stp
index ca0b85c..600c07a 100644
--- a/tapset/http_request.stp
+++ b/tapset/all.stp
@@ -1,3 +1,9 @@
+/*
+ * This is an extremely detailed tapset for capturing all supported probe
+ * points in the current version of cmogstored.  It likely contains too much
+ * information to be useful, extracting relevant probes is recommended.
+ */
+
 /* keyed by: [pid(),fd] */
 global cmogstored_http_req_begin;
 global cmogstored_http_pipelined;
@@ -98,12 +104,26 @@ probe process("cmogstored").mark("write_buffered") {
                 pid(), $fd, $len);
 }
 
+/* signals a client is making us reallocate on large requests */
 probe process("cmogstored").function("http_rbuf_grow") {
         fd = @cast($mfd, "struct mog_fd")->fd;
         printf("% 6d % 6d http_rbuf_grow %lu\n", pid(), fd, $buf_len);
 }
 
+/* signals a client is making us reallocate on large requests */
 probe process("cmogstored").function("mgmt_rbuf_grow") {
         fd = @cast($mfd, "struct mog_fd")->fd;
         printf("% 6d % 6d mgmt_rbuf_grow %lu\n", pid(), fd, $buf_len);
 }
+
+/* this signals a client is trickling requests to us */
+probe process("cmogstored").function("http_parse_continue") {
+        fd = @cast($mfd, "struct mog_fd")->fd;
+        printf("% 6d % 6d http_parse_continue %lu\n", pid(), fd, $buf_len);
+}
+
+/* this signals a client is trickling requests to us */
+probe process("cmogstored").function("mgmt_parse_continue") {
+        fd = @cast($mfd, "struct mog_fd")->fd;
+        printf("% 6d % 6d mgmt_parse_continue %lu\n", pid(), fd, $buf_len);
+}