Re: [ovs-dev] [PATCH 1/2] perf-counter: simplify the performance macro

2015-06-19 Thread Andy Zhou
On Sun, Jun 7, 2015 at 11:09 AM, Ben Pfaff wrote: > On Mon, Jun 01, 2015 at 03:34:51PM -0700, Andy Zhou wrote: >> Replace the original PERF_FUNCTION_BEGIN and PERF_FUNCTION_END pair >> with a single PERF macro. This design is also more flexible, removing >> the restriction of have only one measure

Re: [ovs-dev] [PATCH 1/2] perf-counter: simplify the performance macro

2015-06-07 Thread Ben Pfaff
On Mon, Jun 01, 2015 at 03:34:51PM -0700, Andy Zhou wrote: > Replace the original PERF_FUNCTION_BEGIN and PERF_FUNCTION_END pair > with a single PERF macro. This design is also more flexible, removing > the restriction of have only one measurement per function. > > The next patch will make use of

[ovs-dev] [PATCH 1/2] perf-counter: simplify the performance macro

2015-06-01 Thread Andy Zhou
Replace the original PERF_FUNCTION_BEGIN and PERF_FUNCTION_END pair with a single PERF macro. This design is also more flexible, removing the restriction of have only one measurement per function. The next patch will make use of this macro. Signed-off-by: Andy Zhou --- lib/perf-counter.c | 13 +