Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 388532

Summary: Allow running stap scripts locally
Product: [Tools] Linux Tools Reporter: Alexander Kurtakov <akurtakov>
Component: SystemtapAssignee: Otavio Pontes <obusatto>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: anithra, lberk, pmuldoon
Version: unspecified   
Target Milestone: 2.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Alexander Kurtakov CLA 2012-08-31 10:04:11 EDT
This will gain us at least the following:
1. no need to setup and start stap-server
2. no need to configure and connect to server in the plugin / fewer user clicks
3. no need for escalated privileges for many things

This simplifies to make it easier for users to try stuff. And if a tool requires too many preparational steps many will give up.
Comment 1 Otavio Pontes CLA 2012-09-10 09:19:47 EDT

(In reply to comment #0)
> This will gain us at least the following:
> 1. no need to setup and start stap-server

Maybe there is something wrong with the manual, but you don't need to set up stap-server to run SystemTap locally or remotely. The plugin uses ssh to run SystemTap in both cases. So to use it locally you need to set up a ssh server in the local machine and use it as it was a remote machine.

> 2. no need to configure and connect to server in the plugin / fewer user
> clicks

That would be really nice. Local systemtap should be the default and it should run it without using ssh. If the user needs remote systemtap he/she could set that up in the preferences.

> 3. no need for escalated privileges for many things
> 
> This simplifies to make it easier for users to try stuff. And if a tool
> requires too many preparational steps many will give up.
Comment 2 Lukas Berk CLA 2012-10-16 11:20:10 EDT
I've added functionality and api to run a stap script locally in commit 0a3006a

The ability to access the 'run locally' option will be added in the fix for
https://bugs.eclipse.org/bugs/show_bug.cgi?id=388533
Comment 3 Alexander Kurtakov CLA 2013-01-07 17:02:56 EST
Closing as I just verified it works.