lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 15 May 2015 13:45:32 +0200
From:	Jan Kiszka <jan.kiszka@...mens.com>
To:	Thiébaud Weksteen <thiebaud@...steen.fr>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scripts/gdb: Add ps command

On 2015-05-14 07:25, Thiébaud Weksteen wrote:
> Signed-off-by: Thiébaud Weksteen <thiebaud@...steen.fr>
> ---
>  scripts/gdb/linux/tasks.py | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/scripts/gdb/linux/tasks.py b/scripts/gdb/linux/tasks.py
> index 0fa33b0..862a4ae 100644
> --- a/scripts/gdb/linux/tasks.py
> +++ b/scripts/gdb/linux/tasks.py
> @@ -66,6 +66,22 @@ return that task_struct variable which PID matches."""
>  LxTaskByPidFunc()
>  
>  
> +class LxPs(gdb.Command):
> +    """Dump Linux tasks."""
> +
> +    def __init__(self):
> +        super(LxPs, self).__init__("lx-ps", gdb.COMMAND_DATA)
> +
> +    def invoke(self, arg, from_tty):
> +        for task in task_lists():
> +            gdb.write("{address} {pid} {comm}\n".format(
> +                address=task,
> +                pid=task["pid"],
> +                comm=task["comm"].string()))
> +
> +LxPs()
> +
> +
>  thread_info_type = utils.CachedType("struct thread_info")
>  
>  ia64_task_size = None
> 

Nice! Applied.

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