[tip:timers/core] timer stats: Add a 'Collection: active/inactive ' line to timer usage statistics

2013-10-10 Thread tip-bot for Dong Zhu
Commit-ID: 2cb763614c1c5baef58045af9304265075f22d0a Gitweb: http://git.kernel.org/tip/2cb763614c1c5baef58045af9304265075f22d0a Author: Dong Zhu AuthorDate: Thu, 10 Oct 2013 15:56:18 +0800 Committer: Ingo Molnar CommitDate: Thu, 10 Oct 2013 09:59:25 +0200 timer stats: Add a 'Collection

Re: [PATCH v4] timer stats: add a 'status' line to timer usage statistics

2013-10-10 Thread Dong Zhu
; > > > Also, please bump up the version to v0.3, to give parsers a chance. > > I think you forgot about this suggestion of mine. > Oh, oops, sorry about that. I modified the patch again as below, hope it could be applied this time. >From 92a67f74766e02b5f4702b1af2af9861bf7

Re: [PATCH v0.3] timer stats: add a 'status' line to timer usage statistics

2013-10-10 Thread Dong Zhu
> > Agree, I modified this patch and resubmited it again, Could you help > > reviewing it again ? Thanks ! > > > > From 263c40abea8011c82582b2d671ae783b26f44bd5 Mon Sep 17 00:00:00 2001 > > From: Dong Zhu > > Date: Thu, 10 Oct 2013 13:46:08 +0800 > >

Re: [PATCH v2] timer stats: add a 'status' line to timer usage statistics

2013-10-10 Thread Dong Zhu
Hi Ingo and John, On Thu, Oct 10, 2013 at 06:35:19AM +0200, Ingo Molnar wrote: > > * Dong Zhu wrote: > > > From f41628c61d8a9172677ba33a55b61e37ce28f7a6 Mon Sep 17 00:00:00 2001 > > From: Dong Zhu > > Date: Thu, 10 Oct 2013 10:38:13 +0800 > > > > W

Re: [PATCH v2] timer stats: add a 'status' line to timer usage statistics

2013-10-10 Thread Dong Zhu
Hi Ingo and John, On Thu, Oct 10, 2013 at 06:35:19AM +0200, Ingo Molnar wrote: * Dong Zhu bluezhud...@gmail.com wrote: From f41628c61d8a9172677ba33a55b61e37ce28f7a6 Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Thu, 10 Oct 2013 10:38:13 +0800 When we stop

Re: [PATCH v0.3] timer stats: add a 'status' line to timer usage statistics

2013-10-10 Thread Dong Zhu
Agree, I modified this patch and resubmited it again, Could you help reviewing it again ? Thanks ! From 263c40abea8011c82582b2d671ae783b26f44bd5 Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Thu, 10 Oct 2013 13:46:08 +0800 We can enable|disable timer

Re: [PATCH v4] timer stats: add a 'status' line to timer usage statistics

2013-10-10 Thread Dong Zhu
of mine. Oh, oops, sorry about that. I modified the patch again as below, hope it could be applied this time. From 92a67f74766e02b5f4702b1af2af9861bf70d60b Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Thu, 10 Oct 2013 15:48:29 +0800 We can enable|disable timer statistics

[tip:timers/core] timer stats: Add a 'Collection: active/inactive ' line to timer usage statistics

2013-10-10 Thread tip-bot for Dong Zhu
Commit-ID: 2cb763614c1c5baef58045af9304265075f22d0a Gitweb: http://git.kernel.org/tip/2cb763614c1c5baef58045af9304265075f22d0a Author: Dong Zhu bluezhud...@gmail.com AuthorDate: Thu, 10 Oct 2013 15:56:18 +0800 Committer: Ingo Molnar mi...@kernel.org CommitDate: Thu, 10 Oct 2013 09:59:25

[PATCH RESEND] timer stats: reset entries when disable the timer usage statistics

2013-10-09 Thread Dong Zhu
>From f41628c61d8a9172677ba33a55b61e37ce28f7a6 Mon Sep 17 00:00:00 2001 From: Dong Zhu Date: Thu, 10 Oct 2013 10:38:13 +0800 When we stop timer statistics collection (via echo 0 > /proc/timers_stats), the statistics data is still exported as if it were correct, which can cause applic

[PATCH RESEND] timer stats: reset entries when disable the timer usage statistics

2013-10-09 Thread Dong Zhu
From f41628c61d8a9172677ba33a55b61e37ce28f7a6 Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Thu, 10 Oct 2013 10:38:13 +0800 When we stop timer statistics collection (via echo 0 /proc/timers_stats), the statistics data is still exported as if it were correct, which can

[PATCH] ptp: add range check on n_samples

2013-09-24 Thread Dong Zhu
it makes no sense, so this patch intends to add a range check. Signed-off-by: Dong Zhu --- drivers/ptp/ptp_chardev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ptp/ptp_chardev.c b/drivers/ptp/ptp_chardev.c index 34a0c60..4e85b23 100644 --- a/drivers/ptp/ptp_

[PATCH] ptp: add range check on n_samples

2013-09-24 Thread Dong Zhu
no sense, so this patch intends to add a range check. Signed-off-by: Dong Zhu bluezhud...@gmail.com --- drivers/ptp/ptp_chardev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ptp/ptp_chardev.c b/drivers/ptp/ptp_chardev.c index 34a0c60..4e85b23 100644 --- a/drivers/ptp

Re: [PATCH net-next v4] ptp: add the PTP_SYS_OFFSET ioctl to the testptp program

2013-09-17 Thread Dong Zhu
add a method into testptp.c to measure the time offset between phc and system clock through the ioctl PTP_SYS_OFFSET. Signed-off-by: Dong Zhu --- Documentation/ptp/testptp.c | 65 +++-- 1 file changed, 63 insertions(+), 2 deletions(-) diff --

Re: [PATCH net-next v4] ptp: add the PTP_SYS_OFFSET ioctl to the testptp program

2013-09-17 Thread Dong Zhu
a method into testptp.c to measure the time offset between phc and system clock through the ioctl PTP_SYS_OFFSET. Signed-off-by: Dong Zhu bluezhud...@gmail.com --- Documentation/ptp/testptp.c | 65 +++-- 1 file changed, 63 insertions(+), 2 deletions(-) diff

Re: [PATCH net-next v3] ptp: add the PTP_SYS_OFFSET ioctl to the testptp program

2013-09-15 Thread Dong Zhu
Hi Richard, Thanks for your comments, I modified the patch and resubmit it again: >From 7636f69b74c34eca14c85fd2d518da6044b94f53 Mon Sep 17 00:00:00 2001 From: Dong Zhu Date: Sun, 15 Sep 2013 17:12:52 +0800 This patch add a method into testptp.c to measure the time offset between

Re: [PATCH net-next v3] ptp: add the PTP_SYS_OFFSET ioctl to the testptp program

2013-09-15 Thread Dong Zhu
Hi Richard, Thanks for your comments, I modified the patch and resubmit it again: From 7636f69b74c34eca14c85fd2d518da6044b94f53 Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Sun, 15 Sep 2013 17:12:52 +0800 This patch add a method into testptp.c to measure the time offset

Re: [PATCH] ptp: add the PTP_SYS_OFFSET ioctl to the testptp program clock

2013-09-14 Thread Dong Zhu
On Sat, Sep 14, 2013 at 04:31:46PM +0200, Richard Cochran wrote: > On Sat, Sep 14, 2013 at 04:03:06PM +0800, Dong Zhu wrote: > > This patch add a method into testptp.c to measure the time offset > > between phc and system clock through the ioctl PTP_SYS_OFFSET. > > > &

[PATCH] ptp: measure the time offset between PHC and system clock

2013-09-14 Thread Dong Zhu
This patch add a method into testptp.c to measure the time offset between phc and system clock through the ioctl PTP_SYS_OFFSET. Signed-off-by: Dong Zhu --- Documentation/ptp/testptp.c | 40 ++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git

[PATCH] ptp: measure the time offset between PHC and system clock

2013-09-14 Thread Dong Zhu
This patch add a method into testptp.c to measure the time offset between phc and system clock through the ioctl PTP_SYS_OFFSET. Signed-off-by: Dong Zhu bluezhud...@gmail.com --- Documentation/ptp/testptp.c | 40 ++-- 1 file changed, 38 insertions(+), 2

Re: [PATCH] ptp: add the PTP_SYS_OFFSET ioctl to the testptp program clock

