lp:~vojtech-horky/helenos/logging

Created by Vojtech Horky on 2012-07-12 and last modified on 2012-12-04

Attempt for low-overhead logging mechanism.

Get this branch:
bzr branch lp:~vojtech-horky/helenos/logging
Only Vojtech Horky can upload to this branch. If you are Vojtech Horky please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Vojtech Horky
Project:
HelenOS branches
Status:
Development

Recent revisions

1608. By Vojtech Horky on 2012-12-04

Logger processes the messages asynchronously

See description of the problem in previous commit and detailed
description in the diff (write_to_log() function).

1607. By Vojtech Horky on 2012-11-23

MinixFS uses standard logging interface (BROKEN)

Using logger from inside a file system driver revealed a deadlock and
so this revision will not work when debugging is turned on inside mfs.

The deadlock is probably somewhere in VFS and is caused by following
chain of events:
 * VFS asks MFS to mount some block device (backed by file on FAT)
 * MFS sends a debug message to the logger
 * logger accepts the message and prints it to the console
 * logger also wants to print that message to the file /log/mfs (on FAT)
 * logger tries to open that file and there it fails
   (if writing to a file is commented out in the logger, all works well)

Summary is that one cannot write to a file while mount is in progress.

Possible solutions:
 * break the lock in VFS & co. into smaller ones
   (I am not sure whether this is possible at all)
 * make logger asynchronous - i.e. copy the messages to some internal
   queue and process them later
   (note that simply not waiting for answer in log_msg() does not work)

1606. By Vojtech Horky on 2012-11-23

Add no-op log_destroy() for destroying logs

The implementation will be added later, currently it exists only for
symmetry to log_create().

1605. By Vojtech Horky on 2012-11-23

Merge mainline changes

1604. By Vojtech Horky on 2012-11-04

Remote console uses standard logging

1603. By Vojtech Horky on 2012-10-23

Merge mainline changes

1602. By Vojtech Horky on 2012-09-07

Make logger more quiet

1601. By Vojtech Horky on 2012-09-07

Add comments to logging interface in libc

1600. By Vojtech Horky on 2012-09-07

Merge mainline changes

1599. By Vojtech Horky on 2012-09-07

Logger: destroy logs on client disconnect

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:helenos
This branch contains Public information 
Everyone can see this information.

Subscribers