[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 23/26] tests/plugin: allow libinsn.so per-CPU counts
From: |
Emilio Cota |
Subject: |
Re: [PATCH v3 23/26] tests/plugin: allow libinsn.so per-CPU counts |
Date: |
Tue, 8 Feb 2022 21:39:36 -0500 |
(Sorry if this comes out garbled, I'm on a web editor not a proper email client)
On Fri, Feb 4, 2022 at 3:49 PM Alex Bennée <alex.bennee@linaro.org> wrote:
> +typedef struct {
> + uint64_t last_pc;
> + uint64_t insn_count;
> +} InstructionCount;
This will need padding to take up a cache line.
> +static InstructionCount counts[MAX_CPUS];
And this will need alignment so that it begins on a cache line as well
(although if the struct is aligned that might be enough).
See examples of QEMU_ALIGNED, e.g. in struct qht_bucket.
Doing this will avoid cache line ping-pong across vCPU threads
and therefore improve scalability.
+static bool do_frequency;
AFAICT is unused.
Thanks,
Emilio
- [PATCH v3 15/26] tests: Update CentOS 8 container to CentOS Stream 8, (continued)
- [PATCH v3 15/26] tests: Update CentOS 8 container to CentOS Stream 8, Alex Bennée, 2022/02/04
- [PATCH v3 21/26] plugins: add helper functions for coverage plugins, Alex Bennée, 2022/02/04
- [PATCH v3 22/26] contrib/plugins: add a drcov plugin, Alex Bennée, 2022/02/04
- [PATCH v3 20/26] tracing: excise the tcg related from tracetool, Alex Bennée, 2022/02/04
- [PATCH v3 25/26] target/i386: use CPU_LOG_INT for IRQ servicing, Alex Bennée, 2022/02/04
- [PATCH v3 18/26] tracing: remove TCG memory access tracing, Alex Bennée, 2022/02/04
- [PATCH v3 16/26] tests/tcg/sh4: disable another unreliable test, Alex Bennée, 2022/02/04
- [PATCH v3 23/26] tests/plugin: allow libinsn.so per-CPU counts, Alex Bennée, 2022/02/04
- [PATCH v3 17/26] docs: remove references to TCG tracing, Alex Bennée, 2022/02/04
- [PATCH v3 19/26] tracing: remove the trace-tcg includes from the build, Alex Bennée, 2022/02/04