{"action":"closed","issue":{"url":"https://api.github.com/repos/iovisor/bcc/issues/1706","repository_url":"https://api.github.com/repos/iovisor/bcc","labels_url":"https://api.github.com/repos/iovisor/bcc/issues/1706/labels{/name}","comments_url":"https://api.github.com/repos/iovisor/bcc/issues/1706/comments","events_url":"https://api.github.com/repos/iovisor/bcc/issues/1706/events","html_url":"https://github.com/iovisor/bcc/issues/1706","id":317709006,"number":1706,"title":"Unable to get stack trace from a TRACEPOINT_PROBE","user":{"login":"joelagnel","id":37460,"avatar_url":"https://avatars0.githubusercontent.com/u/37460?v=4","gravatar_id":"","url":"https://api.github.com/users/joelagnel","html_url":"https://github.com/joelagnel","followers_url":"https://api.github.com/users/joelagnel/followers","following_url":"https://api.github.com/users/joelagnel/following{/other_user}","gists_url":"https://api.github.com/users/joelagnel/gists{/gist_id}","starred_url":"https://api.github.com/users/joelagnel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelagnel/subscriptions","organizations_url":"https://api.github.com/users/joelagnel/orgs","repos_url":"https://api.github.com/users/joelagnel/repos","events_url":"https://api.github.com/users/joelagnel/events{/privacy}","received_events_url":"https://api.github.com/users/joelagnel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-25T16:46:55Z","updated_at":"2018-04-25T16:51:04Z","closed_at":"2018-04-25T16:51:04Z","author_association":"NONE","body":"Hi, I'm writing a tool to get the stack trace from a `TRACEPOINT_PROBE` however this needs a `ctx` (`struct pt_regs`). \r\n\r\nUnlike a kprobe, From a tracepoint probe, we don't have `ctx` though. Any ideas on how we can solve this? The program looks something like this\r\n```\r\nTRACEPOINT_PROBE(preemptirq, irq_enable)\r\n{\r\n    struct data_t data = {};\r\n\r\n    /* ISSUE: probes don't have ctx, what do you pass for stacks? */\r\n    data.stack_id = stack_traces.get_stackid(ctx, BPF_F_REUSE_STACKID);\r\n[...]\r\n}\r\n```\r\n\r\n`trace_dump_stack()` and `dump_stack()` don't need `ctx` so in theory it ought to be possible if we can export a helper for a non-ctx based stack trace mechanism?"}}
{"actor":{"display_login":"joelagnel"}}