satyr  0.28
/builddir/build/BUILD/satyr-0.28/include/koops/frame.h

Timestamp may be present in the oops lines.

[123456.654321] [ 65.470000]

/*
koops_frame.h
Copyright (C) 2012 ABRT Team
Copyright (C) 2012 Red Hat, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef SATYR_KOOPS_FRAME_H
#define SATYR_KOOPS_FRAME_H
#ifdef __cplusplus
extern "C" {
#endif
#include "../report_type.h"
#include <stdbool.h>
#include <stdint.h>
struct sr_strbuf;
{
enum sr_report_type type;
uint64_t address;
bool reliable;
uint64_t function_offset;
uint64_t function_length;
char *module_name;
uint64_t from_address;
uint64_t from_function_offset;
uint64_t from_function_length;
/* XXX: we should probably have each stack as a separate thread ... in
* uReport3 ? */
struct sr_koops_frame *next;
};
void
void
bool siblings);
int
struct sr_koops_frame *frame2);
int
struct sr_koops_frame *frame2);
struct sr_koops_frame *item);
sr_koops_frame_prepend(struct sr_koops_frame *dest,
struct sr_koops_frame *item);
sr_koops_frame_parse(const char **input);
bool
sr_koops_skip_timestamp(const char **input);
bool
sr_koops_parse_address(const char **input, uint64_t *address);
bool
sr_koops_parse_module_name(const char **input,
char **module_name);
bool
sr_koops_parse_function(const char **input,
char **function_name,
uint64_t *function_offset,
uint64_t *function_length,
char **module_name);
char *
sr_koops_frame_from_json(struct sr_json_value *root, char **error_message);
void
struct sr_strbuf *dest);
#ifdef __cplusplus
}
#endif
#endif