aboutsummaryrefslogtreecommitdiff
path: root/libgloss/i386/cygmon-gmon.h
blob: f35ae332d7f23e164215ada43853dd0613011c75 (plain)
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
30
31
32
33
34
35
#ifndef GMON_CYGMON_H
#define GMON_CYGMON_H

struct phdr 
{
  char    *lpc;
  char    *hpc;
  int     ncnt;
};


#define HISTFRACTION 2
#define HISTCOUNTER unsigned short
#define HASHFRACTION 1
#define ARCDENSITY 2
#define MINARCS 50

struct tostruct 
{
  char *selfpc;
  long count;
  unsigned short link;
};

struct rawarc 
{
    unsigned long       raw_frompc;
    unsigned long       raw_selfpc;
    long                raw_count;
};

#define ROUNDDOWN(x,y)  (((x)/(y))*(y))
#define ROUNDUP(x,y)    ((((x)+(y)-1)/(y))*(y))

#endif