]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Don't allocate a full sockaddr_storage for tracing
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 24 Jun 2016 14:55:44 +0000 (10:55 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Jul 2016 20:28:44 +0000 (16:28 -0400)
commit3312d5af60547f0759679d37fbdf8d0ba386d0be
tree0c008eb896f5386ba8710605858a03b05e159022
parent34d6958b0101f04b91d7514c513b62826d52fa0d
SUNRPC: Don't allocate a full sockaddr_storage for tracing

We're always tracing IPv4 or IPv6 addresses, so we can save a lot
of space on the ringbuffer by allocating the correct sockaddr size.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: stable@vger.kernel.org
Fixes: c9f9fa6ff825 "sunrpc: add some tracepoints around ..."
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/trace/events/sunrpc.h