satyr  0.24.15.g3735.dirty
fingerprint.h
Go to the documentation of this file.
1 /*
2  core_fingerprint.h
3 
4  Copyright (C) 2012 Red Hat, Inc.
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20 #ifndef SATYR_CORE_FINGERPRINT_H
21 #define SATYR_CORE_FINGERPRINT_H
22 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 #include <stdbool.h>
33 
34 struct sr_core_stacktrace;
35 struct sr_core_thread;
36 
37 bool
38 sr_core_fingerprint_generate(struct sr_core_stacktrace *stacktrace,
39  char **error_message);
40 
41 bool
42 sr_core_fingerprint_generate_for_binary(struct sr_core_thread *thread,
43  const char *binary_path,
44  char **error_message);
45 
46 void
47 sr_core_fingerprint_hash(struct sr_core_stacktrace *stacktrace);
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif // SATYR_CORE_FINGERPRINT_H
A stack trace of a core dump.
A thread of execution on call stack of a core dump.
Definition: core/thread.h:44