Skip to content

Commit

Permalink
used kernel tracing and other small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Constantine Shulyupin authored and Constantine Shulyupin committed Nov 13, 2012
1 parent 317133d commit ee369ff
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 139 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ clean:
dio: CPPFLAGS+= -D CTRACER_ON -include ctracer.h -g
#dio: CPPFLAGS+= -D VERBOSE

_src = dio.c ldt.c ldt_plat_dev.c ldt_plat_drv.c ctracer.h ldt_configfs_basic.c
_src = dio.c ldt.c ldt_plat_dev.c ldt_plat_drv.c ctracer.h ldt_configfs_basic.c ctracer.h tracing.h

checkpatch:
/usr/src/linux-headers-$(shell uname -r)/scripts/checkpatch.pl --no-tree --show-types --ignore LONG_LINE,LINE_CONTINUATIONS --terse -f $(_src) Makefile
6 changes: 1 addition & 5 deletions ldt-test
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ GRAY="\\033[0;37m"
set -o errtrace
debugfs=`grep debugfs /proc/mounts | awk '{ print $2; }'`
tracing=$debugfs/tracing
irq=0 # define irq to bind diriver to HW IRQ, WARING: can hung the system
irq=4 # serial port
# irq=`grep ehci_hcd /proc/interrupts | cut -f1 -d:`

tracing()
{
Expand All @@ -33,7 +30,7 @@ tracing_start()
tracing "echo function > current_tracer" # need for draw_functrace.py
#tracing "echo function_graph > current_tracer"
tracing "echo 1 > function_profile_enabled"
# useful stuff:
# useful optional command:
#tracing "echo XXX > set_ftrace_notrace"
#sudo cat $tracing/current_tracer
#sudo cat $tracing/set_ftrace_filter
Expand All @@ -43,7 +40,6 @@ tracing_start()
}

tracing_stop()

{
( echo Profiling data per CPU
tracing "cat trace_stat/function*" )> trace_stat.log && echo trace_stat.log saved
Expand Down
Loading

0 comments on commit ee369ff

Please sign in to comment.