author | mgronlun |
Sun, 15 Sep 2019 15:31:04 +0200 | |
branch | JEP-349-branch |
changeset 58158 | 369ebc2a11c2 |
parent 58157 | 9dca61a7df19 |
child 58160 | c17888eb0d03 |
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 |
|
50113 | 33 |
const int invalid_fd = -1; |
34 |
const jlong invalid_offset = -1; |
|
57360 | 35 |
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
|
36 |
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
|
37 |
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
|
38 |
const u4 MAX_STACK_DEPTH = 2048; |
50113 | 39 |
|
58132
caa25ab47aca
8225797: OldObjectSample event creates unexpected amount of checkpoint data
mgronlun
parents:
54603
diff
changeset
|
40 |
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
|
41 |
return lhs > rhs ? 1 : (lhs < rhs) ? -1 : 0; |
caa25ab47aca
8225797: OldObjectSample event creates unexpected amount of checkpoint data
mgronlun
parents:
54603
diff
changeset
|
42 |
} |
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 |
inline int sort_traceid(traceid* lhs, traceid* rhs) { |
caa25ab47aca
8225797: OldObjectSample event creates unexpected amount of checkpoint data
mgronlun
parents:
54603
diff
changeset
|
45 |
return compare_traceid(*lhs, *rhs); |
caa25ab47aca
8225797: OldObjectSample event creates unexpected amount of checkpoint data
mgronlun
parents:
54603
diff
changeset
|
46 |
} |
caa25ab47aca
8225797: OldObjectSample event creates unexpected amount of checkpoint data
mgronlun
parents:
54603
diff
changeset
|
47 |
|
50113 | 48 |
enum EventStartTime { |
49 |
UNTIMED, |
|
50 |
TIMED |
|
51 |
}; |
|
52 |
||
57983
a57907813a83
old object sample blob:ification and serialization support
mgronlun
parents:
57887
diff
changeset
|
53 |
enum JfrCheckpointType { |
57886
87f8a814310d
rename from JfrCheckpointMode to JfrCheckpointType
mgronlun
parents:
57882
diff
changeset
|
54 |
GENERIC, |
57882 | 55 |
FLUSH, |
56 |
HEADER, |
|
57 |
STATICS = 4, |
|
58 |
THREADS = 8 |
|
59 |
}; |
|
60 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
50113
diff
changeset
|
61 |
#endif // SHARE_JFR_UTILITIES_JFRTYPES_HPP |