Skip to content

Instantly share code, notes, and snippets.

View timjp87's full-sized avatar

Tim Jester-Pfadt timjp87

View GitHub Profile
@timjp87
timjp87 / gist:9714254
Created March 22, 2014 21:00
vogltrace of gltron
tim@archbox ~ % VOGL_CMD_LINE="--vogl_debug --vogl_dump_stats --vogl_tracefile /home/tim/Downloads/vogltrace.bin --vogl_disable_client_side_array_tracing --vogl_pause" LD_PRELOAD=/usr/lib/libvogltrace64.so gltron
(vogltrace) dlopen: libc.so.6 1
(vogltrace) dlopen: (nullptr) 1
(vogltrace) dlopen: (nullptr) 1
(vogltrace) dlopen: libpthread.so.0 257
(vogltrace) dlopen: (nullptr) 1
(vogltrace) dlopen: /usr/lib/libc.so.6 1
(vogltrace) dlopen: /usr/lib/libdl.so.2 1
(vogltrace) dlopen: /usr/lib/libpthread.so.0 1
(vogltrace) dlopen: libnvidia-tls.so.334.21 1
@timjp87
timjp87 / gdb
Created March 22, 2014 20:56
GDB backtrace of GLTron vogltrace.
(gdb) bt
#0 0x00007f8ebe65f700 in __memcpy_sse2_unaligned () from /usr/lib/libc.so.6
#1 0x00007f8ec0dfb24c in set_blob (size=24, pBlob=0x102540504 <error: Cannot access memory at address 0x102540504>, this=0x7f8eb7a52960) at /tmp/pacaurtmp-tim/vogl-git/src/vogl/src/voglcore/vogl_value.h:335
#2 set_key_value_blob (data_size=24, pData=0x102540504, key=..., this=0x7f8eb7a31d28) at /tmp/pacaurtmp-tim/vogl-git/src/vogl/src/voglcommon/vogl_trace_packet.h:463
#3 add_key_value_blob (data_size=24, pData=0x102540504, key=..., this=0x7f8eb7a31d28) at /tmp/pacaurtmp-tim/vogl-git/src/vogl/src/vogltrace/vogl_intercept.cpp:284
#4 vogl_serialize_client_side_arrays_helper (pContext=pContext@entry=0x7f8eb7a32270, trace_serializer=..., start=4294967295, start@entry=0, end=end@entry=0, count=<optimized out>, type=<optimized out>, indices=indices@entry=0x2e44520, start_end_valid=start_end_valid@entry=false, indexed=indexed@entry=true,
mode=<optimized out>, pFunc=0x7f8ec1126017 "glDrawElements", basevertex=0) at /tmp/pac
@timjp87
timjp87 / config.cfg
Created March 20, 2014 01:34
Configuration used in Xonotic
bind TAB "+showscores"
bind ENTER "+jump"
bind ESCAPE "togglemenu"
bind SPACE "+jump"
bind 0 "weapon_group_0"
bind 1 "weapon_group_1"
bind 2 "weapon_group_2"
bind 3 "weapon_group_3"
bind 4 "weapon_group_4"
bind 5 "weapon_group_5"
@timjp87
timjp87 / vogltrace to tmpfs
Created March 20, 2014 01:08
tmpfs ran out of space
tim@archbox ~ % VOGL_CMD_LINE="--vogl_debug --vogl_dump_stats --vogl_tracefile /tmp/sauerbraten.bin" LD_PRELOAD=/usr/lib/libvogltrace64.so sauerbraten-client
(vogltrace) /usr/lib/libvogltrace64.so built Mar 19 2014 22:35:22, begin initialization in /usr/bin/sauerbraten-client
(vogltrace) Warning: vogl_shared_object_constructor_func: dlsym(RTLD_NEXT, "glXGetProcAddress") failed, trying to manually load libGL.so.1
(vogltrace) dlopen: libGL.so.1 1
(vogltrace) dlopen: libc.so.6 1
(vogltrace) dlopen: (nullptr) 1
(vogltrace) dlopen: (nullptr) 1
(vogltrace) dlopen: libpthread.so.0 257
(vogltrace) dlopen: (nullptr) 1
(vogltrace) dlopen: /usr/lib/libc.so.6 1
@timjp87
timjp87 / voglreplay xonotic glx
Created March 19, 2014 23:59
voglreplay of xonotic glx
im@archbox /run/media/tim/ArchData/Downloads % voglreplay64 vogltrace-glx.bin
voglreplay 64-bit Release Built Mar 19 2014 22:35:22
Replay mode
Debug: vogl_binary_trace_file_reader::read_frame_file_offsets (174): Frame file offsets packet is OK, found 1475 total frame offsets
Reading trace file vogltrace-glx.bin
Debug: vogl_replay_window::open (127): Created window, requested dimensions 1024x768, actual dimensions 1024x768
Warning: While processing GL entrypoint packet func glGetIntegerv, frame 0, swaps 0, GL call counter 243, packet start trace context 0x3C7A180, cur trace context 0x3C7A180, trace thread 0x2A1A:
Warning: vogl_gl_replayer::process_gl_entrypoint_packet_internal (5578): Replay's returned GLint data differed from trace's, pname GL_SAMPLES
Debug: void glGetIntegerv(GL_SAMPLES_SGIS, (GLint *) 0x7FFF6CDF40FC)
GLint 0: Trace: 4, Replay: 0
@timjp87
timjp87 / vogltrace xonotic glx
Created March 19, 2014 23:55
vogltrace of xonotic glx
tim@archbox ~ % VOGL_CMD_LINE="--vogl_debug --vogl_dump_stats --vogl_tracefile /home/tim/Downloads/vogltrace-glx.bin" LD_PRELOAD=/usr/lib/libvogltrace64.so xonotic-glx
(vogltrace) /usr/lib/libvogltrace64.so built Mar 19 2014 22:35:22, begin initialization in /usr/bin/xonotic-glx
(vogltrace) Warning: vogl_shared_object_constructor_func: dlsym(RTLD_NEXT, "glXGetProcAddress") failed, trying to manually load libGL.so.1
(vogltrace) dlopen: libGL.so.1 1
(vogltrace) dlopen: libc.so.6 1
(vogltrace) dlopen: (nullptr) 1
(vogltrace) dlopen: (nullptr) 1
(vogltrace) dlopen: libpthread.so.0 257
(vogltrace) dlopen: (nullptr) 1
(vogltrace) dlopen: /usr/lib/libc.so.6 1
@timjp87
timjp87 / voglreplay xonotic sdl
Created March 19, 2014 23:50
voglreplay of xonotic sdl
tim@archbox /run/media/tim/ArchData/Downloads % voglreplay64 vogltrace-sdl.bin
voglreplay 64-bit Release Built Mar 19 2014 22:35:22
Replay mode
Debug: vogl_binary_trace_file_reader::read_frame_file_offsets (174): Frame file offsets packet is OK, found 4619 total frame offsets
Reading trace file vogltrace-sdl.bin
Debug: vogl_replay_window::open (127): Created window, requested dimensions 1024x768, actual dimensions 1024x768
Warning: While processing GL entrypoint packet func glGetIntegerv, frame 0, swaps 0, GL call counter 283, packet start trace context 0x4730420, cur trace context 0x4730420, trace thread 0x2CF1:
Warning: vogl_gl_replayer::process_gl_entrypoint_packet_internal (5578): Replay's returned GLint data differed from trace's, pname GL_SAMPLES
Debug: void glGetIntegerv(GL_SAMPLES_SGIS, (GLint *) 0x7FFFAEBE9E2C)
GLint 0: Trace: 4, Replay: 0
@timjp87
timjp87 / vogltrace xonotic sdl
Created March 19, 2014 23:47
vogltrace64 of xonotic SDL version
tim@archbox ~ % VOGL_CMD_LINE="--vogl_debug --vogl_dump_stats --vogl_tracefile /home/tim/Downloads/vogltrace-sdl.bin" LD_PRELOAD=/usr/lib/libvogltrace64.so xonotic-sdl
(vogltrace) /usr/lib/libvogltrace64.so built Mar 19 2014 22:35:22, begin initialization in /usr/bin/xonotic-sdl
(vogltrace) Warning: vogl_shared_object_constructor_func: dlsym(RTLD_NEXT, "glXGetProcAddress") failed, trying to manually load libGL.so.1
(vogltrace) dlopen: libGL.so.1 1
(vogltrace) dlopen: libc.so.6 1
(vogltrace) dlopen: (nullptr) 1
(vogltrace) dlopen: (nullptr) 1
(vogltrace) dlopen: libpthread.so.0 257
(vogltrace) dlopen: (nullptr) 1
(vogltrace) dlopen: /usr/lib/libc.so.6 1
@timjp87
timjp87 / voglreplay trim
Created March 19, 2014 21:45
voglreplay trim write file fails
1 tim@archbox ~ % voglreplay64 /home/tim/Dropbox/trace2.bin --trim_file /home/tim/trace3_trim.bin --trim_len 100 --trim_frame 700 :(
voglreplay 64-bit Release Built Mar 19 2014 22:35:22
Replay mode
Debug: vogl_binary_trace_file_reader::read_frame_file_offsets (174): Frame file offsets packet is OK, found 2491 total frame offsets
Reading trace file /home/tim/Dropbox/trace2.bin
Debug: vogl_replay_window::open (127): Created window, requested dimensions 1024x768, actual dimensions 1024x768
vogl_gl_replayer::process_gl_entrypoint_packet_internal (3595): Deferring glXMakeCurrent() until window resizes to 1024x600
glXMakeCurrent(): Trace Viewport: [0,0,1024,600], Window: [1024 600]
glXMakeCurrent(): Replay Viewport: [0,0,1024,600], Window: [1024 600]
Warning: While processing GL entrypoint packet func glGetQueryivARB, frame 0, swaps
@timjp87
timjp87 / gdb backtrace of vogleditor64
Created March 19, 2014 00:47
vogleditor64 sefaults when loading frame 98 of trace2_trim.bin
GNU gdb (GDB) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.