about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-07-18 23:58:23 +0000
committerEric Wong <normalperson@yhbt.net>2013-07-19 01:30:17 +0000
commit00d234c6f9362c11938f3b67c03bf208c7638eca (patch)
treecaa4624ae46728d4e9d678575aa93c1af5475b37
parent4c6a7474a281451b1ef57f686b9b21cbb8216b0d (diff)
downloadcmogstored-00d234c6f9362c11938f3b67c03bf208c7638eca.tar.gz
Growing the rbufs should be uncommon, but it should set off alarms
if it happens too often.
-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);
+}