Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] format in marker_entry problem
@ 2009-03-09  8:44 Gui Jianfeng
  2009-03-09 15:22 ` Mathieu Desnoyers
  0 siblings, 1 reply; 3+ messages in thread
From: Gui Jianfeng @ 2009-03-09  8:44 UTC (permalink / raw)


Hi Mathieu,

I'd like to know what's the actual value of the *format* member in 
struct marker_entry. Why i have to pass a format parameter when calling
marker_probe_register(). Consider the following scenario:
There are two are markers A and B with same channel and name, but 
different format like this: 
A("mychan", "mymarker", "format 1")
B("mychan", "mymarker", "format 2")

Call marker_probe_register("mychan", "mymarker", "format 1",....)
here A is activated.
IIUC, B can't be activated until A is deactivated.
I guess this is what we don't want.

-- 
Regards
Gui Jianfeng




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

* [ltt-dev] format in marker_entry problem
  2009-03-09  8:44 [ltt-dev] format in marker_entry problem Gui Jianfeng
@ 2009-03-09 15:22 ` Mathieu Desnoyers
  2009-03-10  1:32   ` Gui Jianfeng
  0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Desnoyers @ 2009-03-09 15:22 UTC (permalink / raw)


* Gui Jianfeng (guijianfeng at cn.fujitsu.com) wrote:
> Hi Mathieu,
> 
> I'd like to know what's the actual value of the *format* member in 
> struct marker_entry. Why i have to pass a format parameter when calling
> marker_probe_register(). Consider the following scenario:
> There are two are markers A and B with same channel and name, but 
> different format like this: 
> A("mychan", "mymarker", "format 1")
> B("mychan", "mymarker", "format 2")
> 
> Call marker_probe_register("mychan", "mymarker", "format 1",....)
> here A is activated.
> IIUC, B can't be activated until A is deactivated.
> I guess this is what we don't want.
> 

marker.c will detect a format mismatch and show an error. It will not
care about the second marker. Therefore, you should consider a 1 -> 1
mapping between channel/marker names -> format string.

Mathieu

> -- 
> Regards
> Gui Jianfeng
> 
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




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

* [ltt-dev] format in marker_entry problem
  2009-03-09 15:22 ` Mathieu Desnoyers
@ 2009-03-10  1:32   ` Gui Jianfeng
  0 siblings, 0 replies; 3+ messages in thread
From: Gui Jianfeng @ 2009-03-10  1:32 UTC (permalink / raw)




Mathieu Desnoyers wrote:
> * Gui Jianfeng (guijianfeng at cn.fujitsu.com) wrote:
>> Hi Mathieu,
>>
>> I'd like to know what's the actual value of the *format* member in 
>> struct marker_entry. Why i have to pass a format parameter when calling
>> marker_probe_register(). Consider the following scenario:
>> There are two are markers A and B with same channel and name, but 
>> different format like this: 
>> A("mychan", "mymarker", "format 1")
>> B("mychan", "mymarker", "format 2")
>>
>> Call marker_probe_register("mychan", "mymarker", "format 1",....)
>> here A is activated.
>> IIUC, B can't be activated until A is deactivated.
>> I guess this is what we don't want.
>>
> 
> marker.c will detect a format mismatch and show an error. It will not

  So, why this kind of detection is needed? Isn't the format in marker
  section enough?

> care about the second marker. Therefore, you should consider a 1 -> 1
> mapping between channel/marker names -> format string.
> 
> Mathieu
> 
>> -- 
>> Regards
>> Gui Jianfeng
>>
>>
>> _______________________________________________
>> ltt-dev mailing list
>> ltt-dev at lists.casi.polymtl.ca
>> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>>
> 

-- 
Regards
Gui Jianfeng




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

end of thread, other threads:[~2009-03-10  1:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-09  8:44 [ltt-dev] format in marker_entry problem Gui Jianfeng
2009-03-09 15:22 ` Mathieu Desnoyers
2009-03-10  1:32   ` Gui Jianfeng

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