diff options
author | Steven Rostedt (Google) <[email protected]> | 2024-02-22 12:28:28 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2024-03-18 10:17:41 -0400 |
commit | 9388a2aa453321bcf1ad2603959debea9e6ab6d4 (patch) | |
tree | 13e6415c2a5b4f3c25ff3e039723f5571d828b34 /tools/perf/util/trace-event-scripting.c | |
parent | ed89683763a12e8289cce6f233dd07b4eb42fb96 (diff) |
NFSD: Fix nfsd_clid_class use of __string_len() macro
I'm working on restructuring the __string* macros so that it doesn't need
to recalculate the string twice. That is, it will save it off when
processing __string() and the __assign_str() will not need to do the work
again as it currently does.
Currently __string_len(item, src, len) doesn't actually use "src", but my
changes will require src to be correct as that is where the __assign_str()
will get its value from.
The event class nfsd_clid_class has:
__string_len(name, name, clp->cl_name.len)
But the second "name" does not exist and causes my changes to fail to
build. That second parameter should be: clp->cl_name.data.
Link: https://lore.kernel.org/linux-trace-kernel/[email protected]
Cc: Neil Brown <[email protected]>
Cc: Olga Kornievskaia <[email protected]>
Cc: Dai Ngo <[email protected]>
Cc: Tom Talpey <[email protected]>
Cc: [email protected]
Fixes: d27b74a8675ca ("NFSD: Use new __string_len C macros for nfsd_clid_class")
Acked-by: Chuck Lever <[email protected]>
Acked-by: Jeff Layton <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions