- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i.e.
I want to measure how many time spent on netif_rx(), possible to do that?
I want to measure how many time spent on netif_rx(), possible to do that?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - softarts
i.e.
I want to measure how many time spent on netif_rx(), possible to do that?
I want to measure how many time spent on netif_rx(), possible to do that?
Hi,
I assume netif_rx() is a Linux kernel function. Then with the SystemTap tool (http://sourceware.org/systemtap/wiki) you can insert your time measuring codeinto netif_rxon a live running system without the need to stop, rebootor recompile the kernel.
However, simpler methods might exist for your task and my method is an overkill.
Best regards,
Roman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Alternatively to what Roman suggested, you might also have a look at oprofile, which let's you profile the Linux kernel with sampling. However, this usually requires a reboot and you may also want a kernel with debug information.
Kind regards
Thomas
Kind regards
Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Thomas Willhalm (Intel)
Alternatively to what Roman suggested, you might also have a look at oprofile, which let's you profile the Linux kernel with sampling. However, this usually requires a reboot and you may also want a kernel with debug information.
Kind regards
Thomas
Kind regards
Thomas
Also VTune Performance Analyzer's sampling collector can captureperformance data for all active modules in the system. In Processes report, select vmlinuz-2.6.xx-x anddrill down all modules which has samples captured - if you want to see hotfunctions in any module, the tool will ask you vmlinuz's location and its corresponding system file (usually that is like as System.map-2.6.xx-x)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page