|
satyr 0.43
|
Kernel oops stack trace structure and related algorithms. More...
#include "../report_type.h"#include <stdbool.h>#include <inttypes.h>#include <json.h>#include <stddef.h>Go to the source code of this file.
Data Structures | |
| struct | sr_koops_stacktrace |
Functions | |
| struct sr_koops_stacktrace * | sr_koops_stacktrace_new (void) |
| void | sr_koops_stacktrace_init (struct sr_koops_stacktrace *stacktrace) |
| void | sr_koops_stacktrace_free (struct sr_koops_stacktrace *stacktrace) |
| struct sr_koops_stacktrace * | sr_koops_stacktrace_dup (struct sr_koops_stacktrace *stacktrace) |
| bool | sr_koops_stacktrace_remove_frame (struct sr_koops_stacktrace *stacktrace, struct sr_koops_frame *frame) |
| struct sr_koops_stacktrace * | sr_koops_stacktrace_parse (const char **input, struct sr_location *location) |
| char ** | sr_koops_stacktrace_parse_modules (const char **input) |
| char * | sr_koops_stacktrace_get_reason (struct sr_koops_stacktrace *stacktrace) |
| char * | sr_koops_stacktrace_to_json (struct sr_koops_stacktrace *stacktrace) |
| struct sr_koops_stacktrace * | sr_koops_stacktrace_from_json (json_object *root, char **error_message) |
| void | sr_normalize_koops_stacktrace (struct sr_koops_stacktrace *stacktrace) |
Kernel oops stack trace structure and related algorithms.
Definition in file koops/stacktrace.h.
| struct sr_koops_stacktrace * sr_koops_stacktrace_dup | ( | struct sr_koops_stacktrace * | stacktrace | ) |
Creates a duplicate of a stacktrace.
| stacktrace | The stacktrace to be copied. It's not modified by this function. |
| void sr_koops_stacktrace_free | ( | struct sr_koops_stacktrace * | stacktrace | ) |
Releases the memory held by the stacktrace.
| stacktrace | If the stacktrace is NULL, no operation is performed. |
| struct sr_koops_stacktrace * sr_koops_stacktrace_from_json | ( | json_object * | root, |
| char ** | error_message ) |
Deserializes stacktrace from JSON representation.
| root | JSON value to be deserialized. |
| error_message | On error, *error_message will contain the description of the error. |
| char * sr_koops_stacktrace_get_reason | ( | struct sr_koops_stacktrace * | stacktrace | ) |
Returns brief, human-readable explanation of the stacktrace.
| void sr_koops_stacktrace_init | ( | struct sr_koops_stacktrace * | stacktrace | ) |
Initializes all members of the stacktrace structure to their default values. No memory is released, members are simply overwritten. This is useful for initializing a stacktrace structure placed on the stack.
| struct sr_koops_stacktrace * sr_koops_stacktrace_new | ( | void | ) |
Creates and initializes a new stack trace structure.
| struct sr_koops_stacktrace * sr_koops_stacktrace_parse | ( | const char ** | input, |
| struct sr_location * | location ) |
Parses a textual kernel oops and puts it into a structure. If parsing fails, the input parameter is not changed and NULL is returned.
| input | Pointer to the string with the kernel oops. If this function returns a non-NULL value, the input pointer is modified to point after the stacktrace that was just parsed. |
| bool sr_koops_stacktrace_remove_frame | ( | struct sr_koops_stacktrace * | stacktrace, |
| struct sr_koops_frame * | frame ) |
Removes the frame from the stack trace and then deletes it.
| char * sr_koops_stacktrace_to_json | ( | struct sr_koops_stacktrace * | stacktrace | ) |
Serializes stacktrace to string.