From: Mathieu Desnoyers Date: Thu, 12 Dec 2019 15:39:38 +0000 (-0500) Subject: sunrpc: introduce lttng_get_clid helper X-Git-Tag: v2.11.1~2 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=1330a091a687a406513c3a326c2fc2a0dbe75536;hp=1330a091a687a406513c3a326c2fc2a0dbe75536;p=lttng-modules.git sunrpc: introduce lttng_get_clid helper Introduce the lttng_get_clid helper to always check for NULL pointer when getting the client id. While not always strictly needed depending on the tracepoint callsite, prefer robustness of instrumentation and always check for NULL rather than play whack-a-mole. Signed-off-by: Mathieu Desnoyers ---