Re: list of fuctions defined and exported by a library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rahul Ramasubramanian <ramasubramanian> wrote:
,----
| > i am trying to get a list of functions defined by any
| > library and exported as globals .
`----
wouldn't just looking for 'FUNC' and 'GLOBAL' do the job ? i have tried
it locally on and it seems to provide some useful info:

,----
| anupam@seldon common % readelf --syms libcommon_utils.a | grep -i func | grep -i global
|     15: 00000000    96 FUNC    GLOBAL DEFAULT    1 rs_hash
|     16: 00000060    79 FUNC    GLOBAL DEFAULT    1 js_hash
|     17: 000000af   169 FUNC    GLOBAL DEFAULT    1 pjw_hash
|     18: 00000158   112 FUNC    GLOBAL DEFAULT    1 elf_hash
|     19: 000001c8    79 FUNC    GLOBAL DEFAULT    1 bkdr_hash
|     20: 00000217    80 FUNC    GLOBAL DEFAULT    1 sdbm_hash
|     21: 00000267    74 FUNC    GLOBAL DEFAULT    1 djb_hash
|     22: 000002b1    69 FUNC    GLOBAL DEFAULT    1 dek_hash
|     23: 000002f6    70 FUNC    GLOBAL DEFAULT    1 bp_hash
|     24: 0000033c    77 FUNC    GLOBAL DEFAULT    1 fnv_hash
|     25: 00000389   132 FUNC    GLOBAL DEFAULT    1 ap_hash
|     22: 00000000    44 OBJECT  GLOBAL DEFAULT    3 hash_function_table
|     35: 00000000   210 FUNC    GLOBAL DEFAULT    1 bloom_filter_create
|     39: 000000d2    74 FUNC    GLOBAL DEFAULT    1 bloom_filter_destroy
|     40: 0000011c   427 FUNC    GLOBAL DEFAULT    1 bloom_filter_add
|     41: 000002c7   458 FUNC    GLOBAL DEFAULT    1 bloom_filter_query
| anupam@seldon common % 
`----
the functions defined above are all available in the global namespace. i
am sure the 'grep' above can definitely be improved :) 

kind regards
anupam


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux