Hi, Andrea, thanks for your prompt response.
I tried to build kernel sources applied your patch, and it failed with an error.
/home/np/linux-4.15/zfs/include/sys/trace_dmu.h:65:33: error: ‘dmu_tx_t {aka struct dmu_tx}’ has no member named ‘waited’; did you mean ‘tx_waited’?
__entry->tx_waited = tx->waited;
According to the error message, the following diff caused the problem.
Hi, Andrea, thanks for your prompt response.
I tried to build kernel sources applied your patch, and it failed with an error.
/home/np/ linux-4. 15/zfs/ include/ sys/trace_ dmu.h:65: 33: error: ‘dmu_tx_t {aka struct dmu_tx}’ has no member named ‘waited’; did you mean ‘tx_waited’? _entry- >tx_waited = tx->waited;
_
According to the error message, the following diff caused the problem.
@@ -62,7 +62,7 @@ DECLARE_ EVENT_CLASS( zfs_delay_ mintime_ class, _entry- >tx_lastsnap_ txg = tx->tx_ lastsnap_ txg; _entry- >tx_lasttried_ txg = tx->tx_ lasttried_ txg; _entry- >tx_anyobj = tx->tx_anyobj; >tx_dirty_ delayed = tx->tx_ dirty_delayed;
_
_
_
- __entry-
+ __entry->tx_waited = tx->waited;
I think we should assign '__entry- >tx_waited' as 'tx->tx_waited', not 'tx->waited'.