Tegrastats changes output depending on user running it


I’m using Jetson Nano, tx2 and Xavier.

Trying to parse the tegrastat logs in order to process them (in my case with telegraf) is a nightmare.

Not only the output changes between models, which is understandable, but it also changes depending on the mode (i.e. nvenc running vs not running).

But, the most annoying part is that tegrastats output is different if you run it under a normal user vs sudo. IRAM parameters or NVJPG parameters shows or does not show depending on the case.

I ask you please to review this tool in order to give a simpler, more consistent output.

Thanks a lot