Skip to content

Commit

Permalink
Fix regression in nfs stop_trace function, Seems like this code was a…
Browse files Browse the repository at this point in the history
…ccidentally removed. (#181)

The regression was introduced by commit 0bd93be
  • Loading branch information
bharathsm-ms committed Jan 16, 2024
1 parent 52794c6 commit 0758c31
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion NfsDiagnostics/nfsclientlogs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,23 @@ trace_nfsbpf() {
}

stop() {
dmesg -T rm -rf trace.dat*
dmesg -T > "${DIRNAME}/nfs_dmesg"
stop_trace
stop_capture_network

zip -r "$(basename ${DIRNAME}).zip" "${DIRNAME}"
return 0;
}

stop_trace() {
trace-cmd extract
sleep 1
trace-cmd report > "${DIRNAME}/nfs_trace"
trace-cmd stop
trace-cmd reset
rpcdebug -m rpc -c all
rpcdebug -m nfs -c all
rm -rf trace.dat*
}

stop_capture_network() {
Expand Down

0 comments on commit 0758c31

Please sign in to comment.