Re: [igt-dev] [IGT] tools/intel_gpu_top: Add support for stdout logging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 08/02/2019 10:57, Chris Wilson wrote:
Quoting Tvrtko Ursulin (2019-02-08 10:52:19)

On 08/02/2019 10:33, Chris Wilson wrote:
Quoting Tvrtko Ursulin (2019-02-08 10:26:12)
From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>

Two new output modes are added: listing of text data to standard out (-l
on the command line), and dumping of JSON formatted records (-J), also to
standard out.

Any chance of interactive with yaml^W json to file?

If you cannot do with shell redirection then sure, it shouldn't be hard
to add.

YAML, if it follows the same patterns as JSON, also should be easy like
a handful of lines.

And the latter.. I need some feedback from the users on how they plan to
use it. This implementation outputs records, but if you Ctrl-C-it you
get the last incomplete. And you probably need to wrap everything in [ ]
to make an array of these records.

signal(SIGINT, close_output) ?

I guess.. wanted to keep it simple but this is probably warranted.

Regards,

Tvrtko

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux