|
|
1.1 root 1: /* (-lgl
2: * COHERENT Version 4.0
3: * Copyright (c) 1982, 1992 by Mark Williams Company.
4: * All rights reserved. May not be copied without permission.
5: -lgl) */
6: /*
7: * oldmon.h
8: * Program profiling (monitor) header.
9: * COH286.
10: *
11: * A call to monitor() creates a mon.out file structured as follows:
12: * header struct m_hdr
13: * function count array struct m_func[m_nfuncs]
14: * profil buffer short[m_nbins]
15: * The profil data scales the pc as follows:
16: * bin number = (pc - low pc) * (scale/2) / (1<<16)
17: */
18:
19: #ifndef _OLDMON_H
20: #define _OLDMON_H
21:
22: typedef unsigned short old_vaddr_t; /* COH286 vaddr_t */
23:
24: struct old_m_hdr {
25: unsigned short m_nbins; /* number of bins */
26: unsigned short m_scale; /* scale factor */
27: unsigned short m_nfuncs; /* number of function counts */
28: old_vaddr_t m_lowpc; /* lowest pc to monitor */
29: old_vaddr_t m_lowsp; /* lowest sp in scount */
30: old_vaddr_t m_hisp; /* highest sp in scount */
31: };
32:
33: #pragma align 2
34: struct old_m_func {
35: old_vaddr_t m_addr; /* address in function */
36: long m_ncalls; /* number of times function called */
37: };
38: #pragma align
39:
40: #endif
41:
42: /* end of oldmon.h */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.