LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-26-2015, 12:46 AM   #1
answerme
Member
 
Registered: Apr 2008
Posts: 97

Rep: Reputation: 24
Tool to track api from binary


Hi
Is there any tool to track api's from vxwork binary . i.e. I have a binary that are using multiple api's but don't know which one are we using ,is there any way we can track these api's from a binary

Thanks
 
Old 02-26-2015, 07:18 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,788
Blog Entries: 13

Rep: Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831
No tool that I'm aware of excepting something like the debugger where you enter it and put a breakpoint at each given API function and see if it's ever used; however that's empirical and there may be uses of any given API function which only happen under certain circumstances. The only real ways to determine this are to:
  1. Search the source code
  2. Rebuild the code iteratively removing API functions and seeing if the build succeeds
I'd start with option (1) and to prove my findings I'd next do option (2), with probably my whole intention being reduction in size, or increase in performance, or both. But those are probably the only reasons I'd look to determine which API's were in use versus not, to reduce my binary size.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any tool like strace to track kernel calls. vinayak099 Linux - Newbie 1 01-29-2014 11:44 AM
Google uses new tool to track dengue fever hubs Jeebizz Linux - News 0 05-31-2011 07:49 AM
No BART (Basic Audit Reporting Tool) Binary felix001 Solaris / OpenSolaris 3 01-11-2011 04:52 AM
Which tool to track scheduled download quota Subbass Linux - Networking 4 07-25-2010 01:13 PM
how to copy binary files using Unix API's rohanak Programming 5 05-09-2008 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration