perf-counter: simplify the performance macro
authorAndy Zhou <azhou@nicira.com>
Wed, 8 Jul 2015 21:06:12 +0000 (14:06 -0700)
committerAndy Zhou <azhou@nicira.com>
Fri, 17 Jul 2015 19:24:22 +0000 (12:24 -0700)
commit73ec82bf5a0eee08dbddea520536197657da7a0b
tree282d4216192e3d0acc21dbca12e5d2681f291c31
parentcd747abb601183ab6f10420d5637951d5d4c6206
perf-counter: simplify the performance macro

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 <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/perf-counter.h