-
tsoome_
Do we have replacement for
opensolaris.org/os/community/dtrace/dtest? see usr/src/cmd/dtrace/test/README (or /opt/SUNWdtrt/README)
-
danmcd
tsoome_: I'm going to look at archive.org's view of it from back in the day. It might've moved to somewhere on dtrace.org.
-
tsoome_
cool:)
-
tsoome
ah, lost my tail finally.
-
danmcd
Well, here's the archive.org URL for it...
-
danmcd
-
danmcd
Can't find it on dtrace.org easily.
-
danmcd
And it's clearly old (last days of OSol). Someone with more intimate knowledge of DTrace can clarify.
-
danmcd
The most knowledgable people on that topic, however, have much different things in their L1 caches right now.
-
tsoome
apparently needs a bit adjusting, and definitely we should host it somewhere:)
-
tsoome
my first reaction was just from seeing that obviously non-working url.
-
danmcd
archive.org is very useful for old URLs.
-
tsoome
indeed. but we should provide a bit more recent information still:)
-
tsoome
also, apparently dtrace does not grok flexible array members. so it does not work on those headers we now have...
-
tsoome
/usr/include/sys/dld.h failed: dtrace: failed to compile script /dev/stdin: [D_DECL_VOIDOBJ] "/usr/include/sys/mac.h", line 116: cannot have void member: mpur_data
-
jbk
that reminds me... i need to update libctf to handle anonymous unions member lookup for c11
-
ryao
tsoome: Did my cleanup effort cause a problem for dtrace?
openzfs/zfs 8e7ebf4 openzfs/zfs 9c8fabf
-
ryao
Flexible array members were supposed to remove a GNUism from the code, make size calculations easier to maintain and be compatible with fortify source and ubsan. :/
-
tsoome
ryao yes/no, the problem is that dtrace does not seem to support this construct, and we have some structs defined using this mechanism.
-
ryao
tsoome: If you can modify dtrace to treat it like [0], that might make dtrace happy. Compilers supposedly treat them differently, but the semantics on paper really should be identical.
-
ryao
Although that is a GNUism.
-
tsoome
So, you can not use system header with this struct, but need to construct something...
-
ryao
It sounds like a parsing issue. I wonder if dtrace is okay with the [0] GNU hack. If it is, then just changing the parser to treat it the same way might work.
-
ryao
There are three variations of the same idea in the C world. VLAs were the standard's approach for dealing with it. The GNU approach were zero-length-arrays with [0]. The original ANSI C approach was to use a single member array and just do the right thing with allocations/frees and pointer manipulations.
-
tsoome
yep, parsing for sure, maybe something more too, because the feature is there to create access to larger chunk of memory:)
-
ryao
Having recently touched this in OpenZFS, it is rather fresh in my mind. The semantics of the GNU hack and the VLA are so similar that you can literally just change the headers to go from one to another and everything should just work.
-
tsoome
yep
-
ryao
Hence why I think getting the parser to treat it like the GNU hack would work if DTrace supports the GNU hack.
-
tsoome
of course, the gnu vla has problem with static analyzers:D
-
ryao
Well, we are talking about the DTrace parser here. If it is able to handle the GNU zero-length-array in a sane way, then treating VLAs as the same thing should be fine. What static analyzers think about the GNU zero-length-array does not matter in the context of dtrace mapping VLAs to the GNU hack.
-
tsoome
yes.
-
ryao
Also, I don't quite understand why static analyzers have a problem with the GNU hack given how similar the semantics are. Maybe it has something to do with the compiler not complaining if you do something silly like put a zero length array in the center of another structure. -_-
-
tsoome
even gnu c itself is complaining:D
-
tsoome
probably want people to switch to flexible arrray.
-
danmcd
@pmooney --> added another commit to the illumos-joyent 14892 branch that you'll probably want. There's mention of "common.h", but no "common.h" for signalfd tests. Fixed that. Also plumbed in building from nightly and IPS manifest entries
-
pmooney
yeah, I skipped the makefile/manifest stuff on those since they weren't done
-
pmooney
hence the commit titles with the XXX prefix
-
gitomat
[illumos-gate] 15287 dtrace: remove pragma ident -- Toomas Soome <tsoome⊙mc>
-
tsoome
whee. now 2 last ones left. unfortunately, those are the largest
-
danmcd
Asked to make sure that I didn't miss anything, thanks pmooney
-
richlowe
do any of you have LD_AUDIT libraries you're particularly aware of?
-
jbk
i've never seen them used myself
-
richlowe
adam added one for dtrace magic
-
richlowe
but it doesn't do what I need
-
gitomat
[illumos-gate] 15327 add misc datalink class -- Luqman Aden <luqman⊙oc>
-
paulf
my hat of to the MATE gui designer that did the keyboard layout dialog
-
paulf
too big to fit in a VirtualBox screen before installing guest additions
-
toasterson
I don't think they are aware of 40% keyboards then
-
paulf
and the stupid big keyboard picture acts as a trap for the tab key and you cant tab past it to get to the OK button that you can't see
-
paulf
total epic GUI fail
-
toasterson
Live CD?
-
paulf
just installed and trying to configure
-
paulf
and it is dog slow on my old Solaris 11.3 host
-
paulf
still its much much slower than kubuntu and opensuse over 10 minutes to boot
-
toasterson
Only first time, while it's finishing the service database import
-
paulf
no it's done that
-
paulf
i managed to install vbox gues and rebooted
-
toasterson
10 minutes seems way to long
-
toasterson
mines usually go up in seconds
-
toasterson
come up
-
paulf
its just dog slow barely any disk activity
-
paulf
Ooh nwam timed out message
-
paulf
probably gave up waiting
-
toasterson
ah, yeah you might want to switch to network/physical instead and ipadm create addr -T dhcp on the interface
-
paulf
Oh no
-
paulf
it's updated the boot cache and is rebooting
-
paulf
it's already tomorrow
-
richlowe
they're both network/physical, it's network/physical:default v. network/physical:nwam
-
paulf
need to sleep can't wait another half hour for it to start
-
paulf
maybe an entire weekend will be enough