[vbox-dev] Enabling logging in R0 context

Frank Mehnert frank.mehnert at oracle.com
Thu Nov 26 15:56:58 GMT 2015


Luca,

enabling the log "earlier" can only be done by changing the source code
and there might be side effects, ie there is probably a reason why the
log file is opened a bit later. Sorry for this unspecific answer, but
currently I have no time to debug this.

Kind regards,

Frank

On Thursday 26 November 2015 16:34:24 Luca Carotenuto wrote:
> Frank and Federico,
> 
> I'm sorry, i didn't even thanked you for answers, so thanks a lot ;)
> Anyway, I tried the flags suggested by Frank, and you are right: R0 logging
> works: infact some of the logs statements belonging to SrvIntNetR0 file
> appear, but IntNetR0Open() does not. I'm 99% sure that it is called, but
> maybe it's called before the log file is open. If this is the case, how can
> I "enable" the logging earlier so that even the log statements in this
> function appear?
> 
> I tried to start the VM in both ways: with --startvm <vm_name> and by
> selecting it in GUI (so just executing VirtualBox).
> In my network settings I enabled the bridged networking as you.
> 
> 2015-11-26 16:18 GMT+01:00 Federico Franzoni <frz.mlist at gmail.com>:
> > Hi Luca,
> > are you sure those functions are actually called during the execution?
> > If the IntNetR0 functions appear in the log, then the logging settings are
> > correct.
> > 
> > What do you exactly do for your test?
> > You should provide more details (all commands and actions), and maybe
> > attach a log file.
> > 
> > Federico
> > 
> > 
> > On 26/11/2015 12:06, Luca Carotenuto wrote:
> > 
> > Frank,
> > 
> >> next thing is to describe which VBox settings you used to get the logging
> >> enabled. Please don't tell me you did everything what I told you :-)
> >> Please
> >> describe line by line how you set the settings and how you start your VM.
> > 
> > Before launching I issue
> > 
> > VBOX_LOG=srv_intnet.e.l.l2.f
> > export VBOX_LOG
> > 
> > then I launch virtualbox.
> > After that, I check the log files created; in those file some logs from
> > the group I need (srv_intnet) are present, but not all of them (e.g. the
> > one from IntNetR0Open()). I tried to add logs using Log(), Log2(),
> > LogFlow(), but without success
> > 
> > 
> > _______________________________________________
> > vbox-dev mailing
> > listvbox-dev at virtualbox.orghttps://www.virtualbox.org/mailman/listinfo/vb
> > ox-dev
> > 
> > 
> > 
> > _______________________________________________
> > vbox-dev mailing list
> > vbox-dev at virtualbox.org
> > https://www.virtualbox.org/mailman/listinfo/vbox-dev

-- 
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstraße 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher




More information about the vbox-dev mailing list