xref: /kernel/linux/linux-6.6/tools/build/feature/test-dwarf_getlocations.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/build/feature/
162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#include <stdlib.h>
362306a36Sopenharmony_ci#include <elfutils/libdw.h>
462306a36Sopenharmony_ci
562306a36Sopenharmony_ciint main(void)
662306a36Sopenharmony_ci{
762306a36Sopenharmony_ci	Dwarf_Addr base, start, end;
862306a36Sopenharmony_ci	Dwarf_Attribute attr;
962306a36Sopenharmony_ci	Dwarf_Op *op;
1062306a36Sopenharmony_ci        size_t nops;
1162306a36Sopenharmony_ci	ptrdiff_t offset = 0;
1262306a36Sopenharmony_ci        return (int)dwarf_getlocations(&attr, offset, &base, &start, &end, &op, &nops);
1362306a36Sopenharmony_ci}
14

Indexes created Thu Nov 07 10:32:03 CST 2024