File: Procdump.h

package info (click to toggle)
procdump 2.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,900 kB
  • sloc: cpp: 42,512; ansic: 4,610; sh: 1,447; makefile: 107; cs: 76
file content (28 lines) | stat: -rw-r--r-- 886 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
// 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

void termination_handler(int sig_num);

#endif //UBUNTU_SYSINTERNALS_PROCDUMP_H