In Java, several native methods e.g. in the Java Runtime Library may call regular (bytecode-based) methods. I would like to know if there is some VM command-line parameter or some instrumentation tool or API that I can use to such calls.
P.S. Note that I am not interested in calls to native code but from native code.
Are you looking for something like Java Native Interface (JNI)?
“The Java Native Interface (JNI) is a programming framework that allows Java code running in a Java Virtual Machine (JVM) to call and to be called by native applications (programs specific to a hardware and operating system platform) and libraries written in other languages, such as C, C++ and assembly.”
JNI Wikipedia Article