2013-09-14 Thread Dong Zhu
On Sat, Sep 14, 2013 at 04:31:46PM +0200, Richard Cochran wrote: On Sat, Sep 14, 2013 at 04:03:06PM +0800, Dong Zhu wrote: This patch add a method into testptp.c to measure the time offset between phc and system clock through the ioctl PTP_SYS_OFFSET. This is a nice addition

Re: [PATCH] posix_cpu_timers: fix timer never expires when executes clock_nanosleep

2013-08-01 Thread Dong Zhu
Hi Stanislaw, Thansk for your info. On Thu, Aug 01, 2013 at 01:30:50PM +0200, Stanislaw Gruszka wrote: > Hi Dong Zhu > > On Thu, Aug 01, 2013 at 06:10:19PM +0800, Dong Zhu wrote: > > diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c > > index c7

[PATCH] posix_cpu_timers: fix timer never expires when executes clock_nanosleep

2013-08-01 Thread Dong Zhu
>From c7439b90b0794c016b29356f0e232f7413ef7b60 Mon Sep 17 00:00:00 2001 From: Dong Zhu Date: Thu, 1 Aug 2013 11:39:04 +0800 When use the current process pid as the clockid, then executes clock_nanosleep syscall the timer will never expire. Kernel should prevent user doing l

[PATCH] posix_cpu_timers: fix timer never expires when executes clock_nanosleep

2013-08-01 Thread Dong Zhu
From c7439b90b0794c016b29356f0e232f7413ef7b60 Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Thu, 1 Aug 2013 11:39:04 +0800 When use the current process pid as the clockid, then executes clock_nanosleep syscall the timer will never expire. Kernel should prevent user doing

Re: [PATCH] posix_cpu_timers: fix timer never expires when executes clock_nanosleep

2013-08-01 Thread Dong Zhu
Hi Stanislaw, Thansk for your info. On Thu, Aug 01, 2013 at 01:30:50PM +0200, Stanislaw Gruszka wrote: Hi Dong Zhu On Thu, Aug 01, 2013 at 06:10:19PM +0800, Dong Zhu wrote: diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c index c7f31aa..cc03290 100644 --- a/kernel

Re: [PATCH] timer stats: reset entries when disable the timer usage statistics

2013-07-17 Thread Dong Zhu
On Thu, Jun 20, 2013 at 06:30:48PM +0800, Dong Zhu wrote: > On Mon, Jun 10, 2013 at 03:57:45PM +0800, Dong Zhu wrote: > > From 4dbb760213856dc382241db456c1c6487694837c Mon Sep 17 00:00:00 2001 > > From: Dong Zhu > > Date: Mon, 10 Jun 2013 15:09:27 +0800 > > > >

Re: [PATCH] timer stats: reset entries when disable the timer usage statistics

2013-07-17 Thread Dong Zhu
On Thu, Jun 20, 2013 at 06:30:48PM +0800, Dong Zhu wrote: On Mon, Jun 10, 2013 at 03:57:45PM +0800, Dong Zhu wrote: From 4dbb760213856dc382241db456c1c6487694837c Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Mon, 10 Jun 2013 15:09:27 +0800 we can start/stop data

Re: [PATCH] timer stats: reset entries when disable the timer usage statistics

2013-06-20 Thread Dong Zhu
On Mon, Jun 10, 2013 at 03:57:45PM +0800, Dong Zhu wrote: > From 4dbb760213856dc382241db456c1c6487694837c Mon Sep 17 00:00:00 2001 > From: Dong Zhu > Date: Mon, 10 Jun 2013 15:09:27 +0800 > > we can start/stop data collection by using : > echo [1|0] > /proc/timer_stats &g

Re: [PATCH] timer stats: reset entries when disable the timer usage statistics

2013-06-20 Thread Dong Zhu
On Mon, Jun 10, 2013 at 03:57:45PM +0800, Dong Zhu wrote: From 4dbb760213856dc382241db456c1c6487694837c Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Mon, 10 Jun 2013 15:09:27 +0800 we can start/stop data collection by using : echo [1|0] /proc/timer_stats when we

[PATCH] timer stats: reset entries when disable the timer usage statistics

2013-06-10 Thread Dong Zhu
>From 4dbb760213856dc382241db456c1c6487694837c Mon Sep 17 00:00:00 2001 From: Dong Zhu Date: Mon, 10 Jun 2013 15:09:27 +0800 we can start/stop data collection by using : echo [1|0] > /proc/timer_stats when we stop the data collection,hrtimer will not update the statistics for a timer an

