Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giuseppe998e/kernelshark-xentrace-plugin-rs
XenTrace data processing interface for KernelShark in Rust.
https://github.com/giuseppe998e/kernelshark-xentrace-plugin-rs
ffi inferface kernelshark parser plugin rust xen xentrace
Last synced: about 1 month ago
JSON representation
XenTrace data processing interface for KernelShark in Rust.
- Host: GitHub
- URL: https://github.com/giuseppe998e/kernelshark-xentrace-plugin-rs
- Owner: giuseppe998e
- License: lgpl-2.1
- Created: 2021-08-16T15:15:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-28T11:39:26.000Z (10 months ago)
- Last Synced: 2024-05-02T04:09:05.205Z (9 months ago)
- Topics: ffi, inferface, kernelshark, parser, plugin, rust, xen, xentrace
- Language: Rust
- Homepage:
- Size: 393 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KernelShark XenTrace plugin in RUST [![](https://img.shields.io/github/v/tag/giuseppe998e/kernelshark-xentrace-plugin-rs?style=flat-square)](https://github.com/giuseppe998e/kernelshark-xentrace-plugin-rs/tags)
This plugin allows you to view the traces generated by XenTrace on KernelShark-v2.
This is a Rust implementation of a project for the final three-year degree exam at the University of Turin.
## Building
### Dependencies
- `rust` (v1.65+)
### Testing/Development
```shell
$ git clone https://github.com/giuseppe998e/kernelshark-xentrace-plugin-rs.git
$ cd kernelshark-xentrace-plugin-rs/
$ git checkout develop #opt
$ cargo build
```You can find the plugin file into `target/debug/libkernelshark_xentrace_plugin.so`
### Optimized for usage
```shell
$ git clone https://github.com/giuseppe998e/kernelshark-xentrace-plugin-rs.git
$ cd kernelshark-xentrace-plugin-rs/
$ cargo build --release
```You can find the plugin file into `target/release/libkernelshark_xentrace_plugin.so`
## Usage
```shell
$ export XENTRACE_CPUHZ=3.6G # Sets the CPU speed used (in (G)hz / (M)hz / (K)hz / hz )
$ kernelshark -p libkernelshark_xentrace_plugin.so xentrace.bin
```**N.B.** The plugin uses a predefined value of `2.4G` as CPU frequency.
## License
This plugin is released under the `GNU Lesser General Public License v2.1 (or later)`.
This plugin uses code from various projects:- [LibC](https://github.com/rust-lang/libc) released under `MIT` ot `Apache-2.0`.
- [XenTrace-Parser](https://github.com/giuseppe998e/xentrace-parser-rs) released under the `LGPLv2.1`.