The Gaudi Framework
v36r11 (bdb84f5f)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
c
d
e
f
i
l
m
n
o
p
r
s
t
Enumerator
a
b
c
d
e
f
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Properties
Related Functions
:
a
b
c
d
e
g
h
i
m
o
p
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
_
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
u
z
Variables
a
b
c
d
e
g
h
i
m
o
p
r
s
t
v
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Enumerations
Enumerator
c
e
f
p
u
v
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
local_callgrind.h
Go to the documentation of this file.
1
2
/*
3
----------------------------------------------------------------
4
5
Notice that the following BSD-style license applies to this one
6
file (callgrind.h) only. The rest of Valgrind is licensed under the
7
terms of the GNU General Public License, version 2, unless
8
otherwise indicated. See the COPYING file in the source
9
distribution for details.
10
11
----------------------------------------------------------------
12
13
This file is part of callgrind, a valgrind tool for cache simulation
14
and call tree tracing.
15
16
Copyright (C) 2003-2013 Josef Weidendorfer. All rights reserved.
17
18
Redistribution and use in source and binary forms, with or without
19
modification, are permitted provided that the following conditions
20
are met:
21
22
1. Redistributions of source code must retain the above copyright
23
notice, this list of conditions and the following disclaimer.
24
25
2. The origin of this software must not be misrepresented; you must
26
not claim that you wrote the original software. If you use this
27
software in a product, an acknowledgment in the product
28
documentation would be appreciated but is not required.
29
30
3. Altered source versions must be plainly marked as such, and must
31
not be misrepresented as being the original software.
32
33
4. The name of the author may not be used to endorse or promote
34
products derived from this software without specific prior written
35
permission.
36
37
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
38
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
39
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
40
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
41
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
42
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
43
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
44
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
45
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
46
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
47
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
48
49
----------------------------------------------------------------
50
51
Notice that the above BSD-style license applies to this one file
52
(callgrind.h) only. The entire rest of Valgrind is licensed under
53
the terms of the GNU General Public License, version 2. See the
54
COPYING file in the source distribution for details.
55
56
----------------------------------------------------------------
57
*/
58
59
#ifndef __CALLGRIND_H
60
#define __CALLGRIND_H
61
62
#include "
local_valgrind.h
"
63
64
/* !! ABIWARNING !! ABIWARNING !! ABIWARNING !! ABIWARNING !!
65
This enum comprises an ABI exported by Valgrind to programs
66
which use client requests. DO NOT CHANGE THE ORDER OF THESE
67
ENTRIES, NOR DELETE ANY -- add new ones at the end.
68
69
The identification ('C','T') for Callgrind has historical
70
reasons: it was called "Calltree" before. Besides, ('C','G') would
71
clash with cachegrind.
72
*/
73
74
typedef
enum
{
75
VG_USERREQ__DUMP_STATS
=
VG_USERREQ_TOOL_BASE
(
'C'
,
'T'
),
76
VG_USERREQ__ZERO_STATS
,
77
VG_USERREQ__TOGGLE_COLLECT
,
78
VG_USERREQ__DUMP_STATS_AT
,
79
VG_USERREQ__START_INSTRUMENTATION
,
80
VG_USERREQ__STOP_INSTRUMENTATION
81
}
Vg_CallgrindClientRequest
;
82
83
/* Dump current state of cost centers, and zero them afterwards */
84
#define CALLGRIND_DUMP_STATS VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__DUMP_STATS, 0, 0, 0, 0, 0 )
85
86
/* Dump current state of cost centers, and zero them afterwards.
87
The argument is appended to a string stating the reason which triggered
88
the dump. This string is written as a description field into the
89
profile data dump. */
90
#define CALLGRIND_DUMP_STATS_AT( pos_str ) \
91
VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__DUMP_STATS_AT, pos_str, 0, 0, 0, 0 )
92
93
/* Zero cost centers */
94
#define CALLGRIND_ZERO_STATS VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__ZERO_STATS, 0, 0, 0, 0, 0 )
95
96
/* Toggles collection state.
97
The collection state specifies whether the happening of events
98
should be noted or if they are to be ignored. Events are noted
99
by increment of counters in a cost center */
100
#define CALLGRIND_TOGGLE_COLLECT VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__TOGGLE_COLLECT, 0, 0, 0, 0, 0 )
101
102
/* Start full callgrind instrumentation if not already switched on.
103
When cache simulation is done, it will flush the simulated cache;
104
this will lead to an artifical cache warmup phase afterwards with
105
cache misses which would not have happened in reality. */
106
#define CALLGRIND_START_INSTRUMENTATION \
107
VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__START_INSTRUMENTATION, 0, 0, 0, 0, 0 )
108
109
/* Stop full callgrind instrumentation if not already switched off.
110
This flushes Valgrinds translation cache, and does no additional
111
instrumentation afterwards, which effectivly will run at the same
112
speed as the "none" tool (ie. at minimal slowdown).
113
Use this to bypass Callgrind aggregation for uninteresting code parts.
114
To start Callgrind in this mode to ignore the setup phase, use
115
the option "--instr-atstart=no". */
116
#define CALLGRIND_STOP_INSTRUMENTATION \
117
VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__STOP_INSTRUMENTATION, 0, 0, 0, 0, 0 )
118
119
#endif
/* __CALLGRIND_H */
VG_USERREQ__TOGGLE_COLLECT
@ VG_USERREQ__TOGGLE_COLLECT
Definition:
local_callgrind.h:77
VG_USERREQ__DUMP_STATS_AT
@ VG_USERREQ__DUMP_STATS_AT
Definition:
local_callgrind.h:78
VG_USERREQ__DUMP_STATS
@ VG_USERREQ__DUMP_STATS
Definition:
local_callgrind.h:75
local_valgrind.h
VG_USERREQ__START_INSTRUMENTATION
@ VG_USERREQ__START_INSTRUMENTATION
Definition:
local_callgrind.h:79
Vg_CallgrindClientRequest
Vg_CallgrindClientRequest
Definition:
local_callgrind.h:74
VG_USERREQ__ZERO_STATS
@ VG_USERREQ__ZERO_STATS
Definition:
local_callgrind.h:76
VG_USERREQ__STOP_INSTRUMENTATION
@ VG_USERREQ__STOP_INSTRUMENTATION
Definition:
local_callgrind.h:80
VG_USERREQ_TOOL_BASE
#define VG_USERREQ_TOOL_BASE(a, b)
Definition:
local_valgrind.h:4277
GaudiProfiling
src
component
valgrind
local_callgrind.h
Generated on Mon Feb 27 2023 19:04:42 for The Gaudi Framework by
1.8.18