Quellcode durchsuchen

qcacmn: QDF wrapper to remove minidump entries

As part of minidump support, add QDF wrapper to remove
previously added entries.

Change-Id: Iae5ed874d6dbd2f6701f174b54d839fb0a13989c
Karunakar Dasineni vor 5 Jahren
Ursprung
Commit
af64fd1868
2 geänderte Dateien mit 18 neuen und 0 gelöschten Zeilen
  1. 10 0
      qdf/inc/qdf_trace.h
  2. 8 0
      qdf/linux/src/i_qdf_trace.h

+ 10 - 0
qdf/inc/qdf_trace.h

@@ -1386,4 +1386,14 @@ void qdf_minidump_log(void *start_addr, size_t size, const char *name)
 	__qdf_minidump_log(start_addr, size, name);
 }
 
+/**
+ * qdf_minidump_remove() - Remove memory address from minidump
+ * @addr: Start address of the memory previously added
+ */
+static inline
+void qdf_minidump_remove(void *addr)
+{
+	__qdf_minidump_remove(addr);
+}
+
 #endif /* __QDF_TRACE_H */

+ 8 - 0
qdf/linux/src/i_qdf_trace.h

@@ -350,8 +350,16 @@ __qdf_minidump_log(void *start_addr, size_t size, const char *name)
 			"%s: failed to log %pK (%s)\n",
 			__func__, start_addr, name);
 }
+
+static inline void
+__qdf_minidump_remove(void *addr)
+{
+	remove_minidump_segments((uintptr_t)addr);
+}
 #else
 static inline void
 __qdf_minidump_log(void *start_addr, size_t size, const char *name) {}
+static inline void
+__qdf_minidump_remove(void *addr) {}
 #endif
 #endif /* __I_QDF_TRACE_H */