Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AArch64: Wrong processor type with traceformat #18536

Closed
knn-k opened this issue Nov 30, 2023 · 3 comments · Fixed by #18643
Closed

AArch64: Wrong processor type with traceformat #18536

knn-k opened this issue Nov 30, 2023 · 3 comments · Fixed by #18643

Comments

@knn-k
Copy link
Contributor

knn-k commented Nov 30, 2023

Running traceformat on the Snap file from AArch64 Linux generated the following output. Arch family and Processor Sub-type are wrong.

Processor information:
        Arch family:         Unknown
        Processor Sub-type:  i486
        Num Processors:      8
        Big Endian:          false
        Word size:           64
        Using Trace Counter: J9 timer

I used the following version:

openjdk version "11.0.21" 2023-10-17
IBM Semeru Runtime Open Edition 11.0.21.0 (build 11.0.21+9)
Eclipse OpenJ9 VM 11.0.21.0 (build openj9-0.41.0, JRE 11 Linux aarch64-64-Bit Compressed References 20231122_825 (JIT enabled, AOT enabled)
OpenJ9   - 461bf3c70
OMR      - 5eee6ad9d
JCL      - 0fd7a05277 based on jdk-11.0.21+9)
@knn-k
Copy link
Contributor Author

knn-k commented Nov 30, 2023

It seems PR #7446 added related code for RISC-V.

@knn-k
Copy link
Contributor Author

knn-k commented Dec 18, 2023

TraceFileHeaderWriter.java for DDR also has the lists of processor architectures and subtypes, but they don't contain AArch64 and RISC-V.

private final static String[] Archs = { "Unknown", "x86", "S390", "Power", "IA64", "S390X", "AMD64" };
private final static String[] SubTypes = { "i486", "i586", "Pentium II", "Pentium III", "Merced", "McKinley", "PowerRS", "PowerPC", "GigaProcessor", "ESA", "Pentium IV", "T-Rex", "Opteron" };

@knn-k
Copy link
Contributor Author

knn-k commented Dec 18, 2023

PR #18643 fixes traceformat. I opened Issue #18647 for DDR TraceFileHeaderWriter.java.

knn-k added a commit to knn-k/openj9 that referenced this issue Jan 9, 2024
This commit adds AArch64 to the architectures recognized by traceformat.

Fixes: eclipse-openj9#18536

Signed-off-by: KONNO Kazuhiro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants