| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c607fcc5-159a-e953-02c6-73c0f6edb163 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B12E:107350:E5BC7B:13C0437:6A625A20 |
| html-safe-nonce | 9fd50a777630319f8396f836b21bc03711db0a49bd31d1e655bcebf075fa6687 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTJFOjEwNzM1MDpFNUJDN0I6MTNDMDQzNzo2QTYyNUEyMCIsInZpc2l0b3JfaWQiOiI1NjY5MjE5NDkyMzM1NjA2MzA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7c7225d2c3db97e2ca6a4d9e1cf043382812b527e6ce9d49e35ea4d572638cd5 |
| hovercard-subject-tag | pull_request:3583741499 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/multikernel/kernelscript/pull/18/files |
| twitter:image | https://avatars.githubusercontent.com/u/100674758?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/100674758?s=400&v=4 |
| og:image:alt | Summary
This PR adds first-class support for @perf_event eBPF programs in KernelScript. Users can now attach eBPF logic to hardware and software performance counters (branch misses, CPU cycles, cac... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b928dd27bb9305f313c737471c216297e218430ec505d064cf33d7d74af9bf89 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/multikernel/kernelscript git https://github.com/multikernel/kernelscript.git |
| octolytics-dimension-user_id | 202362072 |
| octolytics-dimension-user_login | multikernel |
| octolytics-dimension-repository_id | 1019261571 |
| octolytics-dimension-repository_nwo | multikernel/kernelscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1019261571 |
| octolytics-dimension-repository_network_root_nwo | multikernel/kernelscript |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6f728c3f39985ee4d171ffdd5591d8d2652392d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/multikernel/kernelscript/pull/18/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmultikernel%2Fkernelscript%2Fpull%2F18%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| Code QualityEnforce quality at merge | https://github.com/features/code-quality |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmultikernel%2Fkernelscript%2Fpull%2F18%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=multikernel%2Fkernelscript |
| Reload | https://github.com/multikernel/kernelscript/pull/18/files |
| Reload | https://github.com/multikernel/kernelscript/pull/18/files |
| Reload | https://github.com/multikernel/kernelscript/pull/18/files |
| Please reload this page | https://github.com/multikernel/kernelscript/pull/18/files |
|
multikernel
| https://github.com/multikernel |
| kernelscript | https://github.com/multikernel/kernelscript |
|
Notifications
| https://github.com/login?return_to=%2Fmultikernel%2Fkernelscript |
|
Fork
23
| https://github.com/login?return_to=%2Fmultikernel%2Fkernelscript |
|
Star
501
| https://github.com/login?return_to=%2Fmultikernel%2Fkernelscript |
|
Code
| https://github.com/multikernel/kernelscript |
|
Issues
2
| https://github.com/multikernel/kernelscript/issues |
|
Pull requests
0
| https://github.com/multikernel/kernelscript/pulls |
|
Actions
| https://github.com/multikernel/kernelscript/actions |
|
Projects
| https://github.com/multikernel/kernelscript/projects |
|
Security and quality
0
| https://github.com/multikernel/kernelscript/security |
|
Insights
| https://github.com/multikernel/kernelscript/pulse |
|
Code
| https://github.com/multikernel/kernelscript |
|
Issues
| https://github.com/multikernel/kernelscript/issues |
|
Pull requests
| https://github.com/multikernel/kernelscript/pulls |
|
Actions
| https://github.com/multikernel/kernelscript/actions |
|
Projects
| https://github.com/multikernel/kernelscript/projects |
|
Security and quality
| https://github.com/multikernel/kernelscript/security |
|
Insights
| https://github.com/multikernel/kernelscript/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fmultikernel%2Fkernelscript%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fmultikernel%2Fkernelscript%2Fissues%2Fnew%2Fchoose |
| congwang-mk | https://github.com/congwang-mk |
| multikernel:main | https://github.com/multikernel/kernelscript/tree/main |
| SiyuanSun0736:perf_pr | https://github.com/SiyuanSun0736/kernelscript/tree/perf_pr |
|
Conversation
18
| https://github.com/multikernel/kernelscript/pull/18 |
|
Commits
10
| https://github.com/multikernel/kernelscript/pull/18/commits |
|
Checks
1
| https://github.com/multikernel/kernelscript/pull/18/checks |
|
Files changed
| https://github.com/multikernel/kernelscript/pull/18/files |
| Please reload this page | https://github.com/multikernel/kernelscript/pull/18/files |
|
Add @perf_event program type with full attach/detach/count support
| https://github.com/multikernel/kernelscript/pull/18/files#top |
|
Show all changes
10 commits
| https://github.com/multikernel/kernelscript/pull/18/files |
|
a0133a4
Add @perf_event program type with full attach/detach/count support
SiyuanSun0736 Apr 22, 2026
| https://github.com/multikernel/kernelscript/pull/18/commits/a0133a496f39fc4241d5efbbb823fedef2940942 |
|
a651add
Merge branch 'multikernel:main' into perf_pr
SiyuanSun0736 Apr 28, 2026
| https://github.com/multikernel/kernelscript/pull/18/commits/a651addd8c7a70344d41b4d05ed5dfb2203635fd |
|
413ac2d
feat: add @perf_event attach and counter helpers
SiyuanSun0736 May 6, 2026
| https://github.com/multikernel/kernelscript/pull/18/commits/413ac2decd0618a9fd0ec5670b82d3a6142690c4 |
|
ae9b2ea
feat: enhance perf_event attachment with atomic duplicate checks and …
SiyuanSun0736 May 6, 2026
| https://github.com/multikernel/kernelscript/pull/18/commits/ae9b2eaaa1d59a9f0a7ffe1ae546c7aa9defbbdc |
|
c3e2167
feat: enhance perf_event attachment with detaching field and concurre…
SiyuanSun0736 May 6, 2026
| https://github.com/multikernel/kernelscript/pull/18/commits/c3e2167e7c0a47ab594e8f8b081dca6daa6dbef3 |
|
14bebdb
Refactor perf_event handling in KernelScript
SiyuanSun0736 May 7, 2026
| https://github.com/multikernel/kernelscript/pull/18/commits/14bebdb3233b8f18dab506b9de323b74edc17fe8 |
|
6c288f3
feat: add perf_page_fault example demonstrating software page-fault e…
SiyuanSun0736 May 7, 2026
| https://github.com/multikernel/kernelscript/pull/18/commits/6c288f32e9276bd937e9a42bd7f134b7a3712950 |
|
8f3c455
Add first-class perf attachments with generic read support
SiyuanSun0736 May 11, 2026
| https://github.com/multikernel/kernelscript/pull/18/commits/8f3c4552a07d2034c4f005b721dd4669048c1b28 |
|
5bcf0cb
Narrow generated skeleton cleanup to userspace object lifetime
SiyuanSun0736 May 11, 2026
| https://github.com/multikernel/kernelscript/pull/18/commits/5bcf0cb6839b7fd0223766e0697d730d9b7d13fa |
|
0f41619
Optimize perf attachment reads
SiyuanSun0736 May 12, 2026
| https://github.com/multikernel/kernelscript/pull/18/commits/0f41619e28aabafc59829dc08479ab0deac22cb6 |
|
Clear filters
| https://github.com/multikernel/kernelscript/pull/18/files |
| Please reload this page | https://github.com/multikernel/kernelscript/pull/18/files |
| Please reload this page | https://github.com/multikernel/kernelscript/pull/18/files |
|
BUILTINS.md
| https://github.com/multikernel/kernelscript/pull/18/files#diff-a6fbfd5d0465bb0a334eaf5de654b53e43f83a1e0e18e7ba740fffb790e4bced |
|
README.md
| https://github.com/multikernel/kernelscript/pull/18/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
SPEC.md
| https://github.com/multikernel/kernelscript/pull/18/files#diff-7426c9e3a694ca6015df5f98637912975f2edea23270203ee89a8bdeed246ee0 |
|
perf_cache_miss.ks
| https://github.com/multikernel/kernelscript/pull/18/files#diff-3a077caa1a1b884d8a97deec19362aea96f35ff290a32d44040226b70b0f20da |
|
perf_page_fault.ks
| https://github.com/multikernel/kernelscript/pull/18/files#diff-4363a53a84908383ce551f4f162a666ea0e8239573a7ce9aa1f2f3cfe113af99 |
|
ast.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-b5e3d83ee8061a39f9c69482481a1759d85c7d7f6c1cfee7598c5987156b3e9d |
|
btf_parser.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-5b94502256671ab875f7f2e6e2d9d1b21719fcb3109673e0e5b51607a5a0678c |
|
codegen_common.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-d6300054242055da2df3f5279928053c076632f12617f8553b07b4de2a63c726 |
|
dune
| https://github.com/multikernel/kernelscript/pull/18/files#diff-bb9e52412d328fa2ea517d0ba961f10a5415e5b5ab87dc667e8369abb0f09674 |
|
perf_event_codegen.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-abb47116e6cef398ffb2992383e96953c6fcdf6cfe08fd2d58554e39a0c24c02 |
|
ebpf_c_codegen.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-087a8faac5edce9a796f07749864a234f146bca085c99e2bc5761e20f2018b6c |
|
ir_function_system.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-c5cde84ef6e300bca484d6b44c6106851c11dcb7d47d5de0a348cee44870c0f6 |
|
ir_generator.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf |
|
main.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-0d32fcae43114eceb0a0089619caca3700eacbb76b225ab4dd746843a121a805 |
|
multi_program_analyzer.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-7704336b4cd1a1a1cdd840c524d4cee0430b6a09b86e7dce01a7f9bd7faff74e |
|
stdlib.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-c2bcdbff958f6b2d9ac690d4e0b39f68e001c8de8205b4b23ade032fd9654f16 |
|
type_checker.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-19547f3bd84789512c822f230e0efa538e8dcef3e62b677be000400b908496fa |
|
userspace_codegen.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-1864935d68899925ab1485ad4f91071ac537e818db74b2dfc6c5979902c7efbf |
|
dune
| https://github.com/multikernel/kernelscript/pull/18/files#diff-f00bc4a85dc91983057a45088c3b4e6ac0d794731907dabd54d0293b71b22ed8 |
|
test_detach_api.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-2fb9fbdfbcdf15d2056737839008d487e3fb08cfe0c4f6ff77c11e32a8de3151 |
|
test_ir.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-dd8cf99653f5e05da220db274a8341e72d01007cd0f7211b0e9a6cc19ed7655f |
|
test_perf_event_attach.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-32b71512077f01935dd07ed3c8418df81d10dc0ed25bb688085a3d28ad9b0c7a |
|
test_program_ref.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-d9316833291c3479d9deb9547718856180a99db21865c6d8a2f6f4c72d142e8e |
|
test_userspace.ml
| https://github.com/multikernel/kernelscript/pull/18/files#diff-587b324f12087d95bba3c8913516e6a108e9996747af32b630e03ebd3a3a0b7c |
| BUILTINS.md | https://github.com/multikernel/kernelscript/pull/18/files#diff-a6fbfd5d0465bb0a334eaf5de654b53e43f83a1e0e18e7ba740fffb790e4bced |
|
View file
| https://github.com/SiyuanSun0736/kernelscript/blob/0f41619e28aabafc59829dc08479ab0deac22cb6/BUILTINS.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/multikernel/kernelscript/pull/18/{{ revealButtonHref }} |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-a6fbfd5d0465bb0a334eaf5de654b53e43f83a1e0e18e7ba740fffb790e4bced |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-a6fbfd5d0465bb0a334eaf5de654b53e43f83a1e0e18e7ba740fffb790e4bced |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-a6fbfd5d0465bb0a334eaf5de654b53e43f83a1e0e18e7ba740fffb790e4bced |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-a6fbfd5d0465bb0a334eaf5de654b53e43f83a1e0e18e7ba740fffb790e4bced |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-a6fbfd5d0465bb0a334eaf5de654b53e43f83a1e0e18e7ba740fffb790e4bced |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-a6fbfd5d0465bb0a334eaf5de654b53e43f83a1e0e18e7ba740fffb790e4bced |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-a6fbfd5d0465bb0a334eaf5de654b53e43f83a1e0e18e7ba740fffb790e4bced |
| README.md | https://github.com/multikernel/kernelscript/pull/18/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
View file
| https://github.com/SiyuanSun0736/kernelscript/blob/0f41619e28aabafc59829dc08479ab0deac22cb6/README.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/multikernel/kernelscript/pull/18/{{ revealButtonHref }} |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
| SPEC.md | https://github.com/multikernel/kernelscript/pull/18/files#diff-7426c9e3a694ca6015df5f98637912975f2edea23270203ee89a8bdeed246ee0 |
|
View file
| https://github.com/SiyuanSun0736/kernelscript/blob/0f41619e28aabafc59829dc08479ab0deac22cb6/SPEC.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/multikernel/kernelscript/pull/18/{{ revealButtonHref }} |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-7426c9e3a694ca6015df5f98637912975f2edea23270203ee89a8bdeed246ee0 |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-7426c9e3a694ca6015df5f98637912975f2edea23270203ee89a8bdeed246ee0 |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-7426c9e3a694ca6015df5f98637912975f2edea23270203ee89a8bdeed246ee0 |
|
| https://github.com/multikernel/kernelscript/pull/18/files#diff-7426c9e3a694ca6015df5f98637912975f2edea23270203ee89a8bdeed246ee0 |
| examples/perf_cache_miss.ks | https://github.com/multikernel/kernelscript/pull/18/files#diff-3a077caa1a1b884d8a97deec19362aea96f35ff290a32d44040226b70b0f20da |
|
View file
| https://github.com/SiyuanSun0736/kernelscript/blob/0f41619e28aabafc59829dc08479ab0deac22cb6/examples/perf_cache_miss.ks |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/multikernel/kernelscript/pull/18/{{ revealButtonHref }} |
| Please reload this page | https://github.com/multikernel/kernelscript/pull/18/files |
| Please reload this page | https://github.com/multikernel/kernelscript/pull/18/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |