René's URL Explorer Experiment


Title: feat: improve struct_ops codegen lifecycle and test coverage by SiyuanSun0736 · Pull Request #17 · multikernel/kernelscript · GitHub

Open Graph Title: feat: improve struct_ops codegen lifecycle and test coverage by SiyuanSun0736 · Pull Request #17 · multikernel/kernelscript

X Title: feat: improve struct_ops codegen lifecycle and test coverage by SiyuanSun0736 · Pull Request #17 · multikernel/kernelscript

Description: Summary This PR improves struct_ops code generation and strengthens regression coverage across both eBPF and userspace paths. Key changes: keep internal struct_ops function calls as direct calls instead of lowering them into implicit tail calls synthesize a stable default name for struct_ops instances when the kernel struct expects a name field but the impl block omits it improve userspace struct_ops lifecycle generation around main so registration results, attach helpers, wait flow, and detach/cleanup behavior are emitted more reliably expand struct_ops tests to cover runtime helpers, cleanup hooks, attach/detach helpers, EPERM diagnostics, and direct-call behavior Details In IR generation: tracked the current program type during lowering so struct_ops methods are not treated like normal attributed programs for implicit tail-call lowering added logic to preserve direct calls for internal struct_ops method-to-method invocations generated a default struct_ops name automatically when the target kernel struct has a name field and no explicit static field is provided In userspace code generation: improved detection of the main registration flow for struct_ops programs preserved the registration result through generated attach/wait/detach lifecycle code strengthened lifecycle generation so cleanup helpers, unregister waiting, and detach handling are validated by tests In examples and tests: updated the struct_ops example to include an internal helper-style call path through undo_cwnd -> ssthresh added regression coverage ensuring struct_ops internal calls remain direct calls expanded userspace struct_ops codegen tests to verify runtime helper emission, cleanup registration, attach/detach helpers, and struct_ops-specific load diagnostics Testing extended struct_ops code generation unit tests added regression coverage for direct internal calls in struct_ops impl blocks added userspace codegen assertions for runtime helpers and cleanup flow

Open Graph Description: Summary This PR improves struct_ops code generation and strengthens regression coverage across both eBPF and userspace paths. Key changes: keep internal struct_ops function calls as direct calls i...

X Description: Summary This PR improves struct_ops code generation and strengthens regression coverage across both eBPF and userspace paths. Key changes: keep internal struct_ops function calls as direct calls i...

