Linux bluetooth development
 help / color / mirror / Atom feed
* [RFC v2 0/2] Fix debug messages logging from non-built-in plugins
@ 2011-08-03 15:30 Szymon Janc
  2011-08-03 15:30 ` [RFC v2 1/2] " Szymon Janc
  2011-08-03 15:30 ` [RFC v2 2/2] Add external dummy plugin for testing Szymon Janc
  0 siblings, 2 replies; 8+ messages in thread
From: Szymon Janc @ 2011-08-03 15:30 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: par-gunnar.p.hjalmdahl, ulrik.lauren, Szymon Janc

Hi All,

This is a second version, much simpler. Uses dlsym() to locate __debug
section both in external plugin and main binary. Thanks to this we have
common path for all debug messages.

Also added dummy external plugin for test purposes.

Some comments about it:
__start___debug and __stop___debug symbols must be produced explicite
with -usymbol linker flag (see [1]) if not referenced in code directly.


Comments welcome.

[1] http://lists.gnu.org/archive/html/bug-binutils/2007-11/msg00088.html

Szymon Janc (2):
  Fix debug messages logging from non-built-in plugins
  Add external dummy plugin for testing

 Makefile.am              |   12 ++++++++++-
 acinclude.m4             |    6 +++++
 plugins/external-dummy.c |   42 +++++++++++++++++++++++++++++++++++++++
 src/bluetooth.ver        |    2 +
 src/log.c                |   49 ++++++++++++++++++++++++++++++++++++---------
 src/log.h                |    2 +
 src/plugin.c             |    8 +++++-
 7 files changed, 108 insertions(+), 13 deletions(-)
 create mode 100644 plugins/external-dummy.c

-- 
on behalf of ST-Ericsson


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-08-09 11:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-03 15:30 [RFC v2 0/2] Fix debug messages logging from non-built-in plugins Szymon Janc
2011-08-03 15:30 ` [RFC v2 1/2] " Szymon Janc
2011-08-07 11:02   ` Marcel Holtmann
2011-08-09 10:39     ` Szymon Janc
2011-08-09 11:02       ` Marcel Holtmann
2011-08-03 15:30 ` [RFC v2 2/2] Add external dummy plugin for testing Szymon Janc
2011-08-07 10:56   ` Marcel Holtmann
2011-08-09 10:39     ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox