/* Throughput stats. * Must be initialized beforehand with gnet_stats_basic_sync_init(). * * If no reads can ever occur parallel to writes (e.g. stack-allocated * bstats), then the internal stat values can be written to and read * from directly. Otherwise, use _bstats_set/update() for writes and * gnet_stats_add_basic() for reads.
*/ struct gnet_stats_basic_sync {
u64_stats_t bytes;
u64_stats_t packets; struct u64_stats_sync syncp;
} __aligned(2 * sizeof(u64));
/* Backward compatibility */ int compat_tc_stats; int compat_xstats; int padattr; void * xstats; int xstats_len; struct tc_stats tc_stats;
};
void gnet_stats_basic_sync_init(struct gnet_stats_basic_sync *b); int gnet_stats_start_copy(struct sk_buff *skb, int type, spinlock_t *lock, struct gnet_dump *d, int padattr);
int gnet_stats_start_copy_compat(struct sk_buff *skb, int type, int tc_stats_type, int xstats_type,
spinlock_t *lock, struct gnet_dump *d, int padattr);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.