Skip to content

Instantly share code, notes, and snippets.

@papertigers
Last active August 29, 2015 14:24
Show Gist options
  • Save papertigers/3b0f69cbb8249d8ca851 to your computer and use it in GitHub Desktop.
Save papertigers/3b0f69cbb8249d8ca851 to your computer and use it in GitHub Desktop.
Ark: Survival Evolved - UE4 Game server on lx branded zones
ue4_on_lx : pargs -ae 29784
29784: ./ShooterGameServer TheIsland?listen?SessionName=dtrace?ServerAdminPassword=wha
argv[0]: ./ShooterGameServer
argv[1]: TheIsland?listen?SessionName=dtrace?ServerAdminPassword=whateveradminpass
argv[2]: -server
argv[3]: -log
envp[0]: SHELL=/bin/bash
envp[1]: TERM=xterm-256color
envp[2]: OLDPWD=/home/steam
envp[3]: USER=steam
envp[4]: LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
envp[5]: MAIL=/var/mail/steam
envp[6]: PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
envp[7]: PWD=/home/steam/Ark/ShooterGame/Binaries/Linux
envp[8]: LANG=en_US.UTF-8
envp[9]: SHLVL=1
envp[10]: HOME=/home/steam
envp[11]: LOGNAME=steam
envp[12]: LESSOPEN=| /usr/bin/lesspipe %s
envp[13]: LESSCLOSE=/usr/bin/lesspipe %s %s
envp[14]: _=./ShooterGameServer
ue4_on_lx : dtrace -n 'lx-syscall:::entry /pid == 29784/ {@[probefunc] = count()} tick-10s {exit(0)}'
dtrace: description 'lx-syscall:::entry ' matched 677 probes
CPU ID FUNCTION:NAME
13 79361 :tick-10s
recvfrom 276
getrusage 282
nanosleep 289
sendto 340
select 515
sched_getaffinity 871
write 1142
epoll_wait 1300
read 2640
poll 3200
futex 9503
clock_gettime 11185
gettid 13514
open 14160
@papertigers
Copy link
Author

The server appears to be compiled with stack frames, but it is lacking symbols.
I may play around with a basic UE4 server under lx branded zones so I can create flamegraphs and do other fun things.

@papertigers
Copy link
Author

ue4_on_lx : dtrace -ln pid29784:a.out::entry

(output trimmed)

98247   pid29784             a.out _ZN7ApexCSG3BSP5cloneEPNS0_4NodeEPKS1_ entry
98248   pid29784             a.out _ZNK7ApexCSG3BSP20decomposeIntoIslandsEv entry
98249   pid29784             a.out _ZNK7ApexCSG3BSP17indexInsideLeavesERjPNS0_4NodeE entry
98250   pid29784             a.out _ZNK7ApexCSG3BSP23findInsideLeafNeighborsERN5physx6shdfnd5ArrayINS1_4apex7IntPairENS2_19ReflectionAllocatorIS5_EEEEPNS0_4NodeE entry
98251   pid29784             a.out _ZN7ApexCSG9createBSPEPNS_16IApexBSPMemCacheERKN5physx7PxMat44E entry
98252   pid29784             a.out _ZNK7ApexCSG3BSP16listInsideLeavesERN5physx6shdfnd5ArrayIPNS0_4NodeENS2_19ReflectionAllocatorIS5_EEEES5_ entry
98253   pid29784             a.out _ZN7ApexCSG3BSP24replaceInteriorSubmeshesEjPjj entry
98254   pid29784             a.out _ZN7ApexCSG3BSP15deleteTrianglesEv entry
98255   pid29784             a.out _ZNK7ApexCSG3BSP9serializeERN5physx19general_PxIOStream29PxFileBufE entry
98256   pid29784             a.out _ZNK7ApexCSG3BSP13serializeNodeEPKNS0_4NodeERN5physx19general_PxIOStream29PxFileBufE entry
98257   pid29784             a.out _ZN7ApexCSG3BSP11deserializeERN5physx19general_PxIOStream29PxFileBufE entry
98258   pid29784             a.out _ZN7ApexCSG3BSP15deserializeNodeEjRN5physx19general_PxIOStream29PxFileBufE entry
98259   pid29784             a.out _ZNK7ApexCSG3BSP9visualizeERN5physx4apex17NxApexRenderDebugEjj entry
98260   pid29784             a.out _ZNK7ApexCSG3BSP13visualizeNodeERN5physx4apex17NxApexRenderDebugEjPKNS0_4NodeE entry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment