On Sun, 31 May 2026 17:17:20 +0800 Kunwu Chan <[email protected]> wrote:
> From: Kunwu Chan <[email protected]> > > DamonCtx.__init__() uses mutable default values for > monitoring_attrs, targets, and schemes. In Python these are > evaluated once at function definition time, so multiple > DamonCtx instances can unintentionally share the same lists > and DamonAttrs instance. > > Replace the mutable defaults with None sentinels and > initialize the objects when needed. Nice change, thank you! > > Co-developed-by: Wang Lian <[email protected]> > Signed-off-by: Wang Lian <[email protected]> > Signed-off-by: Kunwu Chan <[email protected]> checkpatch.pl complains as below: WARNING: From:/Signed-off-by: email address mismatch: 'From: Kunwu Chan <[email protected]>' != 'Signed-off-by: Kunwu Chan <[email protected]>' Other than that, Reviewed-by: SeongJae Park <[email protected]> Thanks, SJ [...]

