Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add litsupport module to collect QEMU plugin metrics #124

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lukel97
Copy link
Contributor

@lukel97 lukel97 commented May 14, 2024

This is a pretty basic module I've been using that I thought I'd post here in case others find it useful.
It allows you to capture the logs from QEMU plugins and store them in the metrics for comparison with compare.py.

For example you can use the example plugin libinsn.so to gather the dynamic instruciton count:

$ cmake -B build -DTEST_SUITE_RUN_UNDER='qemu-foo -plugin libinsn.so -d plugin' \
  -DTEST_SUITE_EXTRA_LIT_MODULES=qemulog \
  -DTEST_SUITE_USER_MODE_EMULATION=ON
$ cmake --build build
$ lit build -o result.json
$ ./compare.py result.json -m 'total insns'

At the moment it only works if the plugin outputs metrics in 'foo:count' format, with one on each line.

This is a pretty basic module I've been using that I thought I'd post here in case others find it useful.
It allows you to capture the logs from QEMU plugins and store them in the metrics for comparison with compare.py.

For example you can use the example plugin libinsn.so to gather the dynamic instruciton count:

```
$ cmake -B build -DTEST_SUITE_RUN_UNDER='qemu-foo -plugin libinsn.so -d plugin' \
  -DTEST_SUITE_EXTRA_LIT_MODULES=qemulog \
  -DTEST_SUITE_USER_MODE_EMULATION=ON
$ cmake --build build
$ lit build -o result.json
$ ./compare.py result.json -m 'total insns'
```

At the moment it only works if the plugin outputs metrics in 'foo:count' format, with one on each line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant