Profiler

From Ubicom Developer

Jump to: navigation, search

Contents



Current/Latest SDK

Configuring

Build instructions are at Build and Load

Connections

Target board (lan 192.168.0.1) – hub – PC (linux/window - 192.168.0.x). 

For instruction to work on the WAN interface please contact Ubicom.

How to enable Profiler

Enable profiler option in ‘make menuconfig’.

Under openwrt menuconfig enable profiler under ‘uitlities’

Build and load Run the profiler deamon on the console - /usr/sbin/profilerd &

How to collect data

On the PC you need to run the tool ip3kprof.exe. This is a windows executable but runs on linux through wine.

  • cd to SDK directory
  • ip3kprof.exe -a -ip:<target_board_ip_address> 


Example 1 

ip3kprof.exe -a -ip:192.168.0.1

Example 2

ip3kprof.exe -a -ip:192.168.0.1 -lib:openwrt/build_dir/ubicom32/busybox-1.14.1 -lib:openwrt/build_dir/toolchain-ubicom32_gcc4.4.0/uClibc-0.9.30.1/lib -lib:openwrt/target/linux/ubicom32/base-files/lib/modules

Even .ko files can be profiled by adding the path of the library with –lib: option. 

How to Interpret data

The collected data can be saved in .txt and .prg format. These files can be opened by profiler without active connection to target and used for analyse at a later point of time. Note:Please reset the counters before you start collecting otherwise you might get averaged data.

Older Release (SDK 1.0)

Profiler instructions are at SDK 1.0 Profiler