Hello, I updated the patch for the latest git tree.
Thanks,
Takashi Yamamoto.
----------------------------------------------------
In the cell spe follow mode,
the monitored task does not notice ZOMBIE state.
So we unload and free the pfm context at __pfm_close().
Signed-off-by: Takashi Yamamoto <[EMAIL PROTECTED]>
---
perfmon/perfmon_file.c | 9 +++++++++
1 file changed, 9 insertions(+)
--- a/perfmon/perfmon_file.c
+++ b/perfmon/perfmon_file.c
@@ -560,6 +560,15 @@ int __pfm_close(struct pfm_context *ctx,
* ZOMBIE state as part of pfm_unload_context()
*/
can_unload = can_free = 0;
+
+ /*
+ * If TIF_PERFMON_CTXSW is not set to the task,
+ * the monitored task does not notice ZOMBIE state
+ * because pfm_ctxsw() is not called from the task scheduler.
+ * So the context is unloaded and freed here.
+ */
+ if (ctx->flags.not_dflt_ctxsw)
+ can_unload = can_free = 1;
}
#endif
if (can_unload)
cell-forced-close-in-spe-follow.patch
Description: Binary data
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ perfmon2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
