Dtrace does actually have support for that kind of operation (or it used to when I used it) - I think you should start with "anonymous" tracing, IIRC.
HTH Michael Sent On Sun, Apr 19, 2020, 10:01 Hubert Garavel <hubert.gara...@inria.fr> wrote: > Hi everyone, > > At University Grenoble Alpes, I launched a master student project to try > fixing some bugs in Illumos/OpenIndiana. This way, the student can learn > the basics of an operating system, use Git, recompile a kernel, see > real-life C code, and so on. > > As a first assignment, I chose bug #10041 (why does domainname display > " " instead of "") - https://www.illumos.org/issues/10041 > > I was initially expecting some error in character string handling, > like a pointer incremented one time too much. But, after looking > at the code of > illumos-gate/usr/src/cmd/keyserv/domainname.c > then, the code of getdomainname() in > illumos-gate/usr/src/lib/libnsl/rpc/getdname.c > and finally the code of sysinfo (SI_SRPC_DOMAIN, ...) in > illumos-gate/usr/src/uts/common/syscall/systeminfo.c > they all seem to be correct. > > So, our current assumption is that, when the system boots, some > service modifies the domain name (initially set to "") to insert > a white space (" "). Potential suspects could be: > /proto/root_i386/usr/lib/ldap/idsconfig > /usr/src/cmd/svc/milestone/identity-domain > etc. > > To find the right one, it would be helpful to trace the result > of the "domainname" command at every step of the boot sequence, > especially every time a service is launched. > > Is there an easy way of doing this, e.g., using SMF or Dtrace? > (rather than manually patching the start scripts of all services). > > Thanks for your help > Hubert > > _______________________________________________ > openindiana-discuss mailing list > openindiana-discuss@openindiana.org > https://openindiana.org/mailman/listinfo/openindiana-discuss > _______________________________________________ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss