{"action":"created","issue":{"url":"https://api.github.com/repos/iovisor/bcc/issues/534","repository_url":"https://api.github.com/repos/iovisor/bcc","labels_url":"https://api.github.com/repos/iovisor/bcc/issues/534/labels{/name}","comments_url":"https://api.github.com/repos/iovisor/bcc/issues/534/comments","events_url":"https://api.github.com/repos/iovisor/bcc/issues/534/events","html_url":"https://github.com/iovisor/bcc/issues/534","id":154126839,"number":534,"title":"pre-compiled bpf bytecode","user":{"login":"erggo","id":739690,"avatar_url":"https://avatars.githubusercontent.com/u/739690?v=3","gravatar_id":"","url":"https://api.github.com/users/erggo","html_url":"https://github.com/erggo","followers_url":"https://api.github.com/users/erggo/followers","following_url":"https://api.github.com/users/erggo/following{/other_user}","gists_url":"https://api.github.com/users/erggo/gists{/gist_id}","starred_url":"https://api.github.com/users/erggo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erggo/subscriptions","organizations_url":"https://api.github.com/users/erggo/orgs","repos_url":"https://api.github.com/users/erggo/repos","events_url":"https://api.github.com/users/erggo/events{/privacy}","received_events_url":"https://api.github.com/users/erggo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-10T23:12:06Z","updated_at":"2016-05-11T04:01:07Z","closed_at":null,"body":"Is there a way to pre-compile the bpf source?\r\nIt could store already compiled bpf bytecode in order not to recompile the C source unnecessarily. \r\nIn Python I can get to bpf bytecode through dump_func ,but I do not see an API to load bpf directly.\r\n"},"comment":{"url":"https://api.github.com/repos/iovisor/bcc/issues/comments/218356112","html_url":"https://github.com/iovisor/bcc/issues/534#issuecomment-218356112","issue_url":"https://api.github.com/repos/iovisor/bcc/issues/534","id":218356112,"user":{"login":"4ast","id":12205493,"avatar_url":"https://avatars.githubusercontent.com/u/12205493?v=3","gravatar_id":"","url":"https://api.github.com/users/4ast","html_url":"https://github.com/4ast","followers_url":"https://api.github.com/users/4ast/followers","following_url":"https://api.github.com/users/4ast/following{/other_user}","gists_url":"https://api.github.com/users/4ast/gists{/gist_id}","starred_url":"https://api.github.com/users/4ast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4ast/subscriptions","organizations_url":"https://api.github.com/users/4ast/orgs","repos_url":"https://api.github.com/users/4ast/repos","events_url":"https://api.github.com/users/4ast/events{/privacy}","received_events_url":"https://api.github.com/users/4ast/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T04:01:07Z","updated_at":"2016-05-11T04:01:07Z","body":"2 seconds to compile c to bpf ?! Something is wrong. It should not take that long.\r\nMy largest C file with 2k lines of c code and a lot of #include compiles in 0.27 sec.\r\nTypical tracing file take 0.1-0.2 due to amount of kernel headers.\r\nWe'll eventually switch to pre-compiled kernel headers that will speed up compilation to <0.1\r\nDid you build llvm/clang in debug mode by any chance? What is the size of libbcc.so ?\r\nThat would explain 10x difference.\r\n"}}