All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: clock_gettime vdso issue
       [not found] <cf147ee4-5d02-423f-a352-672a739809d4@aliyun.com>
@ 2015-03-26  7:54 ` Jesper Derehag
       [not found] ` <DUB123-W38081C479AED1FCAFCDED3DD080@phx.gbl>
  1 sibling, 0 replies; 5+ messages in thread
From: Jesper Derehag @ 2015-03-26  7:54 UTC (permalink / raw)
  To: zhenyu.ren, lttng-dev

There has been discussions regarding adding capability to override the clock implementation.

If that support is arriving, you could always write your own (say a separate thread reading clock periodically and storing in a cache, then your own clock implementation could get that cached timestamp).
Obviously you would need to think very carefully about clock resolution and frequency for your clock thread, but it should from a performance point of view be big improvement..

Maybe Mathieu(?) could shed some light on the clock override?

/Jesper

________________________________
> Date: Thu, 26 Mar 2015 15:25:49 +0800 
> From: zhenyu.ren@aliyun.com 
> To: lttng-dev@lists.lttng.org 
> Subject: [lttng-dev] clock_gettime vdso issue 
> 
> 
> Hi,Team 
> 
> You may not feel how painful I am with a too old GLIBC which does 
> NOT support vdso clock_gettime. Especially in ust case, 
> trace_clock_read will call clock_gettime to record the time of every 
> event. 
> Does anyone know how to avoid system_call clock_gettime with this old GLIBC?? 
> 
> Thanks in advance 
> zhenyu.ren 
> 
> 
> _______________________________________________ lttng-dev mailing list 
> lttng-dev@lists.lttng.org 
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev 
 		 	   		  

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

* Re: clock_gettime vdso issue
       [not found] ` <DUB123-W38081C479AED1FCAFCDED3DD080@phx.gbl>
@ 2015-03-26 16:33   ` Mathieu Desnoyers
  2015-03-27  0:57   ` 答复: " zhenyu.ren
       [not found]   ` <", 1722941338.111044.1427387596544.JavaMail.zimbra"@efficios.com>
  2 siblings, 0 replies; 5+ messages in thread
From: Mathieu Desnoyers @ 2015-03-26 16:33 UTC (permalink / raw)
  To: Jesper Derehag; +Cc: lttng-dev

Yes, the clock override feature, as well as the getcpu override,
should be merged within lttng-ust and lttng-tools master branches
this week. Stay tuned!

Thanks,

Mathieu

----- Original Message -----
> There has been discussions regarding adding capability to override the clock
> implementation.
> 
> If that support is arriving, you could always write your own (say a separate
> thread reading clock periodically and storing in a cache, then your own
> clock implementation could get that cached timestamp).
> Obviously you would need to think very carefully about clock resolution and
> frequency for your clock thread, but it should from a performance point of
> view be big improvement..
> 
> Maybe Mathieu(?) could shed some light on the clock override?
> 
> /Jesper
> 
> ________________________________
> > Date: Thu, 26 Mar 2015 15:25:49 +0800
> > From: zhenyu.ren@aliyun.com
> > To: lttng-dev@lists.lttng.org
> > Subject: [lttng-dev] clock_gettime vdso issue
> > 
> > 
> > Hi,Team
> > 
> > You may not feel how painful I am with a too old GLIBC which does
> > NOT support vdso clock_gettime. Especially in ust case,
> > trace_clock_read will call clock_gettime to record the time of every
> > event.
> > Does anyone know how to avoid system_call clock_gettime with this old
> > GLIBC??
> > 
> > Thanks in advance
> > zhenyu.ren
> > 
> > 
> > _______________________________________________ lttng-dev mailing list
> > lttng-dev@lists.lttng.org
> > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>  		 	   		  
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

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

* 答复: clock_gettime vdso issue
       [not found] ` <DUB123-W38081C479AED1FCAFCDED3DD080@phx.gbl>
  2015-03-26 16:33   ` Mathieu Desnoyers
@ 2015-03-27  0:57   ` zhenyu.ren
       [not found]   ` <", 1722941338.111044.1427387596544.JavaMail.zimbra"@efficios.com>
  2 siblings, 0 replies; 5+ messages in thread
From: zhenyu.ren @ 2015-03-27  0:57 UTC (permalink / raw)
  To: Mathieu Desnoyers, Jesper Derehag; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 2533 bytes --]

Hello  Are there any documents about what the clock override feature is? It seems that the feature will hurt time resolution,doesn't it?In fact,I will try to get the symbol addr of  __vdso_clock_gettime just like the same way glibc does with __vdso_gettimeofday.Is there any other cheaper way to call    __vdso_clock_gettime  ?
Thankszhenyu.ren
------------------------------------------------------------------发件人:Mathieu Desnoyers <mathieu.desnoyers@efficios.com>发送时间:2015年3月27日(星期五) 00:33收件人:Jesper Derehag <jderehag@hotmail.com>抄 送:zhenyu.ren <zhenyu.ren@aliyun.com>,lttng-dev <lttng-dev@lists.lttng.org>主 题:Re: [lttng-dev] clock_gettime vdso issue
Yes, the clock override feature, as well as the getcpu override,
should be merged within lttng-ust and lttng-tools master branches
this week. Stay tuned!

Thanks,

Mathieu

----- Original Message -----
> There has been discussions regarding adding capability to override the clock
> implementation.
> 
> If that support is arriving, you could always write your own (say a separate
> thread reading clock periodically and storing in a cache, then your own
> clock implementation could get that cached timestamp).
> Obviously you would need to think very carefully about clock resolution and
> frequency for your clock thread, but it should from a performance point of
> view be big improvement..
> 
> Maybe Mathieu(?) could shed some light on the clock override?
> 
> /Jesper
> 
> ________________________________
> > Date: Thu, 26 Mar 2015 15:25:49 +0800
> > From: zhenyu.ren@aliyun.com
> > To: lttng-dev@lists.lttng.org
> > Subject: [lttng-dev] clock_gettime vdso issue
> > 
> > 
> > Hi,Team
> > 
> > You may not feel how painful I am with a too old GLIBC which does
> > NOT support vdso clock_gettime. Especially in ust case,
> > trace_clock_read will call clock_gettime to record the time of every
> > event.
> > Does anyone know how to avoid system_call clock_gettime with this old
> > GLIBC??
> > 
> > Thanks in advance
> > zhenyu.ren
> > 
> > 
> > _______________________________________________ lttng-dev mailing list
> > lttng-dev@lists.lttng.org
> > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>  		 	   		  
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

