[genivi-dlt] [dlt-daemon] Feature inquiry

하홍전 (Hongjeon Ha) hj.ha at lge.com
Wed Apr 27 01:53:55 EDT 2016


Hello, Alexander.

I considered this issue little bit more. My first patch was wrong. :(

Anyway, the problem is the flag "ContextLogLevel" which is described in 
dlt.conf does not work.
In other words, log level for new contexts will be INFO regardless of 
the "ContextLogLevel".

A new context's log level is set as initial value. Please, refer codes 
below. (dlt_user.c:889)
------------------------------------------------------------------------------------
dlt_user.dlt_ll_ts[i].log_level    = DLT_USER_INITIAL_LOG_LEVEL;
------------------------------------------------------------------------------------
DLT_USER_INITIAL_LOG_LEVEL is 0x04.

And then dlt_daemon_user_send_log_level() checks that which level is set 
at context->log_level.
Now, context->log_level is 0x04, but the code compares with 
DLT_LOG_DEFAULT(-1).
So, usercontext.log_level is always 0x04(info). (dlt_daemon_common.c:1131)
------------------------------------------------------------------------------------
else /* Storage log level is not updated (is DEFAULT) then  no device is 
yet connected so ignore */
{
     usercontext.log_level = ((context->log_level == 
DLT_USER_INITIAL_LOG_LEVEL)?daemon->default_log_level:context->log_level);
}
------------------------------------------------------------------------------------

I attached a new patch file for this issue.

Thanks.

*/HONGJEON HA/*
Senior Research Engineer | Software Platform Development Department
SW Platform Engineering Division | IVI Business Unit
Vehicle Components Company | LG Electronics Inc.
Mobile : 82-10-3888-9167, e-mail : hj.ha at lge.com


2016-04-26 오후 8:22에 Alexander.AW.Wenzel at bmw.de 이(가) 쓴 글:
>
> Hello Hongjeon,
>
> I think your patch is not correct. Normally a log level 
> DLT_LOG_DEFAULT is registered for the context in the DLT daemon and 
> latter in this function dlt_daemon_user_send_log_level(daemon, 
> context, verbose) is called with the default log level.
>
> And here it is set by command line:
>
> if 
> (dlt_daemon_init(daemon,daemon_local->RingbufferMinSize,daemon_local->RingbufferMaxSize,daemon_local->RingbufferStepSize, 
> daemon_local->flags.ivalue,daemon_local->flags.contextLogLevel, 
> daemon_local->flags.contextTraceStatus,daemon_local->flags.enforceContextLLAndTS,daemon_local->flags.vflag)==-1)
>
> If it does not work for you please check if there is another possible 
> problem.
>
> If you identified an issue and have patches please send to 
> genivi-diagnostic-log-and-trace at lists.genivi.org 
> <mailto:genivi-diagnostic-log-and-trace at lists.genivi.org>.
>
> Thanks for reporting
>
> Alex
>
> -- 
> *BMW Group*
> Alexander Wenzel
> Architect. Connected Drive, I and C Syst.
>
> Postanschrift:
> 80788 München
>
> Tel: +49-89-382-54199
> Mail: alexander.aw.wenzel at bmw.de <mailto:alexander.aw.wenzel at bmw.de>
> Web: http://www.bmwgroup.com/
> --------------------------------------------------------------------
> Bayerische Motoren Werke Aktiengesellschaft
> Vorstand: Harald Krüger (Vorsitzender),
> Milagros Caiña Carreiro-Andree, Klaus Draeger,
> Friedrich Eichiner, Klaus Fröhlich, Ian Robertson,
> Peter Schwarzenbauer, Oliver Zipse.
> Vorsitzender des Aufsichtsrats: Norbert Reithofer
> Sitz und Registergericht: München HRB 42243
> --------------------------------------------------------------------
>
> *Von:*하홍전(Hongjeon Ha) [mailto:hj.ha at lge.com]
> *Gesendet:* Dienstag, 26. April 2016 06:06
> *An:* Wenzel Alexander, EE-60 <Alexander.AW.Wenzel at bmw.de>
> *Cc:* 윤성훈/책임연구 원/IVI SW플랫폼개 발2팀(sh1.yun at lge.com) 
> <sh1.yun at lge.com>
> *Betreff:* [dlt-daemon] Feature inquiry
>
> Hi, Mr. Alexander.
>
> I'm developing some components and using dlt-daemon on our IVI system.
> I would like to fix initial log level greater than info level and 
> modified the "ContextLogLevel" and the "ContextTraceStatus" on 
> dlt.conf, but it'll not going to happen.
> So, I attach the patch file about above problem.
> Could you consider the patch file for me?
>
> Thanks.
>
> */HONGJEON HA/*
> Senior Research Engineer | Software Platform Development Department
> SW Platform Engineering Division | IVI Business Unit
> Vehicle Components Company | LG Electronics Inc.
> Mobile : 82-10-3888-9167, e-mail : hj.ha at lge.com <mailto:hj.ha at lge.com>
>
> mailbox:///D:/Thunderbird/e8mpuo50.default/Mail/lgekrhqms01.lge.com/Inbox.sbd/01_SWP?number=142872706&header=quotebody&part=1.2&filename=image001.jpg
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160427/60658d1c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sig.jpg
Type: image/jpeg
Size: 89033 bytes
Desc: not available
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160427/60658d1c/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 89033 bytes
Desc: not available
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160427/60658d1c/attachment.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Apply-some-conf-variables-when-ctx-is-registered.patch
Type: text/x-patch
Size: 1743 bytes
Desc: not available
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160427/60658d1c/attachment.patch>


More information about the genivi-diagnostic-log-and-trace mailing list