Home
last modified time | relevance | path

Searched refs:new_stat (Results 1 – 2 of 2) sorted by relevance

/linux-4.1.27/net/core/
Ddrop_monitor.c192 struct dm_hw_stat_delta *new_stat; in trace_napi_poll_hit() local
201 list_for_each_entry_rcu(new_stat, &hw_stats_list, list) { in trace_napi_poll_hit()
208 if ((new_stat->dev == napi->dev) && in trace_napi_poll_hit()
209 (time_after(jiffies, new_stat->last_rx + dm_hw_check_delta)) && in trace_napi_poll_hit()
210 (napi->dev->stats.rx_dropped != new_stat->last_drop_val)) { in trace_napi_poll_hit()
212 new_stat->last_drop_val = napi->dev->stats.rx_dropped; in trace_napi_poll_hit()
213 new_stat->last_rx = jiffies; in trace_napi_poll_hit()
223 struct dm_hw_stat_delta *new_stat = NULL; in set_all_monitor_traces() local
253 list_for_each_entry_safe(new_stat, temp, &hw_stats_list, list) { in set_all_monitor_traces()
254 if (new_stat->dev == NULL) { in set_all_monitor_traces()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dlprocfs_status.c1662 struct nid_stat *new_stat, *old_stat; in lprocfs_exp_setup() local
1684 OBD_ALLOC_PTR(new_stat); in lprocfs_exp_setup()
1685 if (new_stat == NULL) in lprocfs_exp_setup()
1688 new_stat->nid = *nid; in lprocfs_exp_setup()
1689 new_stat->nid_obd = exp->exp_obd; in lprocfs_exp_setup()
1691 atomic_set(&new_stat->nid_exp_ref_count, 1); in lprocfs_exp_setup()
1694 nid, &new_stat->nid_hash); in lprocfs_exp_setup()
1697 atomic_read(&new_stat->nid_exp_ref_count)); in lprocfs_exp_setup()
1708 if (old_stat != new_stat) { in lprocfs_exp_setup()
1721 new_stat->nid_proc = lprocfs_register(buffer, in lprocfs_exp_setup()
[all …]