Lines Matching defs:stat
2555 static void trie_show_stats(struct seq_file *seq, struct trie_stat *stat)
2559 if (stat->leaves)
2560 avdepth = stat->totdepth*100 / stat->leaves;
2566 seq_printf(seq, "\tMax depth: %u\n", stat->maxdepth);
2568 seq_printf(seq, "\tLeaves: %u\n", stat->leaves);
2569 bytes = LEAF_SIZE * stat->leaves;
2571 seq_printf(seq, "\tPrefixes: %u\n", stat->prefixes);
2572 bytes += sizeof(struct fib_alias) * stat->prefixes;
2574 seq_printf(seq, "\tInternal nodes: %u\n\t", stat->tnodes);
2575 bytes += TNODE_SIZE(0) * stat->tnodes;
2578 while (max > 0 && stat->nodesizes[max-1] == 0)
2583 if (stat->nodesizes[i] != 0) {
2584 seq_printf(seq, " %u: %u", i, stat->nodesizes[i]);
2585 pointers += (1<<i) * stat->nodesizes[i];
2591 seq_printf(seq, "Null ptrs: %u\n", stat->nullpointers);
2653 struct trie_stat stat;
2660 trie_collect_stats(t, &stat);
2661 trie_show_stats(seq, &stat);