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

Kernel with CONFIG_FTRACE_SYSCALLS kubectl-trace #8637

Closed
alban opened this issue Jul 3, 2020 · 4 comments · Fixed by #9393
Closed

Kernel with CONFIG_FTRACE_SYSCALLS kubectl-trace #8637

alban opened this issue Jul 3, 2020 · 4 comments · Fixed by #9393
Labels
area/guest-vm General configuration issues with the minikube guest VM kind/feature Categorizes issue or PR as related to a new feature. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@alban
Copy link
Contributor

alban commented Jul 3, 2020

I would like the Minikube kernel to be compiled with CONFIG_FTRACE_SYSCALLS (basic tracer to catch the syscall entry and exit events).

This is to be able to use kubectl-trace on Minikube.
Related issue in kubectl-trace: iovisor/kubectl-trace#120

Symptoms:

$ kubectl trace run minikube -e 'tracepoint:syscalls:sys_enter_open { printf("%s %s\n", comm, str(args->filename)); }'
trace 09ecf3b8-bc53-11ea-ac93-c85b763781a4 created

$ kubectl logs kubectl-trace-09ecf3b8-bc53-11ea-ac93-c85b763781a4-4m667
if your program has maps to print, send a SIGINT using Ctrl-C, if you want to interrupt the execution send SIGINT two times
ERROR: tracepoint not found: syscalls:sys_enter_open
exit status 1

This is a follow-up to previous efforts to make Minikube work with BPF tools in Inspektor Gadget. See issue #8556 that added CONFIG_IKHEADERS.

cc @mauriciovasquezbernal @marga-kinvolk

@medyagh medyagh added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 7, 2020
@medyagh
Copy link
Member

medyagh commented Jul 7, 2020

if this doens't break minikube I would happy to accept PR for it
CC
@afbjorklund

@medyagh medyagh added the priority/backlog Higher priority than priority/awaiting-more-evidence. label Jul 7, 2020
@alban alban mentioned this issue Jul 29, 2020
3 tasks
@priyawadhwa
Copy link

If anyone is interested in contributing a PR, please comment here.

@afbjorklund afbjorklund added the area/guest-vm General configuration issues with the minikube guest VM label Aug 13, 2020
@afbjorklund
Copy link
Collaborator

I don't know if this has performance implications (i.e. when not used), but otherwise go ahead and add it to the config...

@dalehamel
Copy link
Contributor

Howdy, I've filed #9393 which should resolve this issue.

tstromberg added a commit that referenced this issue Oct 21, 2020
Update default linux config to support ftrace, for bpf tracing, fixes #8637
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/guest-vm General configuration issues with the minikube guest VM kind/feature Categorizes issue or PR as related to a new feature. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants