| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
WebRunner is a service to execute user-supplied untrusted machine code on your server without compromising its security.
Key features:
Configure and compile:
./configure.py
ninjaRecommended: install WebRunner to /usr/sbin/webrunner and register as a systemd service:
sudo ninja installAfter installation you can start the service with sudo ninja start and terminate it with sudo ninja stop
Alternative: run WebRunner without installation:
./webrunner # webrunner -h to list optionsWebRunner commands must follow the pattern http://server[:port]/machine-id/command[?query]
The monitor command is used to check server status.
Method: HEAD
URL: http://server[:port]/machine-id/monitor
A server would respond HTTP status ok 200 (OK) to this command.
curl --head "http://localhost:8081/local/monitor"The run command is used to benchmark and analyze a function in an ELF object. The ELF object must be sent in the request body.
Method: POST
Content-Type: application/octet-stream
URL: http://server[:port]/machine-id/run?kernel=kernel-name&[param1=value1¶m2=value2&...]
The kernel parameter specifies kernel type. Query parameters after it depend on the kernel type and specify parameters of the kernel run. Look at XML specifications in the /src/kernels directory for permitted kernel types and their parameters.
The server would respond with a line of names of hardware performance counters and their values (one per line)
wget --header="Content-Type:application/octet-stream" --post-file=sdot.o \
"http://localhost:8081/local/run?kernel=sdot&n=10000&incx=1&incy=2"| Back | FazBrowse Home | New Git URL |