about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--probes.d3
-rw-r--r--tapset/http_request.stp10
2 files changed, 13 insertions, 0 deletions
diff --git a/probes.d b/probes.d
index 20a05a6..c5f55ba 100644
--- a/probes.d
+++ b/probes.d
@@ -27,4 +27,7 @@ provider cmogstored {
         probe mgmt_rdclose(struct mog_fd *mfd, size_t buf_len);
 
         probe write_buffered();
+
+        /* DWARF: mgmt_rbuf_grow */
+        /* DWARF: http_rbuf_grow */
 };
diff --git a/tapset/http_request.stp b/tapset/http_request.stp
index ceac883..ca0b85c 100644
--- a/tapset/http_request.stp
+++ b/tapset/http_request.stp
@@ -97,3 +97,13 @@ probe process("cmogstored").mark("write_buffered") {
         printf("% 6d % 6d blocked with %lu bytes to write\n",
                 pid(), $fd, $len);
 }
+
+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);
+}
+
+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);
+}