OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_1_x/] [or1ksim/] [mprofiler.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 632 ivang
/* mprofiler.c -- memory profiling utility
2
   Copyright (C) 2002 Marko Mlinar, markom@opencores.org
3
 
4
This file is part of OpenRISC 1000 Architectural Simulator.
5
 
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
10
 
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
GNU General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
 
20
/* Command line utility, that displays profiling information, generated
21
   by or1ksim. (use --mprofile option at command line, when running or1ksim.  */
22
 
23
#ifndef __MPROFILER_H
24
#define __MPROFILER_H
25
 
26
/* output modes */
27
#define MODE_DETAIL     0
28
#define MODE_PRETTY     1
29
#define MODE_ACCESS     2
30
#define MODE_WIDTH      3
31
 
32
/* Input buffer size */
33 879 markom
#define BUF_SIZE        256
34 632 ivang
 
35
/* HASH */
36
#define HASH_SIZE       0x10000
37
#define HASH_FUNC(x)    ((x) & 0xffff)
38
 
39 847 markom
int main_mprofiler (int argc, char *argv[]);
40 1308 phoenix
void mp_help();
41 632 ivang
 
42
#endif /* not __MPROFILER_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.