{"action":"created","issue":{"url":"https://api.github.com/repos/iovisor/bcc/issues/1754","repository_url":"https://api.github.com/repos/iovisor/bcc","labels_url":"https://api.github.com/repos/iovisor/bcc/issues/1754/labels{/name}","comments_url":"https://api.github.com/repos/iovisor/bcc/issues/1754/comments","events_url":"https://api.github.com/repos/iovisor/bcc/issues/1754/events","html_url":"https://github.com/iovisor/bcc/issues/1754","id":322429806,"number":1754,"title":"ISRA breaks kprobes","user":{"login":"bobrik","id":89186,"avatar_url":"https://avatars0.githubusercontent.com/u/89186?v=4","gravatar_id":"","url":"https://api.github.com/users/bobrik","html_url":"https://github.com/bobrik","followers_url":"https://api.github.com/users/bobrik/followers","following_url":"https://api.github.com/users/bobrik/following{/other_user}","gists_url":"https://api.github.com/users/bobrik/gists{/gist_id}","starred_url":"https://api.github.com/users/bobrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobrik/subscriptions","organizations_url":"https://api.github.com/users/bobrik/orgs","repos_url":"https://api.github.com/users/bobrik/repos","events_url":"https://api.github.com/users/bobrik/events{/privacy}","received_events_url":"https://api.github.com/users/bobrik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-11T20:48:17Z","updated_at":"2018-05-16T02:46:30Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"GCC can do optimizations and rename functions in the kernel (see [stackoverflow question](https://stackoverflow.com/a/18914402)).\r\n\r\n* amd64:\r\n\r\n```\r\n$ cat /proc/kallsyms | fgrep do_wakeup\r\nffffffffa2483420 t ttwu_do_wakeup\r\n```\r\n\r\n* arm64:\r\n\r\n```\r\n$ cat /proc/kallsyms | fgrep do_wakeup\r\nffff8692fe2a6ff8 t ttwu_do_wakeup.isra.20\r\n```\r\n\r\nWe have tools that directly attach to `ttwu_do_wakeup` kprobe, and ISRA breaks those.\r\n\r\nWhat's the suggested way of working around this?"},"comment":{"url":"https://api.github.com/repos/iovisor/bcc/issues/comments/389377612","html_url":"https://github.com/iovisor/bcc/issues/1754#issuecomment-389377612","issue_url":"https://api.github.com/repos/iovisor/bcc/issues/1754","id":389377612,"user":{"login":"bobrik","id":89186,"avatar_url":"https://avatars0.githubusercontent.com/u/89186?v=4","gravatar_id":"","url":"https://api.github.com/users/bobrik","html_url":"https://github.com/bobrik","followers_url":"https://api.github.com/users/bobrik/followers","following_url":"https://api.github.com/users/bobrik/following{/other_user}","gists_url":"https://api.github.com/users/bobrik/gists{/gist_id}","starred_url":"https://api.github.com/users/bobrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobrik/subscriptions","organizations_url":"https://api.github.com/users/bobrik/orgs","repos_url":"https://api.github.com/users/bobrik/repos","events_url":"https://api.github.com/users/bobrik/events{/privacy}","received_events_url":"https://api.github.com/users/bobrik/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T02:46:30Z","updated_at":"2018-05-16T02:46:30Z","author_association":"CONTRIBUTOR","body":"Can it be related to functions being in modules? I've tried a few from modules and each failed, while built-in ones worked, doesn't matter isra or not.\r\n\r\n```\r\n$ cat /proc/kallsyms | grep -E '(ttwu_do_wakeup.isra.|tcp_options.isra).*'\r\nffff8692fe2a6ff8 t ttwu_do_wakeup.isra.20\r\nffff851fa2b99b80 t tcp_options.isra.1\t[nf_conntrack]\r\n```\r\n\r\n```\r\nivan@36com209:~$ sudo /usr/share/bcc/tools/funccount -d 1 tcp_options.isra.1\r\nNo functions matched by pattern ^tcp_options.isra.1$\r\nivan@36com209:~$ sudo /usr/share/bcc/tools/funccount -d 1 ttwu_do_wakeup.isra.20\r\nTracing 1 functions for \"ttwu_do_wakeup.isra.20\"... Hit Ctrl-C to end.\r\n\r\nFUNC                                    COUNT\r\nttwu_do_wakeup.isra.20                   1393\r\nDetaching...\r\n```"}}
{"actor":{"display_login":"bobrik"}}