Skip to content

Commit

Permalink
Disable socket counters if DEBUG is disabled: it's internal staticstics
Browse files Browse the repository at this point in the history
  • Loading branch information
vankoven committed Sep 15, 2020
1 parent 7a8123e commit 57aa2ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tempesta_fw/procfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ tfw_perfstat_seq_show(struct seq_file *seq, void *off)
seq_printf(seq, "SS backlog's sizes\t\t\t: n/a\n");
}

#ifdef DEBUG
/* Socket buffers kernel statistics. */
seq_printf(seq, "Socket buffers in flight\t\t: %ld\n",
__get_skb_count());
#endif /* DEBUG */

/* Cache statistics. */
SPRN("Cache hits\t\t\t\t", cache.hits);
Expand Down

0 comments on commit 57aa2ed

Please sign in to comment.