-
alanc
hmm, I don't see any such warning in our current str*.3c man pages (which I split up into more reasonable chunks to great acclaim last year)
-
alanc
ah, I see the final note on your
illumos.org/man/3C/string
-
richlowe
yeah
-
alanc
which mostly survives in our
docs.oracle.com/cd/E88353_01/html/E37843/strtok-3c.html except we dropped the reference to the compiler option since it's now default in all three compilers we care about
-
alanc
-
alanc
-
fenix
→ OpenSolaris issue 7017461: string(3C) man page examples core dump when compiler defaults to xstrconst (Accepted)
-
alanc
I can't find a bug corresponding to why it was added, but I'd guess it was what you guessed or at least one pushy customer demanding we either "fix" it or document it
-
alanc
you also still have the "modern computer systems" usage note in
illumos.org/man/3C/index which was originally a warning against assuming all the world was a VAX:
-
alanc
On the Sun processor (and on some other machines), you can \fINOT\fP use
-
alanc
a zero pointer to indicate a null string. A zero pointer is an error and
-
alanc
results in an abort of the program. If you wish to indicate a null
-
alanc
string, you must have a pointer that points to an explicit null string.
-
alanc
On PDP-11's and VAX'en, a source pointer of zero (0) can generally be
-
alanc
used to indicate a null string.
-
alanc
Programmers using NULL to represent an empty string should be
-
alanc
aware of this portability issue.
-
alanc
(from the SunOS 3.0 man page, the earliest I have)
-
richlowe
amazing.
-
richlowe
and of course we still have 0@0 just in case you want to _pretend_
-
richlowe
(and haven't set the secflag that stops it working)
-
richlowe
the file(1) implementation decides which character is used for ASM comments based on whether we're a pdp11 or not.
-
richlowe
arguably wrongly
-
richlowe
ran into that fixing that it decides whether a dump is "intel" or "sparc" based on which order the magic number is in.
-
richlowe
(I guess nobody crashed enough on ppc to care)
-
sommerfeld
on bsd 4.2/bsd 4.3 on vax, a.out format executables mapped their text starting at address 0, so null pointers could be dereferenced for read (but not write) by default.
-
jbk
rmustacc: are there any example of using the nic topo module in a topo map? I've not found any, but not 100% sure what i'd be looking for either
-
rmustacc
jbk: I've never used it in a topo map before. It normally has been enumerated automatically from the PCIe module.
-
rmustacc
*pci
-
rmustacc
Do you have something that's not driven by pci in this case?
-
jbk
well what I was hoping to do is right now the parent device for the port (i.e. the nic) gets a label of 'MB' which isn't particularly helpful when there's 4 MB NICs... i was hoping to be able to override it with the actual label in the back (based on the device path)
-
jbk
but maybe that's not possible right now?
-
jbk
smbios knows about the port, but I don't think the smbios info provides any way to link the two
-
rmustacc
jbk: Which smbios entry is it in?
-
jbk
SMB_TYPE_PORT
-
jbk
-
rmustacc
Yeah, there's not much we can do automatically there.
-
rmustacc
If only it was more like the on-board devices or others that also gave you a b/d/f.
-
jbk
there is an SMB_TYPE_OBDEVEXT as well w/ b/d/f but that doesn't give you anything to link to the port
-
jbk
it's just 'Intel X557-AT3 Ethernet #1' etc
-
rmustacc
Yeah, I get it. Just was wishing they had better ways of linking these things together, but they don't.
-
jbk
yeah, why i was hoping there was a way to do it with a topo map
-
rmustacc
So you could create a static node in it I think that has the label?
-
jbk
since the device path shouldn't change
-
rmustacc
That's nuanced.
-
rmustacc
That depends on the platform firmware not changing the b/d/f of everything along the way ever.
-
jbk
hrm.. it does seem though that the Reference Designator from smbios for the OBDEVEXT entries matches the device labeling method of the equivalent ACPI node, though I have no idea if there's anything wired up to utilize any of that (or if so, how)
-
jbk
the latter would allow mapping the driver instance (e.g. ixgbe0) to the ACPI device label
-
jbk
(which could be used to match the actual port name on the back)
-
dlyund
Good evening all.
-
» danmcd is guessing you're at or east of UTC...
-
dlyund
danmcd CET :-)
-
danmcd
So just saying hi? Or do you have a question?
-
jbk
hrm..
-
jbk
is dtrace.org's ssl cert showing expired for anyone else?
-
nomad
I presume they were answering your question.
-
nomad
about timezone location.
-
danmcd
(He said good evening so I figured it could be either hi or a prelude, nomad.) Self-signed certs says
dtrace.org
-
papertigers
jbk: I noticed that too
-
jbk
danmcd: yeah, but the expiration date
-
papertigers
did you try to get to the dtrace book
-
jbk
yeah
-
papertigers
illumos.org/books
-
jbk
was wanting to look up/confirm something
-
papertigers
that has the actual book
-
danmcd
Not After Tue, 22 Nov 2022 17:20:50 GMT
-
tux0r
it's been over a month since the latest pkgsrc update. should we worry? :))
-
danmcd
I don't think so tux0r.
-
dlyund
danmcd Making more of an effort to engage with, and hopefully in, the illumos community :-). But I do have something approaching a question, regarding the cross-pollination of illumos on FreeBSD, should there be any interest in that topic?
-
jbk
grr.. this is annoying.. need to set a probe on a function in a shared library linked into a program
-
danmcd
Wouldn't hurt to bring it up; we are aware of it, of course.
-
jbk
but dtrace keeps saying the probe doesn't exist
-
rmustacc
Try a -Z there jbk.
-
danmcd
Can you specify library`name like you can in mdb's delayed breakpoints?
-
rmustacc
Yes, the shared object is the second part of the 4 tuple for pid.
-
rmustacc
(Technically the module part)
-
jbk
what is the actual value for the library used? e.g. it's get_id in libsec -- is that 'pid$target:libsec.so:get_id:{entry,return}'
-
jbk
or libsec.so.1
-
richlowe
it's the SONAME I believe
-
richlowe
either that, or the basename.
-
richlowe
It's been a while since I traced something where they differed
-
rmustacc
I always did the full name.
-
rmustacc
But I don't know what's required. trace(probefunc) also helps.
-
richlowe
(probemod)
-
rmustacc
But depending on lazy loading / dlopen deps sometimes it won't be there.
-
rmustacc
Sorry, probemod, yes.
-
gitomat
[illumos-gate] 15603 SMB3 encryption interface updates for "large MTU" -- Gordon Ross <gordon.ross⊙tc>
-
jbk
ahh -Z seems to have worked... never knew about that one
-
rmustacc
-Z says ignore things that aren't here right at this moment.
-
rmustacc
It'll get revaluated when certain activity happens.
-
rmustacc
For example, the kernel will revaluate fbt probes on module load.
-
richlowe
and rtld callbacks when things happen, yeah.
-
rmustacc
Yeah. It may not happen on dlopen.
-
jbk
thankfully it's linked and not dlopen()ed
-
rmustacc
The only real downside to -Z is you can't use args[].
-
jbk
speaking of that.. i should fix that for large chunk of kernel SDT probes where it's broken
-
dlyund
It seems like FreeBSD has benefitted a lot from a good number of originally illumos features (Dtrace, ZFS and Boot Environments come to mind) and illumos (depending on the distro?) has benefitted in turn from originally FreeBSD features (Bhyve and the FreeBSD bootloader come to mind). I'm new to illumos but I'm learning as quickly as time allows.
-
dlyund
While I'm much more familiar with FreeBSD than illumos it's easy for me to see that illumos still has a lot of very unique features. I was wondering what people here think about this cross-pollination between illumos and FreeBSD and what keeps you interested in using and contributing to illumos (or your illumos distro of choice)?
-
dlyund
danmcd ^^^ A large question but hopefully an interesting one.
-
rmustacc
In general, where we can work together and mutually benefit, usually helps. That's true whther it's FreeBSD or other folks.
-
jbk
one thing i'd like to explore more (it'd likely end up as an IPD) though not sure there'd be much in the way of code sharing is freebsd's iflib handling of tx packets is pretty nice
-
rmustacc
If that's something you'd want to explore, I'd prototype something first.
-
jbk
it'd be opt-in, but for many ring-based NICs (i.e. i don't think mlxcx would benefit, but a lot of others could)
-
jbk
basically you give it the segmentation constraints and it presents you an array of the equivalent of ddi_dma_cookie_ts
-
jbk
taking care of any necessary segmentation, etc.
-
jbk
(and some bookkeeping about avail descriptors, etc)
-
rmustacc
I'd consider prototyping and blast radius. There are tradeoffs in a lot of directions.
-
gitomat
[illumos-gate] 15824 want cxgbe FEC kstats -- Robert Mustacchi <rm⊙fo>
-
josephhoosten
Anyone got any opinions on my adding local cache support to arm64-gate's make download? I know roughly what I'm doing to add it for git checkouts, still trying to figure out how I want to handle http gets of artifacts, etc
-
josephhoosten
Eg, is this a thing I should add to mainline illumos-gate, should I just have it be default or have it require a flag? Or should I just put together an overly simple patch and discuss then?
-
richlowe
'make download' should only need to actually do anything the first time, I think? unless somehow that changed when andyf and I made changes.
-
richlowe
but I don't think I have objections? andy might be the best person to talk to, I'm not very online for the next little while for other reasons.
-
andyf
That's how it is still supposed to be - `make download` just the once
-
josephholsten
Sounds good. I'll keep thinking about it, if I have a strong opinion I'll make sure to have an argument in favor that isn't just about me.
-
josephholsten
Is there anything automatically building arm images right now? Or is that just manual.
-
gitomat
[illumos-gate] 15822 Fully reset bhyve fwctl state if guest requests it -- John Baldwin <jhb⊙Fo>
-
gitomat
[illumos-gate] 15809 bhyve TSC should exclude minimal host deltas -- Patrick Mooney <pmooney⊙pc>