[Pdbg] [PATCH] libpdbg: progress bars!

Joel Stanley joel at jms.id.au
Fri May 11 16:59:19 AEST 2018


On 11 May 2018 at 16:23, Amitay Isaacs <amitay at ozlabs.org> wrote:
> On Thu, 2018-05-10 at 16:58 +0930, Joel Stanley wrote:
>>  $ pdbg -p 0 getmem 0x8040278 100 > /tmp/log
>>  [==================================================] 100%
>>
>> Signed-off-by: Joel Stanley <joel at jms.id.au>
>
> This probably belongs to the pdbg tool and not the library.  In that
> case we may need a polling interface to library functions to find out
> the progress. :-(
>
> Or, we can register callbacks for progress_tick from pdbg tool and emit
> progress_tick from various long operations in the library.

Yeah. I did a v2 of this that makes it optional, as there are plenty
of cases where we don't want progress bars.

It is super useful for big transfers though. I recommend doing a getmem
with this patch applied; if it's a multi-minute transfer it will
predict how long it takes.

Cheers,

Joel


More information about the Pdbg mailing list