|
Packit Service |
b3514a |
/*
|
|
Packit Service |
b3514a |
* Copyright (c) 2020 Red Hat, Inc.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* This program is free software; you can redistribute it and/or
|
|
Packit Service |
b3514a |
* modify it under the terms of the GNU General Public License
|
|
Packit Service |
b3514a |
* as published by the Free Software Foundation; either version 2
|
|
Packit Service |
b3514a |
* of the License, or (at your option) any later version.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* This program is distributed in the hope that it will be useful,
|
|
Packit Service |
b3514a |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
b3514a |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
b3514a |
* GNU General Public License for more details.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* You should have received a copy of the GNU General Public License
|
|
Packit Service |
b3514a |
* along with this program; if not, write to the Free Software
|
|
Packit Service |
b3514a |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
Packit Service |
b3514a |
* 02110-1301, USA.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* $Id: //eng/vdo-releases/aluminum/src/c++/vdo/kernel/dump.h#1 $
|
|
Packit Service |
b3514a |
*/
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
#ifndef DUMP_H
|
|
Packit Service |
b3514a |
#define DUMP_H
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
#include "kernelLayer.h"
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Dump internal state and/or statistics to the kernel log, as
|
|
Packit Service |
b3514a |
* specified by zero or more string arguments.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param layer The kernel layer
|
|
Packit Service |
b3514a |
* @param argc Number of arguments
|
|
Packit Service |
b3514a |
* @param argv The argument list
|
|
Packit Service |
b3514a |
* @param why Reason for doing the dump
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
int vdoDump(KernelLayer *layer,
|
|
Packit Service |
b3514a |
unsigned int argc,
|
|
Packit Service |
b3514a |
char * const *argv,
|
|
Packit Service |
b3514a |
const char *why);
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Dump lots of internal state and statistics to the kernel log.
|
|
Packit Service |
b3514a |
* Identical to "dump all", without each caller needing to set up the
|
|
Packit Service |
b3514a |
* argument list.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param layer The kernel layer
|
|
Packit Service |
b3514a |
* @param why Reason for doing the dump
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
void vdoDumpAll(KernelLayer *layer, const char *why);
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
#endif // DUMP_H
|