public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Error inserting module and File exists error while running staprun on target device
@ 2013-05-30  3:52 Link2ThePast
  2013-05-30 15:07 ` Lukas Berk
  0 siblings, 1 reply; 3+ messages in thread
From: Link2ThePast @ 2013-05-30  3:52 UTC (permalink / raw)
  To: systemtap

Hello everyone, 

I am having trouble executing systemtap .ko modules on my target device.
 
The target configuration I am using is as follows:
Board: OMAP5432 EVM
(http://www.svtronics.com/index.php?route=product/product&product_id=33) 
OS: Android JellyBean
Kernel: K3.4 
 
The host system is Ubuntu 12.04 x64.
                         
Reference instructions are from http://omappedia.org/wiki/Systemtap. 

After building a module (e.g. why.ko) and attempting to execute it with
staprun, an error indicating “File Exists” is presented. After multiple
configuration changes and attempts, I have been unable to resolve this
error. Below is an example execution of why.ko:

root@android:/data/systemtap-2.0-macharm/bin # ./staprun -vvvvvv why

   output:
staprun:parse_modpath:364 inpath=why
staprun:parse_modpath:409 modpath="/lib/modules/3.4.34/systemtap/why.ko"
staprun:main:395 modpath="/lib/modules/3.4.34/systemtap/why.ko",
modname="why"
staprun:init_staprun:313 init_staprun
staprun:insert_module:73 inserting module
/lib/modules/3.4.34/systemtap/why.ko
staprun:insert_module:99 module options: _stp_bufsize=0
staprun:insert_module:107 module path canonicalized to
'/system/lib/modules/3.4.34/systemtap/why.ko'
Error inserting module '/lib/modules/3.4.34/systemtap/why.ko': File exists
 
When I remove the why.ko file from the /lib/modules/3.4.34/systemtap/
directory and run the same command again, I encounter:

root@android:/data/systemtap-2.0-macharm/bin # ./staprun -vvvvv why       

    output:
staprun:parse_modpath:364 inpath=why
staprun:parse_modpath:409 modpath="/lib/modules/3.4.34/systemtap/why.ko"
staprun:main:395 modpath="/lib/modules/3.4.34/systemtap/why.ko",
modname="why"
staprun:init_staprun:313 init_staprun
staprun:insert_module:73 inserting module
/lib/modules/3.4.34/systemtap/why.ko
staprun:insert_module:99 module options: _stp_bufsize=0
ERROR: Unable to canonicalize path "/lib/modules/3.4.34/systemtap/why.ko":
No such file or directory
Error inserting module '/lib/modules/3.4.34/systemtap/why.ko': Unknown
symbol in module


This would actually be the same output I would get before I copy the why.ko
file to the ‘lib/modules/3.4.34/systemtap directory. Any feedback on this
topic is greatly appreciated.
 
Thanks




--
View this message in context: http://sourceware-org.1504.n7.nabble.com/Error-inserting-module-and-File-exists-error-while-running-staprun-on-target-device-tp233663.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error inserting module and File exists error while running staprun on target device
  2013-05-30  3:52 Error inserting module and File exists error while running staprun on target device Link2ThePast
@ 2013-05-30 15:07 ` Lukas Berk
       [not found]   ` <FC085370EF6E994E9EC3E4C68F0AF49D013357BC@IRSMSX153.ger.corp.intel.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Lukas Berk @ 2013-05-30 15:07 UTC (permalink / raw)
  To: Link2ThePast; +Cc: systemtap

[-- Attachment #1: Type: text/plain, Size: 876 bytes --]

Hey,

* Link2ThePast <jose.pena.pe@gmail.com> [2013-05-29 23:52]:
> Hello everyone, 
> 
> I am having trouble executing systemtap .ko modules on my target device.
>  
> The target configuration I am using is as follows:
> Board: OMAP5432 EVM
> (http://www.svtronics.com/index.php?route=product/product&product_id=33) 
> OS: Android JellyBean
> Kernel: K3.4 
>  
> The host system is Ubuntu 12.04 x64.
>                          
> Reference instructions are from http://omappedia.org/wiki/Systemtap. 

I haven't had experience running systemtap on OMAP specifically, but judging
by the instructions provided, (stap) "v1.8 is required for kernel 3.4. v1.8
requires elfutils v 0.148" and I assume you're running stap 2.0 based on
the directory names.  Perhaps try with that stap version and ensure
you're running the elfutils listed.

Cheers,

Lukas


[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error inserting module and File exists error while running staprun on target device
       [not found]   ` <FC085370EF6E994E9EC3E4C68F0AF49D013357BC@IRSMSX153.ger.corp.intel.com>
@ 2013-06-01 16:36     ` Frederic TURGIS
  0 siblings, 0 replies; 3+ messages in thread
From: Frederic TURGIS @ 2013-06-01 16:36 UTC (permalink / raw)
  To: systemtap



Within Texas Instruments, we had systemtap running well on OMAP5430/Android. That issue does not remind me of anything. The move to any specific version of systemtap was mostly to get tapset updates, not for this kind of issue. But reusing older version is worth a try. Unfortunately, we won't be able to give help or test on our side, probably all people leveraging systemtap within TI have now left for obvious reasons

Regards
Fred

-----Original Message-----

From: systemtap-owner@sourceware.org [mailto:systemtap-owner@sourceware.org] On Behalf Of Lukas Berk
Sent: Thursday, May 30, 2013 5:08 PM
To: Link2ThePast
Cc: systemtap@sourceware.org
Subject: Re: Error inserting module and File exists error while running staprun on target device

Hey,

* Link2ThePast <jose.pena.pe@gmail.com> [2013-05-29 23:52]:
> Hello everyone,
> 
> I am having trouble executing systemtap .ko modules on my target device.
>  
> The target configuration I am using is as follows:
> Board: OMAP5432 EVM
> (http://www.svtronics.com/index.php?route=product/product&product_id=3
> 3)
> OS: Android JellyBean
> Kernel: K3.4
>  
> The host system is Ubuntu 12.04 x64.
>                          
> Reference instructions are from http://omappedia.org/wiki/Systemtap. 

I haven't had experience running systemtap on OMAP specifically, but judging by the instructions provided, (stap) "v1.8 is required for kernel 3.4. v1.8 requires elfutils v 0.148" and I assume you're running stap 2.0 based on the directory names.  Perhaps try with that stap version and ensure you're running the elfutils listed.

Cheers,

Lukas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-01 16:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-30  3:52 Error inserting module and File exists error while running staprun on target device Link2ThePast
2013-05-30 15:07 ` Lukas Berk
     [not found]   ` <FC085370EF6E994E9EC3E4C68F0AF49D013357BC@IRSMSX153.ger.corp.intel.com>
2013-06-01 16:36     ` Frederic TURGIS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).