Bug 4409 - qemu password is asked in the console when using systemtap plugin
Summary: qemu password is asked in the console when using systemtap plugin
Status: RESOLVED FIXED
Alias: None
Product: ADT Manual
Classification: Documentation
Component: SDK (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Low normal
Target Milestone: 1.5
Assignee: Scott Rifenbark
QA Contact:
URL:
Whiteboard: 14 October 2013: Changed doc requirem...
Depends on:
Blocks:
 
Reported: 2013-04-24 11:00 UTC by Alexandru Georgescu
Modified: 2013-10-14 18:14 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Done (doc changes complete)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Georgescu 2013-04-24 11:00:03 UTC
eclipse-poky dc9a609c68fe4a6bbbf34d418fd6611489c1d6f7
Host: Fedora 18


STEPS TO REPRODUCE
1. Install yocto eclipse plugin, open systemtap tool and fill in all the necessary data
2. When trying to connect to the qemuimage, I have the following output in the background:

[yocto@localhost scripts]$ ./eclipse/eclipse 

** (Eclipse:14984): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-2VRD2BayyA: Connection refused
root@192.168.7.4's password:
Comment 1 Jessica 2013-08-05 23:20:53 UTC
Please add a docmentation note that qemu maybe waiting for user to enter password in console
Comment 2 Alexandru Georgescu 2013-08-06 06:27:28 UTC
(In reply to comment #1)
> Please add a docmentation note that qemu maybe waiting for user to enter
> password in console

Hi Jessica, 
Is this comment for Scott?
Comment 3 Jessica 2013-08-13 22:36:20 UTC
http://git.yoctoproject.org/cgit.cgi/eclipse-poky-kepler/commit/?id=f1fc72a31f7e51364ba3bccf45c028e694aefb9a

Scott,

Please add a note that systemtap is assumed you can establish ssh connection to remote target, please refer to crosstap wiki page for details on verifying ssh connection https://wiki.yoctoproject.org/wiki/Tracing_and_Profiling#systemtap
Comment 4 Alexandru Georgescu 2013-09-30 12:24:37 UTC
Scott, please let me know when the comment is finished so I can close the bug.
Comment 5 Scott Rifenbark 2013-10-04 13:59:37 UTC
Hi, 

Looks like I still need this note somewhere before this bug can really be RESOLVED.  However, in looking it over, I am a bit confused.  There is a section in the ADT manual that overviews the user-space tools.  Here is what it says about systemtap:

"SystemTap: A free software infrastructure that simplifies information gathering about a running Linux system. This information helps you diagnose performance or functional problems. SystemTap is not available as a user-space tool through the Eclipse IDE Yocto Plug-in. See http://sourceware.org/systemtap for more information on SystemTap. For examples on how to setup and use this tool, see the "SystemTap" section in the Yocto Project Profiling and Tracing Manual."

As you can see, it says it is not available as a user-space tool through the Eclipse IDE Yocto Plug-in.  The actual tool is shown and referenced quite a bit in our "Profiling and Tracing" manual that we never update.  This is the manual that Tom Zanussi created but we decided to leave in its original form between releases. 

So, my question is thus -- Is the bit about SystemTap incorrect where I am saying it is not available from the plug-in?  If so, then I guess the only way a user could use it is stand-alone?  

Scott
Comment 6 Alexandru Georgescu 2013-10-09 14:24:50 UTC
(In reply to comment #5)
> Hi, 
> 
> Looks like I still need this note somewhere before this bug can really be
> RESOLVED.  However, in looking it over, I am a bit confused.  There is a
> section in the ADT manual that overviews the user-space tools.  Here is what
> it says about systemtap:
> 
> "SystemTap: A free software infrastructure that simplifies information
> gathering about a running Linux system. This information helps you diagnose
> performance or functional problems. SystemTap is not available as a
> user-space tool through the Eclipse IDE Yocto Plug-in. See
> http://sourceware.org/systemtap for more information on SystemTap. For
> examples on how to setup and use this tool, see the "SystemTap" section in
> the Yocto Project Profiling and Tracing Manual."
> 
> As you can see, it says it is not available as a user-space tool through the
> Eclipse IDE Yocto Plug-in.  The actual tool is shown and referenced quite a
> bit in our "Profiling and Tracing" manual that we never update.  This is the
> manual that Tom Zanussi created but we decided to leave in its original form
> between releases. 
> 
> So, my question is thus -- Is the bit about SystemTap incorrect where I am
> saying it is not available from the plug-in?  If so, then I guess the only
> way a user could use it is stand-alone?  
> 
> Scott

I think Jessica may answer your question more precise because she designed the plugin but I will try to give you an answer from my point of view.
So AFAIK, the plugin calls the crosstap script, with some parameters that you enter in the plugin interface (in Eclipse). The output of the crosstap script is displayed in Eclipse that the user can view and decide what to do with that data.
The plugin mimics the user commands in the console like crosstap@.... and so on. 


Also, looking in the tracing and profiling wiki: https://wiki.yoctoproject.org/wiki/Tracing_and_Profiling#systemtap I couldn't see any reference to eclipse usage so I think we lack the documentation on this one on the eclipse side? I usually tested this from the common sense and I didn't need the doc because the tool is straight forward. Also in the wiki I mentioned the behavior of the tool is specified.
Comment 7 Jessica 2013-10-14 17:54:51 UTC
Scott and Alex,

I think the issue reported here is resolved since we've changed systemtap behaviro that any password requirement should show in eclipse plugin instead of hiding in the terminal.

But the note is still applies that eclipse plugin relies on systemtap script which depends on you can establish remote connection via SSH.

Thanks,
Jessica
Comment 8 Scott Rifenbark 2013-10-14 18:14:49 UTC
Hi, 

I added a note in the setup section for SystemTap in the profiling manual.  This is the only logical spot where we talk about the ssh connections needed.  See http://www.yoctoproject.org/docs/1.5/profile-manual/profile-manual.html#systemtap-setup for the changes.  

I changed the doc requirements to "Done".

Thanks, 
Scott