aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorLogan Gunthorpe <[email protected]>2018-10-04 15:27:38 -0600
committerBjorn Helgaas <[email protected]>2018-10-17 12:18:17 -0500
commit2d7bc010f450d803db9fed1a25da6144ff6140d3 (patch)
treed54ab047d59ef11976e6c0929e7df9eb89397e39 /tools/perf/util/trace-event-scripting.c
parent977196b8c5b20b901acb0042579e30d7fa55790a (diff)
PCI/P2PDMA: Introduce configfs/sysfs enable attribute helpers
Users of the P2PDMA infrastructure will typically need a way for the user to tell the kernel to use P2P resources. Typically this will be a simple on/off boolean operation but sometimes it may be desirable for the user to specify the exact device to use for the P2P operation. Add new helpers for attributes which take a boolean or a PCI device. Any boolean as accepted by strtobool() turn P2P on or off (such as 'y', 'n', '1', '0', etc). Specifying a full PCI device name/BDF will select the specific device. Signed-off-by: Logan Gunthorpe <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions