From: Yannick Brosseau Date: Fri, 24 Feb 2012 03:24:38 +0000 (-0500) Subject: Remove the # in the example so we can just copy/paste it to a shell X-Git-Tag: v0.2~57 X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=commitdiff_plain;h=bc02a7aa917596e98027f6b44f9e3f145e369161 Remove the # in the example so we can just copy/paste it to a shell Signed-off-by: Yannick Brosseau Signed-off-by: Julien Desfossez --- diff --git a/README b/README index 4bb510c..b2fed88 100644 --- a/README +++ b/README @@ -24,17 +24,18 @@ Make sure you have read permissions on the whole directory. EXAMPLE ------- - -# lttng create lttngtop -# lttng enable-event -k sched_switch -# lttng add-context -k -t pid -t procname -t tid -t ppid -t perf:cache-misses \ +# Get root (or ideally just launch lttng-sessiond as root) +lttng create lttngtop +lttng enable-event -k sched_switch +lttng add-context -k -t pid -t procname -t tid -t ppid -t perf:cache-misses \ -t perf:major-faults -t perf:branch-load-misses -# lttng start -# ...do stuff... -# lttng stop -# lttng destroy +lttng start +#...do stuff... +lttng stop +lttng destroy -$ lttngtop $HOME/lttng-traces/lttngtop-... +# Run lttngtop +lttngtop $HOME/lttng-traces/lttngtop-... BUILDING --------