From 00d234c6f9362c11938f3b67c03bf208c7638eca Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 18 Jul 2013 23:58:23 +0000 Subject: probes: add probes for rbuf growth Growing the rbufs should be uncommon, but it should set off alarms if it happens too often. --- probes.d | 3 +++ tapset/http_request.stp | 10 ++++++++++ 2 files changed, 13 insertions(+) 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); +} -- cgit v1.2.3-24-ge0c7