[PATCH] timer stats: reset entries when disable the timer usage statistics

2013-06-10 Thread Dong Zhu
From 4dbb760213856dc382241db456c1c6487694837c Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Mon, 10 Jun 2013 15:09:27 +0800 we can start/stop data collection by using : echo [1|0] /proc/timer_stats when we stop the data collection,hrtimer will not update the statistics

Re: [PATCH] igb: add a method to get the nic hw time stamping policy

2013-05-14 Thread Dong Zhu
> > From 8a12932fd2a3bb5ca904bc72b20140247a5d81be Mon Sep 17 00:00:00 2001 > From: Dong Zhu > Date: Mon, 13 May 2013 17:27:59 +0800 > > Currently kernel only support setting the hw time stamping policy > through ioctl,now add a method to check which packets(Outgoing and >

Re: [PATCH] igb: add a method to get the nic hw time stamping policy

2013-05-14 Thread Dong Zhu
2001 From: Dong Zhu bluezhud...@gmail.com Date: Mon, 13 May 2013 17:27:59 +0800 Currently kernel only support setting the hw time stamping policy through ioctl,now add a method to check which packets(Outgoing and Incoming) are time stamped by nic. Add this to igb_get_ts_info, we can query

Re: [PATCH] igb: add a method to get the nic hw time stamping policy

2013-05-13 Thread Dong Zhu
one line, I have to move the switch out of else judegment. I test it on I350 and 82576NS nics and it works as expect. Could help reviewing it again ? Any comments would be appreciated. >From 8a12932fd2a3bb5ca904bc72b20140247a5d81be Mon Sep 17 00:00:00 2001 From: Dong Zhu Date: Mon, 13 May 2013 17:27

Re: [PATCH] igb: add a method to get the nic hw time stamping policy

2013-05-13 Thread Dong Zhu
of else judegment. I test it on I350 and 82576NS nics and it works as expect. Could help reviewing it again ? Any comments would be appreciated. From 8a12932fd2a3bb5ca904bc72b20140247a5d81be Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Mon, 13 May 2013 17:27:59 +0800

Re: [PATCH] igb: add a method to get the nic hw time stamping policy

2013-05-12 Thread Dong Zhu
On Sun, May 12, 2013 at 07:24:46PM +0200, Richard Cochran wrote: > On Sun, May 12, 2013 at 10:25:55PM +0800, Dong Zhu wrote: > > Thanks for your pointing out my mistakes of CodingStyle. > > > > > > struct hwtstamp_config { > > > >+int rw; > >

Re: [PATCH] igb: add a method to get the nic hw time stamping policy

2013-05-12 Thread Dong Zhu
omeone about the rw. At that time I will change the type of rw to bool or define a new enum, then convert the if to switch if necessary. Patch after modifying: >From cf337e7863af66428554785c32a9840fafaa3492 Mon Sep 17 00:00:00 2001 From: Dong Zhu Date: Sun, 12 May 2013 21:57:57 +0800 Currently kern

Re: [PATCH] igb: add a method to get the nic hw time stamping policy

2013-05-12 Thread Dong Zhu
On Sat, May 11, 2013 at 05:31:43PM +0200, Richard Cochran wrote: > On Sat, May 11, 2013 at 10:02:19PM +0800, Dong Zhu wrote: > > > > Currently kernel only support setting the hw time stamping policy > > through ioctl,now add a method to check which packets(Outgoing and &

Re: [PATCH] igb: add a method to get the nic hw time stamping policy

2013-05-12 Thread Dong Zhu
On Sat, May 11, 2013 at 05:31:43PM +0200, Richard Cochran wrote: On Sat, May 11, 2013 at 10:02:19PM +0800, Dong Zhu wrote: Currently kernel only support setting the hw time stamping policy through ioctl,now add a method to check which packets(Outgoing and Incoming) are time stamped

Re: [PATCH] igb: add a method to get the nic hw time stamping policy

2013-05-12 Thread Dong Zhu
. At that time I will change the type of rw to bool or define a new enum, then convert the if to switch if necessary. Patch after modifying: From cf337e7863af66428554785c32a9840fafaa3492 Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Sun, 12 May 2013 21:57:57 +0800 Currently

Re: [PATCH] igb: add a method to get the nic hw time stamping policy

2013-05-12 Thread Dong Zhu
On Sun, May 12, 2013 at 07:24:46PM +0200, Richard Cochran wrote: On Sun, May 12, 2013 at 10:25:55PM +0800, Dong Zhu wrote: Thanks for your pointing out my mistakes of CodingStyle. struct hwtstamp_config { +int rw; My initial idea was that the type of rw should be enum

[PATCH] igb: add a method to get the nic hw time stamping policy

2013-05-11 Thread Dong Zhu
>From e6a55411486de8a09b859e73140bf35c0ee36047 Mon Sep 17 00:00:00 2001 From: Dong Zhu Date: Sat, 11 May 2013 21:44:54 +0800 Subject: [PATCH] igb: add a method to get the nic hw time stamping policy Currently kernel only support setting the hw time stamping policy through ioctl,now add a met

[PATCH] igb: add a method to get the nic hw time stamping policy

2013-05-11 Thread Dong Zhu
From e6a55411486de8a09b859e73140bf35c0ee36047 Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Sat, 11 May 2013 21:44:54 +0800 Subject: [PATCH] igb: add a method to get the nic hw time stamping policy Currently kernel only support setting the hw time stamping policy through

Re: [PATCH] timekeeping: avoid adjust kernel time once hwclock kept in UTC time

2013-02-20 Thread Dong Zhu
On Tue, Dec 18, 2012 at 10:37:08PM -0800, John Stultz wrote: > On 12/18/2012 09:15 PM, Dong Zhu wrote: > >On Thu, Dec 06, 2012 at 10:03:34PM +0800, Dong Zhu wrote: > >> From c126376cf1837b0956e0268056db61870fbbc1d4 Mon Sep 17 00:00:00 2001 > >>From: Dong Zhu > &g

Re: [PATCH] timekeeping: avoid adjust kernel time once hwclock kept in UTC time

2013-02-20 Thread Dong Zhu
On Tue, Dec 18, 2012 at 10:37:08PM -0800, John Stultz wrote: On 12/18/2012 09:15 PM, Dong Zhu wrote: On Thu, Dec 06, 2012 at 10:03:34PM +0800, Dong Zhu wrote: From c126376cf1837b0956e0268056db61870fbbc1d4 Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Thu, 6 Dec 2012 21

Re: [PATCH] timekeeping: avoid adjust kernel time once hwclock kept in UTC time

2012-12-18 Thread Dong Zhu
On Thu, Dec 06, 2012 at 10:03:34PM +0800, Dong Zhu wrote: > From c126376cf1837b0956e0268056db61870fbbc1d4 Mon Sep 17 00:00:00 2001 > From: Dong Zhu > Date: Thu, 6 Dec 2012 21:45:00 +0800 > Subject: [PATCH] timekeeping: avoid adjust kernel time once hwclock kept in > UTC time >

Re: [PATCH] timekeeping: avoid adjust kernel time once hwclock kept in UTC time

2012-12-18 Thread Dong Zhu
On Thu, Dec 06, 2012 at 10:03:34PM +0800, Dong Zhu wrote: From c126376cf1837b0956e0268056db61870fbbc1d4 Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Thu, 6 Dec 2012 21:45:00 +0800 Subject: [PATCH] timekeeping: avoid adjust kernel time once hwclock kept in UTC time

[PATCH] timekeeping: avoid adjust kernel time once hwclock kept in UTC time

2012-12-06 Thread Dong Zhu
>From c126376cf1837b0956e0268056db61870fbbc1d4 Mon Sep 17 00:00:00 2001 From: Dong Zhu Date: Thu, 6 Dec 2012 21:45:00 +0800 Subject: [PATCH] timekeeping: avoid adjust kernel time once hwclock kept in UTC time If the Hardware Clock kept in local time,kernel will adjust the time to be

[PATCH] timekeeping: avoid adjust kernel time once hwclock kept in UTC time

2012-12-06 Thread Dong Zhu
From c126376cf1837b0956e0268056db61870fbbc1d4 Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Thu, 6 Dec 2012 21:45:00 +0800 Subject: [PATCH] timekeeping: avoid adjust kernel time once hwclock kept in UTC time If the Hardware Clock kept in local time,kernel will adjust