author | mgronlun |
Wed, 30 Oct 2019 19:43:52 +0100 | |
changeset 58863 | c16ac7a2eba4 |
parent 58132 | caa25ab47aca |
permissions | -rw-r--r-- |
50113 | 1 |
/* |
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
50113
diff
changeset
|
2 |
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. |
50113 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
22 |
* |
|
23 |
*/ |
|
24 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
50113
diff
changeset
|
25 |
#ifndef SHARE_JFR_UTILITIES_JFRTYPES_HPP |
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
50113
diff
changeset
|
26 |
#define SHARE_JFR_UTILITIES_JFRTYPES_HPP |
50113 | 27 |
|
28 |
#include "jfrfiles/jfrEventIds.hpp" |
|
58863 | 29 |
#include "utilities/globalDefinitions.hpp" |
50113 | 30 |
|
31 |
typedef u8 traceid; |
|
32 |
typedef int fio_fd; |
|
58863 | 33 |
|
50113 | 34 |
const int invalid_fd = -1; |
35 |
const jlong invalid_offset = -1; |
|
58863 | 36 |
const int64_t invalid_time = -1; |
54603
cb8e16d6ff1e
8219566: JFR did not collect call stacks when MaxJavaStackTraceDepth is set to zero
ysuenaga
parents:
53244
diff
changeset
|
37 |
const u4 STACK_DEPTH_DEFAULT = 64; |
cb8e16d6ff1e
8219566: JFR did not collect call stacks when MaxJavaStackTraceDepth is set to zero
ysuenaga
parents:
53244
diff
changeset
|
38 |
const u4 MIN_STACK_DEPTH = 1; |
cb8e16d6ff1e
8219566: JFR did not collect call stacks when MaxJavaStackTraceDepth is set to zero
ysuenaga
parents:
53244
diff
changeset
|
39 |
const u4 MAX_STACK_DEPTH = 2048; |
50113 | 40 |
|
58132
caa25ab47aca
8225797: OldObjectSample event creates unexpected amount of checkpoint data
mgronlun
parents:
54603
diff
changeset
|
41 |
inline int compare_traceid(const traceid& lhs, const traceid& rhs) { |
caa25ab47aca
8225797: OldObjectSample event creates unexpected amount of checkpoint data
mgronlun
parents:
54603
diff
changeset
|
42 |
return lhs > rhs ? 1 : (lhs < rhs) ? -1 : 0; |
caa25ab47aca
8225797: OldObjectSample event creates unexpected amount of checkpoint data
mgronlun
parents:
54603
diff
changeset
|
43 |
} |
caa25ab47aca
8225797: OldObjectSample event creates unexpected amount of checkpoint data
mgronlun
parents:
54603
diff
changeset
|
44 |
|
caa25ab47aca
8225797: OldObjectSample event creates unexpected amount of checkpoint data
mgronlun
parents:
54603
diff
changeset
|
45 |
inline int sort_traceid(traceid* lhs, traceid* rhs) { |
caa25ab47aca
8225797: OldObjectSample event creates unexpected amount of checkpoint data
mgronlun
parents:
54603
diff
changeset
|
46 |
return compare_traceid(*lhs, *rhs); |
caa25ab47aca
8225797: OldObjectSample event creates unexpected amount of checkpoint data
mgronlun
parents:
54603
diff
changeset
|
47 |
} |
caa25ab47aca
8225797: OldObjectSample event creates unexpected amount of checkpoint data
mgronlun
parents:
54603
diff
changeset
|
48 |
|
50113 | 49 |
enum EventStartTime { |
50 |
UNTIMED, |
|
51 |
TIMED |
|
52 |
}; |
|
53 |
||
58863 | 54 |
enum JfrCheckpointType { |
55 |
GENERIC, |
|
56 |
FLUSH, |
|
57 |
HEADER, |
|
58 |
STATICS = 4, |
|
59 |
THREADS = 8 |
|
60 |
}; |
|
61 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
50113
diff
changeset
|
62 |
#endif // SHARE_JFR_UTILITIES_JFRTYPES_HPP |