Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d27b74a8
Commit
d27b74a8
authored
May 14, 2021
by
Chuck Lever
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSD: Use new __string_len C macros for nfsd_clid_class
Clean up. Signed-off-by:
Chuck Lever
<
chuck.lever@oracle.com
>
parent
408c0de7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
fs/nfsd/trace.h
fs/nfsd/trace.h
+2
-3
No files found.
fs/nfsd/trace.h
View file @
d27b74a8
...
...
@@ -606,7 +606,7 @@ DECLARE_EVENT_CLASS(nfsd_clid_class,
__array
(
unsigned
char
,
addr
,
sizeof
(
struct
sockaddr_in6
))
__field
(
unsigned
long
,
flavor
)
__array
(
unsigned
char
,
verifier
,
NFS4_VERIFIER_SIZE
)
__
dynamic_array
(
char
,
name
,
clp
->
cl_name
.
len
+
1
)
__
string_len
(
name
,
name
,
clp
->
cl_name
.
len
)
),
TP_fast_assign
(
__entry
->
cl_boot
=
clp
->
cl_clientid
.
cl_boot
;
...
...
@@ -616,8 +616,7 @@ DECLARE_EVENT_CLASS(nfsd_clid_class,
__entry
->
flavor
=
clp
->
cl_cred
.
cr_flavor
;
memcpy
(
__entry
->
verifier
,
(
void
*
)
&
clp
->
cl_verifier
,
NFS4_VERIFIER_SIZE
);
memcpy
(
__get_str
(
name
),
clp
->
cl_name
.
data
,
clp
->
cl_name
.
len
);
__get_str
(
name
)[
clp
->
cl_name
.
len
]
=
'\0'
;
__assign_str_len
(
name
,
clp
->
cl_name
.
data
,
clp
->
cl_name
.
len
);
),
TP_printk
(
"addr=%pISpc name='%s' verifier=0x%s flavor=%s client=%08x:%08x"
,
__entry
->
addr
,
__get_str
(
name
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment