On 05/25/2015 07:28 PM, [email protected] wrote:
From: Martin Sperl <[email protected]>

per spi-master statistics accessible as:
   /sys/class/spi_master/spi*/statistics/

per spi-device statistics accessible via:
   /sys/class/spi_master/spi*/spi*.*/statistics/

The following statistics are exposed as separate "files" inside
these directories:
   * messages           number of spi_messages
   * transfers          number of spi_transfers
   * bytes              number of bytes transferred
   * bytes_rx           number of bytes transmitted
   * bytes_tx           number of bytes received
   * bytes_histo                transferred bytes/spi_transfer histogram

Having those kinds of stats in world readable files has serious security implications as they can be used to implement side-channel attacks. They should probably only be available in debugfs for root.
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to