diff options
| author | Peter Maydell | 2021-06-25 13:00:16 +0200 |
|---|---|---|
| committer | Peter Maydell | 2021-06-25 13:00:16 +0200 |
| commit | 050cee12315536aba18a73c8dea21116a9c90ffa (patch) | |
| tree | 6f3ca27d2ec59244add639e04c256522020ef704 /plugins/api.c | |
| parent | Merge remote-tracking branch 'remotes/kraxel/tags/ui-20210624-pull-request' i... (diff) | |
| parent | plugins/api: expose symbol lookup to plugins (diff) | |
| download | qemu-050cee12315536aba18a73c8dea21116a9c90ffa.tar.gz qemu-050cee12315536aba18a73c8dea21116a9c90ffa.tar.xz qemu-050cee12315536aba18a73c8dea21116a9c90ffa.zip | |
Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-updates-250621-1' into staging
A few miscellaneous fixes
- tweak tcg/kvm based GIC tests
- add header to MTTCG docs
- cleanup checkpatch handling
- GitLab feature and bug request templates
- symbol resolution helper for plugin API
- skip hppa/s390x signals test until fixes arrive
# gpg: Signature made Fri 25 Jun 2021 10:10:57 BST
# gpg: using RSA key 6685AE99E75167BCAFC8DF35FBD0DB095A9E2A44
# gpg: Good signature from "Alex Bennée (Master Work Key) <alex.bennee@linaro.org>" [full]
# Primary key fingerprint: 6685 AE99 E751 67BC AFC8 DF35 FBD0 DB09 5A9E 2A44
* remotes/stsquad/tags/pull-testing-updates-250621-1:
plugins/api: expose symbol lookup to plugins
tests/tcg: skip the signals test for hppa/s390x for now
GitLab: Add "Feature Request" issue template.
GitLab: Add "Bug" issue reporting template
scripts/checkpatch: roll diff tweaking into checkpatch itself
docs/devel: Add a single top-level header to MTTCG's doc
tests/acceptance: tweak the tcg/kvm tests for virt
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'plugins/api.c')
| -rw-r--r-- | plugins/api.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/api.c b/plugins/api.c index 817c9b6b69..332e2c60e2 100644 --- a/plugins/api.c +++ b/plugins/api.c @@ -233,6 +233,12 @@ char *qemu_plugin_insn_disas(const struct qemu_plugin_insn *insn) return plugin_disas(cpu, insn->vaddr, insn->data->len); } +const char *qemu_plugin_insn_symbol(const struct qemu_plugin_insn *insn) +{ + const char *sym = lookup_symbol(insn->vaddr); + return sym[0] != 0 ? sym : NULL; +} + /* * The memory queries allow the plugin to query information about a * memory access. |
