Arnd Bergmann on Nostr: you should be able to get a compile-time warning for functions that use excessive ...
you should be able to get a compile-time warning for functions that use excessive stack frames by setting CONFIG_FRAME_WARN to a lower value. The default for arm64 is 2048 bytes, but around 1300 is probably a better cut-off to see the worst offenders without too much output overall.
It looks like we are missing a warning flag for the rust compiler, which I would have expected to complain about a >2K stack. I tried passing -Cllvm-args=-fwarn-stack-size=2048, but that doesn't work.
Published at
2024-05-28 14:46:49Event JSON
{
"id": "494dc4cdb959459c9f7cbd69092b4de6e6b363b09fe895f5518db582974daf8a",
"pubkey": "590383452abc88ebc47d5892897d2c8b1b1a95cdbb9f0c951784c273068a7123",
"created_at": 1716907609,
"kind": 1,
"tags": [
[
"p",
"058a6d106c5e6719008ce4db3f64c846caf49925227a39533d12a846fbab21ee"
],
[
"e",
"7ad94d5461bb6771f851a347e2d7253514001d311df14133b43097c9ec78ac9f",
"",
"root"
],
[
"proxy",
"https://society.oftrolls.com/@arnd/112519257083780664",
"web"
],
[
"proxy",
"https://society.oftrolls.com/users/arnd/statuses/112519257083780664",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://society.oftrolls.com/users/arnd/statuses/112519257083780664",
"pink.momostr"
]
],
"content": "you should be able to get a compile-time warning for functions that use excessive stack frames by setting CONFIG_FRAME_WARN to a lower value. The default for arm64 is 2048 bytes, but around 1300 is probably a better cut-off to see the worst offenders without too much output overall.\n\nIt looks like we are missing a warning flag for the rust compiler, which I would have expected to complain about a \u003e2K stack. I tried passing -Cllvm-args=-fwarn-stack-size=2048, but that doesn't work.",
"sig": "8105d66ac503a74af273a80ac7271dfc97dbf1d9df063dcdbdc00d78ce077827ff2232df1fa26ec78d6cd04c3e97d390702e49c0edd3a4ce52b5929e9df123ff"
}