Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(689)

Unified Diff: kernel_collector.h

Issue 4018008: crash-reporter: Generate kernel crash signatures for server-side grouping of similar crashes (Closed) Base URL: http://git.chromium.org/git/crash-reporter.git
Patch Set: Respond to petkov review Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crash_sender ('k') | kernel_collector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: kernel_collector.h
diff --git a/kernel_collector.h b/kernel_collector.h
index e6cd573926231c62a9e8e2887c4bfaac37a83492..708fd1b9ee7641c3b0de62f2a8c9dd0f0e996758 100644
--- a/kernel_collector.h
+++ b/kernel_collector.h
@@ -5,6 +5,8 @@
#ifndef _CRASH_REPORTER_KERNEL_COLLECTOR_H_
#define _CRASH_REPORTER_KERNEL_COLLECTOR_H_
+#include <pcrecpp.h>
+
#include <string>
#include "base/file_path.h"
@@ -34,6 +36,11 @@ class KernelCollector : public CrashCollector {
// a dump (even if there were problems storing the dump), false otherwise.
bool Collect();
+ // Compute a stack signature string from a kernel dump.
+ bool ComputeKernelStackSignature(const std::string &kernel_dump,
+ std::string *kernel_signature,
+ bool print_diagnostics);
+
private:
friend class KernelCollectorTest;
FRIEND_TEST(KernelCollectorTest, ClearPreservedDump);
@@ -43,6 +50,18 @@ class KernelCollector : public CrashCollector {
bool LoadPreservedDump(std::string *contents);
bool ClearPreservedDump();
+ void ProcessStackTrace(pcrecpp::StringPiece kernel_dump,
+ bool print_diagnostics,
+ unsigned *hash,
+ float *last_stack_timestamp);
+ bool FindCrashingFunction(pcrecpp::StringPiece kernel_dump,
+ bool print_diagnostics,
+ float stack_trace_timestamp,
+ std::string *crashing_function);
+ bool FindPanicMessage(pcrecpp::StringPiece kernel_dump,
+ bool print_diagnostics,
+ std::string *panic_message);
+
bool is_enabled_;
FilePath preserved_dump_path_;
static const char kClearingSequence[];
« no previous file with comments | « crash_sender ('k') | kernel_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698