Changes between Version 66 and Version 67 of doc/TorBrowser/Hacking


Ignore:
Timestamp:
Mar 4, 2016, 11:12:41 AM (20 months ago)
Author:
dawuud
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/TorBrowser/Hacking

    v66 v67  
    358358You can then use the usual gdb commands (backtrace, print, up, down, etc) to inspect the stack, variables, and program state at the time of the crash.
    359359
     360== using dtrace ==
     361
     362=== abstract ===
     363
     364The IllumOS (the new OpenSolaris) kernel has support for '''Linux zones''' which can run native amd64 32bit and 64bit binaries in an isolated environment.
     365The host's global zone can be used to dtrace native Linux and Solaris zones. Tor Browser Bundle runs fine using the Linux zones. '''SmartOS''' makes it easy
     366to setup a comprehensive sandbox environment for Tor Browser Bundle; I will write about that soon on another wiki page.
     367
     368=== dtrace examples for Tor Browser Bundle ===
     369
     370
     371This example produces a syscall frequency count for the duration it runs until you hit control-c:
     372{{{
     373root@tanker /opt/custom/dtrace/playground $ dtrace -n 'lx-syscall:::entry /pid == 44622/ { @num[probefunc] = count(); }'
     374dtrace: description 'lx-syscall:::entry ' matched 676 probes
     375^C
     376
     377  read                                                            725
     378  write                                                           725
     379  writev                                                         1400
     380  futex                                                          3548
     381  poll                                                           5686
     382  recvmsg                                                        6911
     383  clock_gettime                                                 17440
     384}}}
     385
     386
     387
     388
    360389== Bisecting ==
    361390