![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /opt/rh/gcc-toolset-11/root/usr/share/systemtap/tapset/dyninst/ |
// NB: functionally equivalent to linux/endian.stp %{ #include <endian.h> %} function big_endian2:long (val:long) %{ /* pure */ STAP_RETVALUE = htobe16((uint16_t)STAP_ARG_val); %} function big_endian4:long (val:long) %{ /* pure */ STAP_RETVALUE = htobe32((uint32_t)STAP_ARG_val); %} function big_endian8:long (val:long) %{ /* pure */ STAP_RETVALUE = htobe64((uint64_t)STAP_ARG_val); %} function little_endian2:long (val:long) %{ /* pure */ STAP_RETVALUE = htole16((uint16_t)STAP_ARG_val); %} function little_endian4:long (val:long) %{ /* pure */ STAP_RETVALUE = htole32((uint32_t)STAP_ARG_val); %} function little_endian8:long (val:long) %{ /* pure */ STAP_RETVALUE = htole64((uint64_t)STAP_ARG_val); %}