Uhh what?
Uhh what?
Posted Oct 8, 2024 14:29 UTC (Tue) by atnot (subscriber, #124910)Parent article: Efficient Rust tracepoints
I was curious and clicked on through to see the more detailed reasoning, since in my recollection, the asm involved is just nop instruction with a linker annotation. I found none of that, only:
> I really think that whoever created rust was an esoteric language freak. Hideous crap
Which I found a bit confusing because I have recently been assured that this sort of thing was merely a single isolated incident. It does not seem conducive to a productive discussion either way.
Not up to me to decide what code a maintainer accepts of course. But if anyone has a more substantive reason why a nop instruction is an undue burden on the whole kernel, more so than the described horrible sed and preprocessor hacks, I'd love to know.
Posted Oct 8, 2024 15:39 UTC (Tue)
by jgg (subscriber, #55211)
[Link] (4 responses)
Presumably the horrible sed will work on all arches and scale as we add more arches. But somehow I think this is just the tip of the iceberg on these issues and the sed script will have to evolve into something much more powerful. We have many little tricky inline assembly things and wrappering them in function calls is not the right thing to do, they are tricky inline assembly for a good reason.
Posted Oct 8, 2024 17:55 UTC (Tue)
by NYKevin (subscriber, #129325)
[Link] (3 responses)
The other question, I suppose, is whether LLVM IR and/or GCC's IR have support for such a thing, or if it would need to be invented first.
Posted Oct 8, 2024 18:30 UTC (Tue)
by daroc (editor, #160859)
[Link]
Luckily, x86_64 has nops of every size up to ... 12, I think it was? So in practice, you just need to make sure you choose the right size nop.
Posted Oct 8, 2024 20:50 UTC (Tue)
by riking (guest, #95706)
[Link] (1 responses)
Posted Oct 31, 2024 13:43 UTC (Thu)
by sammythesnake (guest, #17693)
[Link]
Posted Oct 9, 2024 12:26 UTC (Wed)
by intelfx (subscriber, #130118)
[Link] (3 responses)
Sad. This is disappointing (yet not really unexpected).
Posted Oct 10, 2024 5:00 UTC (Thu)
by milesrout (subscriber, #126894)
[Link] (2 responses)
Posted Oct 10, 2024 8:36 UTC (Thu)
by fishface60 (subscriber, #88700)
[Link] (1 responses)
This isn't disappointment that someone doesn't like something you do, it's disappointment that they have forgotten all their manners.
Posted Oct 31, 2024 13:45 UTC (Thu)
by sammythesnake (guest, #17693)
[Link]
Posted Oct 10, 2024 5:34 UTC (Thu)
by mb (subscriber, #50428)
[Link]
>> I really think that whoever created rust was an esoteric language freak. Hideous crap
>> the creator of Rust must've been an esoteric language freak and must've wanted to make this unreadable on purpose
Well, thanks for giving me yet another confirmation, that it was correct for me to leave the kernel development community behind.
I would actually like to work on R4L, but I don't like being insulted anymore. Too old for wasting my time on things like that. Thanks.
Uhh what?
Uhh what?
Uhh what?
Compiler-generated NOPs
Compiler-generated NOPs
Uhh what?
Uhh what?
Uhh what?
Uhh what?
Uhh what?
I'm not interested in this kind of nontechnical nonsense replies anymore.