summaryrefslogtreecommitdiff
path: root/Kernel/Net/LocalSocket.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-01 17:36:06 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-01 17:40:27 +0100
commit5a45376180fe589622a169828bb030eb929a509d (patch)
treea47ff74abdda552b28e7cb661c7c839fac9061a5 /Kernel/Net/LocalSocket.h
parenta18aa8fd5f65708d840c5ff8c13f673ae4c8b079 (diff)
downloadserenity-5a45376180fe589622a169828bb030eb929a509d.zip
Kernel+SystemMonitor: Log amounts of I/O per thread
This patch adds these I/O counters to each thread: - (Inode) file read bytes - (Inode) file write bytes - Unix socket read bytes - Unix socket write bytes - IPv4 socket read bytes - IPv4 socket write bytes These are then exposed in /proc/all and seen in SystemMonitor.
Diffstat (limited to 'Kernel/Net/LocalSocket.h')
-rw-r--r--Kernel/Net/LocalSocket.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/Net/LocalSocket.h b/Kernel/Net/LocalSocket.h
index bd529933f1..7677a25e8d 100644
--- a/Kernel/Net/LocalSocket.h
+++ b/Kernel/Net/LocalSocket.h
@@ -36,7 +36,8 @@ private:
virtual bool is_local() const override { return true; }
bool has_attached_peer(const FileDescription&) const;
static Lockable<InlineLinkedList<LocalSocket>>& all_sockets();
- DoubleBuffer& buffer_for(FileDescription&);
+ DoubleBuffer& receive_buffer_for(FileDescription&);
+ DoubleBuffer& send_buffer_for(FileDescription&);
// An open socket file on the filesystem.
RefPtr<FileDescription> m_file;