Skip to content

Commit c03c470

Browse files
committed
Linux reachability
1 parent 9574e20 commit c03c470

File tree

2 files changed

+137
-0
lines changed

2 files changed

+137
-0
lines changed

test-graalvm/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Application for Testing the GraalVM Configuration
2+
3+
## Collection Reachability Data
4+
5+
Reachability data can be collected by running the unit test
6+
of the _java-does-usb_ project:
7+
8+
```shell
9+
cd java-does-usb
10+
export JAVA_TOOL_OPTIONS="-agentlib:native-image-agent=config-output-dir=metadata-{pid}-{datetime}/"
11+
mvn test
12+
```
13+
14+
15+
## Building
16+
17+
```shell
18+
mvn -Pnative package
19+
```
20+
21+
22+
## Running
23+
24+
```shell
25+
./target/test_graalvm
26+
```
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"foreign": {
3+
"downcalls": [
4+
{
5+
"returnType": "jint",
6+
"parameterTypes": [
7+
"void*",
8+
"void*"
9+
]
10+
},
11+
{
12+
"returnType": "jint",
13+
"parameterTypes": [
14+
"void*",
15+
"void*",
16+
"void*"
17+
]
18+
},
19+
{
20+
"returnType": "jint",
21+
"parameterTypes": [
22+
"jint",
23+
"jlong",
24+
"void*"
25+
],
26+
"options": {
27+
"captureCallState": true,
28+
"firstVariadicArg": 2
29+
}
30+
},
31+
{
32+
"returnType": "jint",
33+
"parameterTypes": [
34+
"jint"
35+
]
36+
},
37+
{
38+
"returnType": "void*",
39+
"parameterTypes": [
40+
"void*"
41+
]
42+
},
43+
{
44+
"returnType": "jint",
45+
"parameterTypes": [
46+
"jint",
47+
"void*",
48+
"jint",
49+
"jint"
50+
],
51+
"options": {
52+
"captureCallState": true
53+
}
54+
},
55+
{
56+
"returnType": "void*",
57+
"parameterTypes": []
58+
},
59+
{
60+
"returnType": "jint",
61+
"parameterTypes": [
62+
"jint"
63+
],
64+
"options": {
65+
"captureCallState": true
66+
}
67+
},
68+
{
69+
"returnType": "jint",
70+
"parameterTypes": [
71+
"void*",
72+
"jint"
73+
],
74+
"options": {
75+
"captureCallState": true
76+
}
77+
},
78+
{
79+
"returnType": "void*",
80+
"parameterTypes": [
81+
"void*",
82+
"void*"
83+
]
84+
},
85+
{
86+
"returnType": "void*",
87+
"parameterTypes": [
88+
"jint"
89+
]
90+
},
91+
{
92+
"returnType": "jint",
93+
"parameterTypes": [
94+
"void*"
95+
]
96+
},
97+
{
98+
"returnType": "jint",
99+
"parameterTypes": [
100+
"jint",
101+
"jint",
102+
"jint",
103+
"void*"
104+
],
105+
"options": {
106+
"captureCallState": true
107+
}
108+
}
109+
]
110+
}
111+
}

0 commit comments

Comments
 (0)