瀏覽代碼

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 年之前
父節點
當前提交
1d5f7ede48
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;
 }