Re: [PATCH 4/6] perf kmem: Analyze page allocator events also

Jiri Olsa
2015-03-12T11:01:47Z

On Thu, Mar 12, 2015 at 04:32:49PM +0900, Namhyung Kim wrote:

SNIP

> +static int parse_slab_opt(const struct option *opt __maybe_unused,
> + const char *arg __maybe_unused,
> + int unset __maybe_unused)
> +{
> + kmem_slab = (kmem_page + 1);
> + return 0;
> +}
> +
> +static int parse_page_opt(const struct option *opt __maybe_unused,
> + const char *arg __maybe_unused,
> + int unset __maybe_unused)
> +{
> + kmem_page = (kmem_slab + 1);
> + return 0;
> +}

hum, just curious.. why not just assign 1, I'm missing the magic ;-)

thanks,
jirk