[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <155596568158.15276.10057207756258850078@swboyd.mtv.corp.google.com>
Date: Mon, 22 Apr 2019 13:41:21 -0700
From: Stephen Boyd <sboyd@...nel.org>
To: Jan Kiszka <jan.kiszka@...mens.com>,
Kieran Bingham <kbingham@...nel.org>,
Leonard Crestez <leonard.crestez@....com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/3] scripts/gdb: Add hlist utilities
Quoting Leonard Crestez (2019-04-22 01:26:56)
> This allows easily examining kernel hlists in python.
>
> Signed-off-by: Leonard Crestez <leonard.crestez@....com>
Reviewed-by: Stephen Boyd <sboyd@...nel.org>
> +
> +
> +def hlist_for_each_entry(head, gdbtype, member):
> + for node in hlist_for_each(head):
> + if node.type != hlist_node.get_type().pointer():
> + raise TypeError("Type {} found. Expected struct hlist_head *."
Maybe drop the full-stop? It looks weird to see struct list_head *.
> + .format(node.type))
> + yield utils.container_of(node, gdbtype, member)
> +
> +
Powered by blists - more mailing lists