소스 검색

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;
 }