{"action":"created","issue":{"url":"https://api.github.com/repos/iovisor/bcc/issues/457","repository_url":"https://api.github.com/repos/iovisor/bcc","labels_url":"https://api.github.com/repos/iovisor/bcc/issues/457/labels{/name}","comments_url":"https://api.github.com/repos/iovisor/bcc/issues/457/comments","events_url":"https://api.github.com/repos/iovisor/bcc/issues/457/events","html_url":"https://github.com/iovisor/bcc/pull/457","id":144322952,"number":457,"title":"Lua Tools for BCC","user":{"login":"vmg","id":42793,"avatar_url":"https://avatars.githubusercontent.com/u/42793?v=3","gravatar_id":"","url":"https://api.github.com/users/vmg","html_url":"https://github.com/vmg","followers_url":"https://api.github.com/users/vmg/followers","following_url":"https://api.github.com/users/vmg/following{/other_user}","gists_url":"https://api.github.com/users/vmg/gists{/gist_id}","starred_url":"https://api.github.com/users/vmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmg/subscriptions","organizations_url":"https://api.github.com/users/vmg/orgs","repos_url":"https://api.github.com/users/vmg/repos","events_url":"https://api.github.com/users/vmg/events{/privacy}","received_events_url":"https://api.github.com/users/vmg/received_events","type":"User","site_admin":true},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-03-29T16:50:09Z","updated_at":"2016-03-30T19:52:34Z","closed_at":"2016-03-30T18:58:27Z","pull_request":{"url":"https://api.github.com/repos/iovisor/bcc/pulls/457","html_url":"https://github.com/iovisor/bcc/pull/457","diff_url":"https://github.com/iovisor/bcc/pull/457.diff","patch_url":"https://github.com/iovisor/bcc/pull/457.patch"},"body":"As promised in https://github.com/iovisor/bcc/issues/455.\r\n\r\nThis is a code dump of a Lua(JIT) wrapper that we've developed internally at GitHub. Some notes:\r\n\r\n1. The code is Apache 2 licensed, like the rest of BCC.\r\n2. The code contains a few third party helpers to make writing Lua probes easier. All the dependencies are MIT licensed and 100% compatible with the rest of the wrapper. All due attribution has been added to the corresponding files.\r\n3. The wrapper has been put in `src/lua`, so it sits next to the `src/python` wrapper and the actual implementation.\r\n4. Some of the existing Python tools have been rewritten to Lua as a sample of how to use the new APIs. They can be found under `examples/lua`.\r\n5. The best place to learn how to write a probe using these bindings is `memleak.lua`. It's a full port of @brendangregg's `memleak.py` and should have identical behavior.\r\n\r\nI'm aware this is a lot of code to go through. I'm not sure what else can I do to help you approve the binding and get it merged on the tree (or whether you trust my dubious Lua expertise, hehe), but I'm here to answer all your questions.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/iovisor/bcc/issues/comments/203606284","html_url":"https://github.com/iovisor/bcc/pull/457#issuecomment-203606284","issue_url":"https://api.github.com/repos/iovisor/bcc/issues/457","id":203606284,"user":{"login":"vmg","id":42793,"avatar_url":"https://avatars.githubusercontent.com/u/42793?v=3","gravatar_id":"","url":"https://api.github.com/users/vmg","html_url":"https://github.com/vmg","followers_url":"https://api.github.com/users/vmg/followers","following_url":"https://api.github.com/users/vmg/following{/other_user}","gists_url":"https://api.github.com/users/vmg/gists{/gist_id}","starred_url":"https://api.github.com/users/vmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmg/subscriptions","organizations_url":"https://api.github.com/users/vmg/orgs","repos_url":"https://api.github.com/users/vmg/repos","events_url":"https://api.github.com/users/vmg/events{/privacy}","received_events_url":"https://api.github.com/users/vmg/received_events","type":"User","site_admin":true},"created_at":"2016-03-30T19:52:34Z","updated_at":"2016-03-30T19:52:34Z","body":"🎉 🎉 🎉 \r\n\r\nExciting! Thanks for the feedback and support!"}}