File: Procdump.h

package info (click to toggle)
procdump 3.4.1-1~exp4
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 15,276 kB
  • sloc: ansic: 202,443; cpp: 51,275; sh: 1,618; cs: 76; makefile: 12
file content (29 lines) | stat: -rw-r--r-- 958 bytes parent folder | download
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