diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

trace.sh (322B)


      1 #!/bin/bash
      2 #
      3 # This is an example that shows how to trace logs.
      4 # source: https://github.com/lttng/lttng-ust/blob/master/doc/examples/cmake-multiple-shared-libraries/trace.sh
      5 
      6 lttng create
      7 lttng enable-event --userspace 'diary:*'
      8 lttng start
      9 LD_PRELOAD=./libtpp.so ./diary
     10 lttng stop
     11 lttng view > trace.txt
     12 cat trace.txt