qemu-cr16/docs/devel
Alex Bennée a622d64eea plugins: new hwprofile plugin
This is a plugin intended to help with profiling access to various
bits of system hardware. It only really makes sense for system
emulation.

It takes advantage of the recently exposed helper API that allows us
to see the device name (memory region name) associated with a device.

You can specify arg=read or arg=write to limit the tracking to just
reads or writes (by default it does both).

The pattern option:

  -plugin ./tests/plugin/libhwprofile.so,arg=pattern

will allow you to see the access pattern to devices, eg:

  gic_cpu @ 0xffffffc010040000
    off:00000000, 8, 1, 8, 1
    off:00000000, 4, 1, 4, 1
    off:00000000, 2, 1, 2, 1
    off:00000000, 1, 1, 1, 1

The source option:

  -plugin ./tests/plugin/libhwprofile.so,arg=source

will track the virtual source address of the instruction making the
access:

  pl011 @ 0xffffffc010031000
    pc:ffffffc0104c785c, 1, 4, 0, 0
    pc:ffffffc0104c7898, 1, 4, 0, 0
    pc:ffffffc010512bcc, 2, 1867, 0, 0

You cannot mix source and pattern.

Finally the match option allow you to limit the tracking to just the
devices you care about.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Robert Foley <robert.foley@linaro.org>
Reviewed-by: Robert Foley <robert.foley@linaro.org>
Message-Id: <20210213130325.14781-4-alex.bennee@linaro.org>
2021-02-18 08:16:55 +00:00
..
_templates
atomics.rst
bitops.rst
blkdebug.txt
blkverify.txt
block-coroutine-wrapper.rst
build-system.rst meson: accept either shared or static libraries if --disable-static 2021-02-08 14:43:54 +01:00
clocks.rst clock: Add new clock_has_source() function 2021-01-29 15:54:42 +00:00
control-flow-integrity.rst
decodetree.rst
fuzzing.rst docs/fuzz: add some information about OSS-Fuzz 2021-02-08 14:43:54 +01:00
index.rst multi-process: add the concept description to docs/devel/qemu-multiprocess 2021-02-09 20:53:56 +00:00
kconfig.rst meson: cleanup Kconfig.host handling 2021-01-02 21:03:36 +01:00
loads-stores.rst bswap.h: Remove unused float-access functions 2021-02-15 09:38:50 +00:00
lockcnt.txt
memory.rst
migration.rst
multi-process.rst multi-process: add the concept description to docs/devel/qemu-multiprocess 2021-02-09 20:53:56 +00:00
multi-thread-tcg.rst
multiple-iothreads.txt
qapi-code-gen.txt
qom.rst
qtest.rst
rcu.txt Docs/RCU: Correct sample code of qatomic_rcu_set 2021-01-12 12:38:03 +01:00
replay.txt
reset.rst
s390-dasd-ipl.rst
secure-coding-practices.rst
stable-process.rst
tcg-icount.rst
tcg-plugins.rst plugins: new hwprofile plugin 2021-02-18 08:16:55 +00:00
tcg.rst
testing.rst tests/docker: remove travis container 2021-02-15 09:38:33 +00:00
tracing.rst trace: update docs with meson build information 2021-02-01 11:23:04 +00:00
virtio-migration.txt
writing-qmp-commands.txt