Skip to content

Doesn't work with google container os (GKE) #47

@dalehamel

Description

@dalehamel

It looks like the image used by the tracer doesn't support GKE, as it doesn't have the necessary headers, I get the following output when I try to run the trace:

if your program has maps to print, send a SIGINT using Ctrl-C, if you want to interrupt the execution send SIGINT two times
chdir(/lib/modules/4.14.65+/build): No such file or directory
definitions.h:1:10: fatal error: 'net/sock.h' file not found
Unknown struct/union: 'sock'

Looking at the image build, it's not surprising that this is the result. @jasonkeene 's towel tool, which is quite a similar tool, solves the problem of fetching google's headers in this way:

https://github.com/jasonkeene/towel/blob/master/docker/download-chromium-os-kernel-source

Perhaps some logic could be added to check the host OS version, and if it is google's container os download the headers using a similar methodology?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions