Contributors: 8
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Ingo Molnar |
44 |
23.28% |
1 |
7.69% |
Ian Rogers |
39 |
20.63% |
4 |
30.77% |
Jiri Olsa |
35 |
18.52% |
1 |
7.69% |
Arnaldo Carvalho de Melo |
27 |
14.29% |
1 |
7.69% |
He Kuang |
16 |
8.47% |
1 |
7.69% |
Masami Hiramatsu |
14 |
7.41% |
3 |
23.08% |
Namhyung Kim |
13 |
6.88% |
1 |
7.69% |
Greg Kroah-Hartman |
1 |
0.53% |
1 |
7.69% |
Total |
189 |
|
13 |
|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
// SPDX-License-Identifier: GPL-2.0
#include <stdlib.h>
#include <dwarf.h>
#include <elfutils/libdw.h>
#include <elfutils/libdwfl.h>
#include <elfutils/version.h>
int test_libdw(void)
{
Dwarf *dbg = dwarf_begin(0, DWARF_C_READ);
return (long)dbg;
}
int test_libdw_unwind(void)
{
/*
* This function is guarded via: __nonnull_attribute__ (1, 2).
* Passing '1' as arguments value. This code is never executed,
* only compiled.
*/
dwfl_thread_getframes((void *) 1, (void *) 1, NULL);
return 0;
}
int test_libdw_getlocations(void)
{
Dwarf_Addr base, start, end;
Dwarf_Attribute attr;
Dwarf_Op *op;
size_t nops;
ptrdiff_t offset = 0;
return (int)dwarf_getlocations(&attr, offset, &base, &start, &end, &op, &nops);
}
int test_libdw_getcfi(void)
{
Dwarf *dwarf = NULL;
return dwarf_getcfi(dwarf) == NULL;
}
int test_elfutils(void)
{
Dwarf_CFI *cfi = NULL;
dwarf_cfi_end(cfi);
return 0;
}
int main(void)
{
return test_libdw() + test_libdw_unwind() + test_libdw_getlocations() +
test_libdw_getcfi() + test_elfutils();
}