1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License
//--------------------------------------------------------------------
//
// This program monitors a process and generates core dumps in
// in response to various triggers
//
//--------------------------------------------------------------------
#ifndef UBUNTU_SYSINTERNALS_PROCDUMP_H
#define UBUNTU_SYSINTERNALS_PROCDUMP_H
#include <stdio.h>
#include <getopt.h>
#include <stdbool.h>
#include <stdlib.h>
#include <memory.h>
#include <signal.h>
#include <zconf.h>
#define MIN_CPU 0 // minimum CPU value
#define DEFAULT_NUMBER_OF_DUMPS 1 // default number of core dumps taken
#define DEFAULT_DELTA_TIME 10 // default delta time in seconds between core dumps
#define DEFAULT_SAMPLE_RATE 1 // default sample rate is 1
void termination_handler(int sig_num);
#endif //UBUNTU_SYSINTERNALS_PROCDUMP_H
|