-
richlowe
tsoome: did your mdb_printf fixes come with a PRINTFLIKE annotation somewhere?
-
tsoome
yes
-
tsoome
but apparently the mdb print support is not trivial and needs more than just filling up few tables, I havent had time to dig deep into it, but then again, even simple approach is rather revealing....
-
jbk
it's missing more formatting?
-
tsoome
mixed up, usual stuff - signed versus unsigned, long versus not long or long long etc.
-
tsoome
like this one too: ../../../common/modules/genunix/avl.c:107:63: error: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=]
-
jbk
ahh.. so more callers are the issue
-
tsoome
yep.
-
tsoome
the same old story, compiler can help us, but the feature is either not implemented or warnings are disabled...
-
jbk
yeah.. i try to remember when messing with a module to try to clean up any silenced warnings while I'm in there unless it's too messy and really needs a dedicated change
-
richlowe
printflike isn't silenced in the traditional sense
-
richlowe
the problem is that we use `-fno-builtin` which means the compiler (rightfully, but annoyingly) can't assume what `printf` etc are
-
richlowe
so we lack it in places we didn't annotate (annoying), and in places we shouldn't have to annotate
-
richlowe
but we sort of asked for it to be a pain
-
tsoome
no, with printf the problem is that we need compiler support (like there is for cmn_err()), and it is something we havent implemented yet. thats it.
-
richlowe
tsoome: actual printf(3c)? no that's not it
-
richlowe
mdb_printf() yes, that's what I was asking for :)
-
richlowe
(because otherwise it won't know %H, the best format character ever)
-
tsoome
with printf(3c) we have unrecognized "%ws", and some other minor details.
-
tsoome
and yes, mdb printf is much more "fun".
-
tsoome
but %ws prevents us to annotate printf family for userland. at least as much as I have played with it.
-
tsoome
ofc the good question is, should we actually have that %ws.
-
richlowe
tsoome: probably if you follow that thought too far the answer is related to the standards check symbols we have
-
richlowe
so that we support %ws _unless_ ...
-
richlowe
(and anything else that isn't in the standard, when the runtime standard bits are set)
-
richlowe
and the compiler would agree with that via -std=...
-
richlowe
and
-
sommerfeld
so a very early drafty take on the TCP small queues thing I was talking about yesterday:
code.illumos.org/c/illumos-gate/+/4594
-
fenix
→ CODE REVIEW 4594: 17909 tcp could benefit from a small-queues transmit throttle (NEW) |
illumos.org/issues/17909
-
jbk
sommerfeld: i see you and danmcd have similar taste in magic constants :)
-
danmcd
Yeah, it's my fault. Plus 0x90125xxx needs an xxx I can't think would have a good answer off the top of my head.
-
danmcd
(*partially* my fault to be 100% accurate... I can't speak for sommerfeld)
-
sommerfeld
jbk: indeed
-
richlowe
am I missing a reference or cute trick in the numbers?
-
danmcd
There are a pair of initializers in his changeset. And the hint is "album names".
-
danmcd
Also cf. ipseckey(8). Also, for even more blatant ones, cf. ike.preshared(5)
-
richlowe
oh, rush
-
richlowe
and probably van halen
-
danmcd
^^^ give that man a prize!
-
richlowe
sorry, I'm old but younger, and I always assume there's math I don't know :)
-
sommerfeld
was hoping for comments on the content rather than the magic numbers but I'll take what I can get...
-
danmcd
No sorry needed!
-
sommerfeld
(and those magic numbers will go away when I fix up how the buffer is allocated..)
-
danmcd
sommerfeld: Not enough review brainpower for that today. All of that is $DAYJOB related for the next several days.
-
richlowe
sommerfeld: unfortunately, the meat of my look at it was judging how much I would need to do in remedial study to have opinions
-
richlowe
so I think having attracted rpz to it is the best I can probably achieve
-
rmustacc
The fact that driver reclaim tweaks are required has me concerned about the solution space and what assumptions this is going to create and assume.
-
rmustacc
It's not clera from reading the ticket why the proposed solution is the right one and how we expect it to change and impact things. Particulalry when the way traffic to zones works means you have no assumptions about quick freeing of data.
-
rmustacc
I think there's enough there to buy the problem.
-
rmustacc
And to be clear, it all might be, but just saying for the few paragraphs for a fundamental design change and the throwaway driver problem leaves me with more questions than answers.
-
rmustacc
mblk_t lifetime isn't tied inherently to the protocol lifetime, paticularly when going across mac loopback.
-
sommerfeld
yeah, much to think about here but unfortunately I have to run right now...
-
gitomat
[illumos-gate] 17900 svc/configd: format issue while printing pid_t -- Toomas Soome <tsoome⊙mc>