Re: [PATCH] perf: Generate EXIT event only once per task context

2013-03-15 Thread Namhyung Kim
Hi, I added a test case for this. Please take a look on it too. This patch is based on my previous evlist cleanup patchset: https://lkml.org/lkml/2013/3/15/47 Thanks, Namhyung >From df86ff1984a2ab89331a10f5e1fc93f09e260ed9 Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Fri, 15 Mar

[PATCH] perf: Generate EXIT event only once per task context

2013-03-15 Thread Namhyung Kim
From: Namhyung Kim perf_event_task_event() iterates pmu list and generate events for each eligible pmu context. But if task_event has task_ctx like in EXIT it'll generate events even though the pmu doesn't have an eligible one. Fix it by moving the code to proper places. Before this patch:

[PATCH] perf: Generate EXIT event only once per task context

2013-03-15 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com perf_event_task_event() iterates pmu list and generate events for each eligible pmu context. But if task_event has task_ctx like in EXIT it'll generate events even though the pmu doesn't have an eligible one. Fix it by moving the code to proper places.

Re: [PATCH] perf: Generate EXIT event only once per task context

2013-03-15 Thread Namhyung Kim
Hi, I added a test case for this. Please take a look on it too. This patch is based on my previous evlist cleanup patchset: https://lkml.org/lkml/2013/3/15/47 Thanks, Namhyung From df86ff1984a2ab89331a10f5e1fc93f09e260ed9 Mon Sep 17 00:00:00 2001 From: Namhyung Kim namhyung@lge.com