Browse Source

qcacmn: Flush memory table on debugfs iterator stop

When printing memory allocations via debugfs, the dedupe table is
flushed to output when it reaches capacity. If the dedupe table is not
full when the allocation enumeration is complete, the entries contained
will be dropped. Flush the dedupe table to output one last time when
enumeration is complete to avoid dropping memory allocations from the
output.

Change-Id: I10f866b7bfa13c871d75e3e4ff798a8a820482df
CRs-Fixed: 2110106
Dustin Brown 7 years ago
parent
commit
1d5f7ede48
1 changed files with 1 additions and 0 deletions
  1. 1 0
      qdf/linux/src/qdf_mem.c

+ 1 - 0
qdf/linux/src/qdf_mem.c

@@ -395,6 +395,7 @@ static void *qdf_mem_seq_next(struct seq_file *seq, void *v, loff_t *pos)
  */
 static void qdf_mem_seq_stop(struct seq_file *seq, void *v)
 {
+	qdf_mem_seq_print(seq);
 	seq->private = v;
 }