[PATCH 01/13] libebl [1/13]: api for perf register handling, start with x86_64

Serhei Makarov serhei@serhei.io
Mon Mar 17 14:22:11 GMT 2025



On Sun, Mar 16, 2025, at 7:12 PM, Serhei Makarov wrote:
> +bool
> +x86_64_set_initial_registers_sample (const Dwarf_Word *regs, uint32_t 
> n_regs,
> +				     uint64_t regs_mask, uint32_t abi,
> +				     ebl_tid_registers_t *setfunc,
> +				     void *arg)
> +{
> +#if !defined(__x86_64__) || !defined(__linux__)
> +  return false;
> +#else /* __x86_64__ */
Found that coding like this triggers -Werror=unused-parameter on non-x86. I plan to fix this in the next version of the patch.

-- 
All the best,
    Serhei
    http://serhei.io


More information about the Elfutils-devel mailing list