-
chewyrobbo
Come join us! Triton DataCenter Office Hours will be happening this Thursday once again at 11PT/2ET/18:00 UTC on Discord
discord.gg/v4NwA3HqayIt's a great way to engage with community members, developers and learn more about Triton DataCenter!
-
jbk
ok.. something isn't clicking
-
jbk
addr::walk xxx | ::print struct Foo fails with failed to dereference symbol
-
jbk
yet I can take the addresses from the walker
-
jbk
and do addr_from_walker::print struct Foo
-
jbk
::typelist -l fails to show struct Foo
-
jbk
err ::typedef -l
-
jbk
a schrödinger type apparently
-
jbk
it exists, yet doesnt'
-
rmustacc
Was it something you defined with ::typedef?
-
jbk
it was read from a module
-
jbk
so ::typedef -r
-
jbk
ctfdump on the module agrees that it exists
-
rmustacc
OK. I would still expect it to show up in typedef -l then.
-
jbk
and ::print struct Foo (no addr) also agrees.. just not in a pipeline
-
jbk
which is odd
-
rmustacc
If you use a different type in that context does it work?
-
rmustacc
Specifically one qualified with struct or similar.
-
jbk
oh gah... PEBKAC
-
jbk
nevermind :)
-
jbk
some debugging info from writing the walker was fouling things up
-
jbk
(probably means it's time to quit for the day)
-
jbk
though the ::typelist -l thing still remains.. but ::print works now
-
gitomat
[illumos-gate] 15616 Add DISCARD/TRIM support to lofi(4D) -- Andy Fiddaman <illumos⊙fn>
-
KungFuJesus
toasterson: just curious, does the SPARC spin of hipster have CI builds setup or is it just whenever new commits get pulled into the branch manually?
-
KungFuJesus
also, is there maybe a more appropriate channel for OI SPARC related stuff? I realize this is kind of niche and is noise to most of #illumos
-
toasterson
KungFuJesus: there is no CI for that no.
-
richlowe
toasterson: you could get sparc adapted to the cross-build stuff
-
gitomat
[illumos-gate] 15623 remove lingering sections of sun studio -- Richard Lowe <richlowe⊙rn>
-
richlowe
and then you could CI it
-
igork
richlowe: sparc still failed with unwind and it's not easy for cross builds - you have to prepare sysroot with libs
-
richlowe
you'd be amazed how much detail I know about that in rn
-
richlowe
and it's really not that bad.
-
igork
richlowe: i't s possible to build final binary with static gcc libs - binary can be run on native sparc env. but with shared builds it failed to me a lot. need additional time for it
-
toasterson
richlowe: Most likely option yes. Depends when people get to it.
-
nbjoerg
does illumos actually support Router Advertisements with preferrred lifetime of 0?
-
nbjoerg
anecdotal evidence would suggest no, but I wanted to ask :)
-
KungFuJesus
richlowe: Was sun studio ever actually a _good_ compiler? I've always wondered
-
jperkin
back in the day (~2000) it was certainly prefereable to the gcc 3.4.3 shipped in sfw for most things
-
sommerfeld
nbjoerg: there appears to be code to delete the route when preferred lifetime = 0:
github.com/illumos/illumos-gate/blo…sr.lib/in.ndpd/tables.c#L2166-L2174
-
nbjoerg
sommerfeld: reason I am asking is that Mikrotik finally fixed that in RouterOS and e.g. Linux correctly stops using the old addresses for outgoing traffic, but Illumos certainly des not
-
nbjoerg
does not
-
nbjoerg
not even sure how I can get the current lifetime to double check though
-
sommerfeld
in.ndpd is the daemon you want to debug; the route lifetimes appear to be maintained by timers within that process.
-
sommerfeld
it's entirely possible that something goes wrong when it tries to delete the route.
-
KungFuJesus
testing at the moment with these SPARC systems, I do wonder if Sun/Oracle Studio would produce more optimal code or if GCC or even clang do a better job
-
richlowe
I wouldn't worry about it, honestly.
-
richlowe
"more optimal code" is just another way to say "absolutely screwed by imperfections in your code"
-
richlowe
and probably, largely, unless very performance sensitive, not actually going to be measurably affect your life
-
richlowe
(if you think it might measurably affect your life, there's always benchmarking)
-
ptribble
Studio was (marginally) a better compiler when it came out, but Studio for illumos is 10-15 years old now and the alternatives have been constantly improving
-
spuos
is there rust in illumos? the kernel, specifically.
-
richlowe
no
-
rmustacc
Some of us have developed kernel modules that are all in rust, but they're for specific use cases and not upstream.
-
richlowe
yeah, there's no reason, except nobody has written one yet.
-
alanc
it's not like people write brand new kernel modules that often, vs. updating existing ones
-
rmustacc
That's just because you're not cursed with new subsystem-itis.
-
richlowe
updating an existing one would also upset me, at least temporarily.
-
richlowe
but I mean, I have to be upset eventually.
-
alanc
I mean if I wanted to see rust in the kernel, I'd look for something fun like porting the graphics drivers for the ARM Macs
-
richlowe
you are not helping, alan :)
-
alanc
my employer doesn't allow me to help 8-)
-
toasterson
alanc: only if you fixup the rest of the graphics stack aswell :)
-
alanc
I already maintain half of it upstream, isn't that enough?
-
rmustacc
It's much more than we deserve.
-
toasterson
It definetly is :)
-
alanc
-
richlowe
honestly, something network-facing and full of untrusted data is probably the most immediately useful thing.
-
richlowe
I'm surprised, like, wireshark or something isn't heading that way
-
richlowe
given all the issues tcpdump, snoop, etc, have had in the past.
-
richlowe
slurping arbitrary trash off the network, badly in the case of snoop at least, would sure feel better that way.
-
rmustacc
The network-facing bit was what we started with.
-
jbk
hrm.. just as a sanity check.. you _always_ need to ddi_dma_sync before reading memory that you're expecting to be modified by a driver (e.g. there's no flag to ddi_dma_mem_alloc or ddi_dma_addr_bind_handle that will elide the need to do a sync), right?
-
rmustacc
Correct.
-
jbk
ok..
-
rmustacc
Though x86's consistency can hide issues.
-
rmustacc
jbk: If you look at the DMA Related Functions of the updated Intro(9F) (unfortuantely not on illumos.org right now for some reason), it discusses that a bit more.
-
rmustacc
Look for a sentence that starts with "When performing I/O to and from a device"