Re: [PATCH 2/4] tools lib traceevent: Use USECS_PER_SEC instead of hardcoded number

2016-08-06 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 05, 2016 at 03:15:28PM -0400, Steven Rostedt escreveu: > On Fri, 5 Aug 2016 15:36:55 -0300 > Arnaldo Carvalho de Melo wrote: > > > > [acme@jouet linux]$ cat tools/include/linux/time64.h > > #ifndef _TOOLS_LINUX_TIME64_H > > #define _TOOLS_LINUX_TIME64_H > > > > #define MSEC_PER_SEC

Re: [PATCH 2/4] tools lib traceevent: Use USECS_PER_SEC instead of hardcoded number

2016-08-05 Thread Steven Rostedt
On Fri, 5 Aug 2016 15:36:55 -0300 Arnaldo Carvalho de Melo wrote: > [acme@jouet linux]$ cat tools/include/linux/time64.h > #ifndef _TOOLS_LINUX_TIME64_H > #define _TOOLS_LINUX_TIME64_H > > #define MSEC_PER_SEC 1000L > #define USEC_PER_MSEC 1000L > #define NSEC_PER_USEC 1000L > #define NSEC_PE

Re: [PATCH 2/4] tools lib traceevent: Use USECS_PER_SEC instead of hardcoded number

2016-08-05 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 05, 2016 at 02:19:42PM -0400, Steven Rostedt escreveu: > On Wed, 2 Mar 2016 09:20:04 -0300 > Arnaldo Carvalho de Melo wrote: > > > Em Tue, Feb 09, 2016 at 03:40:15PM -0500, Steven Rostedt escreveu: > > > From: "Steven Rostedt (Red Hat)" > > > > > > Instead of using 100, define a

Re: [PATCH 2/4] tools lib traceevent: Use USECS_PER_SEC instead of hardcoded number

2016-08-05 Thread Steven Rostedt
On Wed, 2 Mar 2016 09:20:04 -0300 Arnaldo Carvalho de Melo wrote: > Em Tue, Feb 09, 2016 at 03:40:15PM -0500, Steven Rostedt escreveu: > > From: "Steven Rostedt (Red Hat)" > > > > Instead of using 100, define a USECS_PER_SEC macro and use that > > instead. > > Applying, but the kernel u

Re: [PATCH 2/4] tools lib traceevent: Use USECS_PER_SEC instead of hardcoded number

2016-03-02 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 09, 2016 at 03:40:15PM -0500, Steven Rostedt escreveu: > From: "Steven Rostedt (Red Hat)" > > Instead of using 100, define a USECS_PER_SEC macro and use that instead. Applying, but the kernel uses USEC_PER_SEC, NSEC_PER_SEC, etc, at some point I'll try and get those same headers