Opengraph URL: https://github.com/multikernel/kernelscript/pull/17

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:cc769691-9407-0d03-5f6a-1543a09524d1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idECC4:166A68:7A0A2:AD7B9:6A61F7F3
html-safe-nonce267190c5ea24f372a070ffd53778a948dfb06c6211fd680ba067ef36d750549e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0M0OjE2NkE2ODo3QTBBMjpBRDdCOTo2QTYxRjdGMyIsInZpc2l0b3JfaWQiOiI3ODM1OTU0MTkzMDczNTY3NzMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca1502a1a74ce04752c9bd557e4ad4e6531b59f3af5e094f98fb329a9a3f9ac0a
hovercard-subject-tagpull_request:3514333541
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/multikernel/kernelscript/pull/17/files
twitter:imagehttps://avatars.githubusercontent.com/u/100674758?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/100674758?s=400&v=4
og:image:altSummary This PR improves struct_ops code generation and strengthens regression coverage across both eBPF and userspace paths. Key changes: keep internal struct_ops function calls as direct calls i...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9e41a6fd863e96b9c7e9185dc317bf107dbbf8cb10efd6dea957211963f33775
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/multikernel/kernelscript git https://github.com/multikernel/kernelscript.git
octolytics-dimension-user_id202362072
octolytics-dimension-user_loginmultikernel
octolytics-dimension-repository_id1019261571
octolytics-dimension-repository_nwomultikernel/kernelscript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1019261571
octolytics-dimension-repository_network_root_nwomultikernel/kernelscript
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2ed5e9c44acb35dcc1d752e449d2a6f7a6164b7b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/multikernel/kernelscript/pull/17/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmultikernel%2Fkernelscript%2Fpull%2F17%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2F17%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
Reloadhttps://github.com/multikernel/kernelscript/pull/17/files
Reloadhttps://github.com/multikernel/kernelscript/pull/17/files
Reloadhttps://github.com/multikernel/kernelscript/pull/17/files
Please reload this pagehttps://github.com/multikernel/kernelscript/pull/17/files
multikernel https://github.com/multikernel
kernelscripthttps://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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmultikernel%2Fkernelscript%2Fissues%2Fnew%2Fchoose
congwang-mkhttps://github.com/congwang-mk
multikernel:mainhttps://github.com/multikernel/kernelscript/tree/main
SiyuanSun0736:mainhttps://github.com/SiyuanSun0736/kernelscript/tree/main
Conversation 15 https://github.com/multikernel/kernelscript/pull/17
Commits 3 https://github.com/multikernel/kernelscript/pull/17/commits
Checks 0 https://github.com/multikernel/kernelscript/pull/17/checks
Files changed https://github.com/multikernel/kernelscript/pull/17/files
Please reload this pagehttps://github.com/multikernel/kernelscript/pull/17/files
feat: improve struct_ops codegen lifecycle and test coverage https://github.com/multikernel/kernelscript/pull/17/files#top
Show all changes 3 commits https://github.com/multikernel/kernelscript/pull/17/files
ad1b559 feat: enhance struct_ops implementation with additional functions and… SiyuanSun0736 Apr 10, 2026 https://github.com/multikernel/kernelscript/pull/17/commits/ad1b5598c4880a26005c7e8eb469932ea82b9478
193f819 tests: enhance struct_ops code generation tests with additional check… SiyuanSun0736 Apr 10, 2026 https://github.com/multikernel/kernelscript/pull/17/commits/193f819d3e5bfcd7002b21f51978fd3e50b7cd93
2f4c3e2 feat: enhance struct_ops handling with terminal return values and tai… SiyuanSun0736 Apr 22, 2026 https://github.com/multikernel/kernelscript/pull/17/commits/2f4c3e21c56517493abf1a78fe6b9e3d7b6358ac
Clear filters https://github.com/multikernel/kernelscript/pull/17/files
Please reload this pagehttps://github.com/multikernel/kernelscript/pull/17/files
Please reload this pagehttps://github.com/multikernel/kernelscript/pull/17/files
struct_ops_simple.ks https://github.com/multikernel/kernelscript/pull/17/files#diff-1a7a49dc00c76e6ff856b1a79310fdfcd82cdbaea990fbdd278abfd8d866077a
ir_generator.ml https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
userspace_codegen.ml https://github.com/multikernel/kernelscript/pull/17/files#diff-1864935d68899925ab1485ad4f91071ac537e818db74b2dfc6c5979902c7efbf
test_struct_ops.ml https://github.com/multikernel/kernelscript/pull/17/files#diff-59d1bbf5846dd3d6bdd854a25296f3b8b187d21b08d149cd441a6a8459d40555
examples/struct_ops_simple.kshttps://github.com/multikernel/kernelscript/pull/17/files#diff-1a7a49dc00c76e6ff856b1a79310fdfcd82cdbaea990fbdd278abfd8d866077a
View file https://github.com/SiyuanSun0736/kernelscript/blob/2f4c3e21c56517493abf1a78fe6b9e3d7b6358ac/examples/struct_ops_simple.ks
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/multikernel/kernelscript/pull/17/{{ revealButtonHref }}
https://github.com/multikernel/kernelscript/pull/17/files#diff-1a7a49dc00c76e6ff856b1a79310fdfcd82cdbaea990fbdd278abfd8d866077a
https://github.com/multikernel/kernelscript/pull/17/files#diff-1a7a49dc00c76e6ff856b1a79310fdfcd82cdbaea990fbdd278abfd8d866077a
src/ir_generator.mlhttps://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
View file https://github.com/SiyuanSun0736/kernelscript/blob/2f4c3e21c56517493abf1a78fe6b9e3d7b6358ac/src/ir_generator.ml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/multikernel/kernelscript/pull/17/{{ revealButtonHref }}
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
Please reload this pagehttps://github.com/multikernel/kernelscript/pull/17/files
Please reload this pagehttps://github.com/multikernel/kernelscript/pull/17/files
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
https://github.com/multikernel/kernelscript/pull/17/files#diff-7b7b3d36c6a326e1a022a7eaf0e67082de1abe843a789dc49e3580493ba9ffdf
Please reload this pagehttps://github.com/multikernel/kernelscript/pull/17/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.