author | mgronlun |
Mon, 02 Sep 2019 19:42:46 +0200 | |
branch | JEP-349-branch |
changeset 57983 | a57907813a83 |
parent 57887 | a9cc3698a55c |
child 58157 | 9dca61a7df19 |
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" |
|
29 |
||
30 |
typedef u8 traceid; |
|
31 |
typedef int fio_fd; |
|
57887 | 32 |
|
33 |
const char* const MAGIC = "FLR"; |
|
34 |
const u2 JFR_VERSION_MAJOR = 2; |
|
35 |
const u2 JFR_VERSION_MINOR = 0; |
|
36 |
const u1 COMPLETE = 0; |
|
37 |
const u1 GUARD = 0xff; |
|
38 |
const u1 PAD = 0; |
|
39 |
||
50113 | 40 |
const int invalid_fd = -1; |
41 |
const jlong invalid_offset = -1; |
|
57360 | 42 |
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
|
43 |
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
|
44 |
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
|
45 |
const u4 MAX_STACK_DEPTH = 2048; |
50113 | 46 |
|
57870
00860d9caf4d
New metadata system for oldobjects built on top of simplified tagging model. Caching and serialization improvements. Flushpoint checkpoint with chunkheader contents.
mgronlun
parents:
57360
diff
changeset
|
47 |
inline int compare_traceid(const traceid& lhs, const traceid& rhs) { |
00860d9caf4d
New metadata system for oldobjects built on top of simplified tagging model. Caching and serialization improvements. Flushpoint checkpoint with chunkheader contents.
mgronlun
parents:
57360
diff
changeset
|
48 |
return lhs > rhs ? 1 : (lhs < rhs) ? -1 : 0; |
00860d9caf4d
New metadata system for oldobjects built on top of simplified tagging model. Caching and serialization improvements. Flushpoint checkpoint with chunkheader contents.
mgronlun
parents:
57360
diff
changeset
|
49 |
} |
00860d9caf4d
New metadata system for oldobjects built on top of simplified tagging model. Caching and serialization improvements. Flushpoint checkpoint with chunkheader contents.
mgronlun
parents:
57360
diff
changeset
|
50 |
|
00860d9caf4d
New metadata system for oldobjects built on top of simplified tagging model. Caching and serialization improvements. Flushpoint checkpoint with chunkheader contents.
mgronlun
parents:
57360
diff
changeset
|
51 |
inline int sort_traceid(traceid* lhs, traceid* rhs) { |
00860d9caf4d
New metadata system for oldobjects built on top of simplified tagging model. Caching and serialization improvements. Flushpoint checkpoint with chunkheader contents.
mgronlun
parents:
57360
diff
changeset
|
52 |
return compare_traceid(*lhs, *rhs); |
00860d9caf4d
New metadata system for oldobjects built on top of simplified tagging model. Caching and serialization improvements. Flushpoint checkpoint with chunkheader contents.
mgronlun
parents:
57360
diff
changeset
|
53 |
} |
00860d9caf4d
New metadata system for oldobjects built on top of simplified tagging model. Caching and serialization improvements. Flushpoint checkpoint with chunkheader contents.
mgronlun
parents:
57360
diff
changeset
|
54 |
|
50113 | 55 |
enum EventStartTime { |
56 |
UNTIMED, |
|
57 |
TIMED |
|
58 |
}; |
|
59 |
||
57983
a57907813a83
old object sample blob:ification and serialization support
mgronlun
parents:
57887
diff
changeset
|
60 |
enum JfrCheckpointType { |
57886
87f8a814310d
rename from JfrCheckpointMode to JfrCheckpointType
mgronlun
parents:
57882
diff
changeset
|
61 |
GENERIC, |
57882 | 62 |
FLUSH, |
63 |
HEADER, |
|
64 |
STATICS = 4, |
|
65 |
THREADS = 8 |
|
66 |
}; |
|
67 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
50113
diff
changeset
|
68 |
#endif // SHARE_JFR_UTILITIES_JFRTYPES_HPP |