Blame va_server.h

Packit Service 501009
/* va_server.h - kernel crash dump file translation library
Packit Service 501009
 *
Packit Service 501009
 * Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc.
Packit Service 501009
 * Copyright (C) 2002, 2003, 2004, 2005 David Anderson
Packit Service 501009
 * Copyright (C) 2002, 2003, 2004, 2005 Red Hat, Inc. All rights reserved.
Packit Service 501009
 *
Packit Service 501009
 * This program is free software; you can redistribute it and/or modify
Packit Service 501009
 * it under the terms of the GNU General Public License as published by
Packit Service 501009
 * the Free Software Foundation; either version 2 of the License, or
Packit Service 501009
 * (at your option) any later version.
Packit Service 501009
 *
Packit Service 501009
 * This program is distributed in the hope that it will be useful,
Packit Service 501009
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 501009
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 501009
 * GNU General Public License for more details.
Packit Service 501009
 *
Packit Service 501009
 * 10/99, Dave Winchell, Initial release for kernel crash dump support.
Packit Service 501009
 * 11/12/99, Dave Winchell, Add support for in memory dumps.
Packit Service 501009
 */
Packit Service 501009
Packit Service 501009
#include "vas_crash.h"
Packit Service 501009
Packit Service 501009
extern int vas_page_size;
Packit Service 501009
extern u_long vas_base_va;
Packit Service 501009
Packit Service 501009
int va_server_init(char *crash_file, u_long *start, u_long *end, u_long *stride);
Packit Service 501009
int va_server_init_v1(char *crash_file, u_long *start, u_long *end, u_long *stride);
Packit Service 501009
int vas_lseek(u_long position, int whence);
Packit Service 501009
int vas_lseek_v1(u_long position, int whence);
Packit Service 501009
size_t vas_read(void *buf_in, size_t count);
Packit Service 501009
size_t vas_read_v1(void *buf_in, size_t count);
Packit Service 501009
size_t vas_write(void *buf_in, size_t count);
Packit Service 501009
size_t vas_write_v1(void *buf_in, size_t count);
Packit Service 501009
void vas_free_data(u_long va);
Packit Service 501009
void vas_free_data_v1(u_long va);
Packit Service 501009
Packit Service 501009
Packit Service 501009
/* in-memory formats */
Packit Service 501009
Packit Service 501009
struct map_hdr {
Packit Service 501009
     struct crash_map_entry *map;   /* array of map entries */
Packit Service 501009
     int blk_size;                  /* blocksize for this map */
Packit Service 501009
};
Packit Service 501009
Packit Service 501009
Packit Service 501009
Packit Service 501009
struct map_hdr_v1 {
Packit Service 501009
     u_long start_va;
Packit Service 501009
     u_long end_va;
Packit Service 501009
Packit Service 501009
     struct crash_map_entry_v1 *map;   /* array of map entries */
Packit Service 501009
     int map_entries;               /* entries in array pointed to by map */
Packit Service 501009
     u_long va_per_entry;           /* va covered by each map_entry */
Packit Service 501009
     int blk_offset;                /* add this to start_blk in map_entry
Packit Service 501009
			             * this allows relocation of compressed data
Packit Service 501009
				     * while using original maps
Packit Service 501009
				     */
Packit Service 501009
     int blk_size;                  /* blocksize for this map */
Packit Service 501009
Packit Service 501009
     struct map_hdr_v1 *next;
Packit Service 501009
};
Packit Service 501009
Packit Service 501009
extern int clean_exit(int);
Packit Service 501009
Packit Service 501009
Packit Service 501009
Packit Service 501009