Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing support for anonymous types #3083

Open
ttreyer opened this issue Mar 21, 2024 · 0 comments
Open

Missing support for anonymous types #3083

ttreyer opened this issue Mar 21, 2024 · 0 comments
Labels
bug Something isn't working priority: low

Comments

@ttreyer
Copy link
Contributor

ttreyer commented Mar 21, 2024

While extremely unlikely, a user program could have a function taking anonymous union/enum, as demonstrated by the function uprobeFunction3 in "tests/testprogs/uprobe_test.c":

int uprobeFunction3(
    enum { A, B, C } e,
    union {
      int a;
      char b;
    } u __attribute__((unused)))
{
  return e;
}

However, listing the arguments of the function with bpftrace -l 'uprobe:./testprogs/uprobe_test:uprobeFunction3' will not list the type of the arguments correctly.

What reproduces the bug? Provide code if possible.

Uncomment the "anonymous param type" in "tests/runtime/dwarf".

@ttreyer ttreyer added the bug Something isn't working label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: low
Projects
None yet
Development

No branches or pull requests

2 participants