hndl.qword1 = tx->tx_map_key.qword1;
hndl.qword2 = tx->tx_map_key.qword2;
- seq_printf(s, "%p %x %16llu %8d %#8x %#llx.%#llxx\n",
+ seq_printf(s, "%pK %x %16llu %8d %#8x %#llx.%#llxx\n",
tx, id, nob, physnop, buftype,
hndl.qword1, hndl.qword2);
read_unlock(&kgnilnd_data.kgn_peer_conn_lock);
- seq_printf(s, "%p->%s [%d] q %d/%d/%d "
+ seq_printf(s, "%pK->%s [%d] q %d/%d/%d "
"tx sq %u %dms/%dms "
"rx sq %u %dms/%dms "
"noop r/s %d/%d w/s/cq %lds/%lds/%lds "
list_for_each_entry(conn, &peer->gnp_conns, gnc_list) {
seq_printf(sf,
- "%04ld-%02d-%02dT%02d:%02d:%02d.%06ld %s "
- "mbox adr %p "
- "dg type %s "
- "%s "
- "purg %d "
- "close s/r %d/%d "
- "err %d peer err %d "
- "tx sq %u %dms/%dms "
- "rx sq %u %dms/%dms/%dms "
- "tx retran %lld\n",
+ "%04ld-%02d-%02dT%02d:%02d:%02d.%06ld %s mbox adr %pK dg type %s %s purg %d close s/r %d/%d err %d peer err %d tx sq %u %dms/%dms rx sq %u %dms/%dms/%dms tx retran %lld\n",
ctm.tm_year+1900, ctm.tm_mon+1, ctm.tm_mday,
ctm.tm_hour, ctm.tm_min, ctm.tm_sec, now.tv_nsec,
libcfs_nid2str(peer->gnp_nid),
read_unlock(&kgnilnd_data.kgn_peer_conn_lock);
- seq_printf(s, "%p->%s [%d] %s NIC 0x%x q %d conn %c purg %d last %d@%lldms dgram %d@%dms reconn %dms to %lus \n",
+ seq_printf(s, "%pK->%s [%d] %s NIC 0x%x q %d conn %c purg %d last %d@%lldms dgram %d@%dms reconn %dms to %lus\n",
peer, libcfs_nid2str(peer->gnp_nid),
atomic_read(&peer->gnp_refcount),
(peer->gnp_state == GNILND_PEER_DOWN) ? "down" :
local zfs_debug_log=$TESTLOG_PREFIX.$TESTNAME.zfs_log
local SAVE_UMASK=$(umask)
local rc=0
+ local node
+ declare -A kptr_restrict
umask 0022
+ for node in $(all_nodes); do
+ kptr_restrict[$node]=$(do_node $node "sysctl --values kernel/kptr_restrict")
+ do_node $node "sysctl -wq kernel/kptr_restrict=1"
+ done
+
rm -f $LOGDIR/err $LOGDIR/ignore $LOGDIR/skip
echo
# if $ONLY is set, repeat subtest $ONLY_REPEAT times, otherwise once
[[ $rc != 0 || "$TEST_STATUS" != "PASS" ]] && break
done
+ for node in $(all_nodes); do
+ do_node $node "sysctl -wq kernel/kptr_restrict=${kptr_restrict[$node]}"
+ done
+
if [[ "$TEST_STATUS" != "SKIP" && -f $TF_SKIP ]]; then
rm -f $TF_SKIP
fi