Hi Thomas,
so far, our approach did not give our special unprivileged user access to the
PCI devices. But I took your question as a challenge and tried to implement
that now.
I'm attaching the udev rules file (40-likwid.rules) we use and the helper
script (chown-proc, called from the udev rules file) I wrote to derive the name
of the file in /proc/bus/pci corresponding to sysfs's devpath. These may need
some generalization for other system, e.g., I assumed that the devpath is
always of the form ".../0000:..." and that the driver for the PCI devices is
called "ivt_uncore". I'm not an expert at all for the PCI device handling, so
improvements to the script are welcome.
Best regards,
Armin
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "likwid-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to
likwid-develop...@googlegroups.com
> <mailto:
likwid-develop...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.