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