[-- Attachment #1.2: Type: text/html, Size: 8211 bytes --]

[-- Attachment #2: Type: text/plain, Size: 155 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: 答复: clock_gettime vdso issue
       [not found]     ` <b11ab443-45d9-43ab-bde7-27524cf91b74@aliyun.com>
@ 2015-03-27 19:57       ` Mathieu Desnoyers
  0 siblings, 0 replies; 5+ messages in thread
From: Mathieu Desnoyers @ 2015-03-27 19:57 UTC (permalink / raw)
  To: zhenyu.ren; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 3507 bytes --]

The feature is really just that: a way to let users override the clock 
source. Depending on the clock provided by the end user, it may or 
may not hurt resolution. 

The feature branches are here: 

https://github.com/compudj/lttng-ust-dev/tree/clock-getcpu-plugin 
https://github.com/compudj/lttng-tools-dev/tree/clock-plugin-ust 

Thanks, 

Mathieu 

----- Original Message -----

> Hello

> Are there any documents about what the clock override feature is? It seems
> that the feature will hurt time resolution,doesn't it?
> In fact,I will try to get the symbol addr of __vdso_clock_gettime just like
> the same way glibc does with __vdso_gettimeofday.
> Is there any other cheaper way to call __vdso_clock_gettime ?

> Thanks
> zhenyu.ren

> > ------------------------------------------------------------------
> 
> > 发件人:Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
> 
> > 发送时间:2015年3月27日(星期五) 00:33
> 
> > 收件人:Jesper Derehag <jderehag@hotmail.com>
> 
> > 抄 送:zhenyu.ren <zhenyu.ren@aliyun.com>,lttng-dev
> > <lttng-dev@lists.lttng.org>
> 
> > 主 题:Re: [lttng-dev] clock_gettime vdso issue
> 

> > Yes, the clock override feature, as well as the getcpu override,
> 
> > should be merged within lttng-ust and lttng-tools master branches
> 
> > this week. Stay tuned!
> 

> > Thanks,
> 

> > Mathieu
> 

> > ----- Original Message -----
> 
> > > There has been discussions regarding adding capability to override the
> > > clock
> 
> > > implementation.
> 
> > >
> 
> > > If that support is arriving, you could always write your own (say a
> > > separate
> 
> > > thread reading clock periodically and storing in a cache, then your own
> 
> > > clock implementation could get that cached timestamp).
> 
> > > Obviously you would need to think very carefully about clock resolution
> > > and
> 
> > > frequency for your clock thread, but it should from a performance point
> > > of
> 
> > > view be big improvement..
> 
> > >
> 
> > > Maybe Mathieu(?) could shed some light on the clock override?
> 
> > >
> 
> > > /Jesper
> 
> > >
> 
> > > ________________________________
> 
> > > > Date: Thu, 26 Mar 2015 15:25:49 +0800
> 
> > > > From: zhenyu.ren@aliyun.com
> 
> > > > To: lttng-dev@lists.lttng.org
> 
> > > > Subject: [lttng-dev] clock_gettime vdso issue
> 
> > > >
> 
> > > >
> 
> > > > Hi,Team
> 
> > > >
> 
> > > > You may not feel how painful I am with a too old GLIBC which does
> 
> > > > NOT support vdso clock_gettime. Especially in ust case,
> 
> > > > trace_clock_read will call clock_gettime to record the time of every
> 
> > > > event.
> 
> > > > Does anyone know how to avoid system_call clock_gettime with this old
> 
> > > > GLIBC??
> 
> > > >
> 
> > > > Thanks in advance
> 
> > > > zhenyu.ren
> 
> > > >
> 
> > > >
> 
> > > > _______________________________________________ lttng-dev mailing list
> 
> > > > lttng-dev@lists.lttng.org
> 
> > > > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 
> > >
> 
> > > _______________________________________________
> 
> > > lttng-dev mailing list
> 
> > > lttng-dev@lists.lttng.org
> 
> > > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 
> > >
> 

> > --
> 
> > Mathieu Desnoyers
> 
> > EfficiOS Inc.
> 
> > http://www.efficios.com
> 
-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 

[-- Attachment #1.2: Type: text/html, Size: 9460 bytes --]

[-- Attachment #2: Type: text/plain, Size: 155 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* clock_gettime vdso issue
@ 2015-03-26  7:25 zhenyu.ren
  0 siblings, 0 replies; 5+ messages in thread
From: zhenyu.ren @ 2015-03-26  7:25 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 321 bytes --]


Hi,Team
   You may not feel how painful I am with a too old GLIBC which does NOT support vdso clock_gettime. Especially in ust case, trace_clock_read will call clock_gettime to record the time of every event. Does anyone know how to avoid system_call clock_gettime with this old GLIBC??Thanks in advancezhenyu.ren

[-- Attachment #1.2: Type: text/html, Size: 1251 bytes --]

[-- Attachment #2: Type: text/plain, Size: 155 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

end of thread, other threads:[~2015-03-27 19:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <cf147ee4-5d02-423f-a352-672a739809d4@aliyun.com>
2015-03-26  7:54 ` clock_gettime vdso issue Jesper Derehag
     [not found] ` <DUB123-W38081C479AED1FCAFCDED3DD080@phx.gbl>
2015-03-26 16:33   ` Mathieu Desnoyers
2015-03-27  0:57   ` 答复: " zhenyu.ren
     [not found]   ` <", 1722941338.111044.1427387596544.JavaMail.zimbra"@efficios.com>
     [not found]     ` <b11ab443-45d9-43ab-bde7-27524cf91b74@aliyun.com>
2015-03-27 19:57       ` Mathieu Desnoyers
2015-03-26  7:25 zhenyu.ren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.