aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-devtools/codexl/codexl/amdtPwrProf.rules
diff options
context:
space:
mode:
authorWade Farnsworth <wfarnsworth@users.noreply.github.com>2019-10-22 08:08:07 -0700
committerGitHub <noreply@github.com>2019-10-22 08:08:07 -0700
commit8e0cf9ee43840bd7ee004412129ba4aa055f5fc8 (patch)
treeb13804093e413307097cd6788ccdc8b062084013 /meta-amd-bsp/recipes-devtools/codexl/codexl/amdtPwrProf.rules
parent9e1e1da00d8ef569d83a7a742a734dbbf5e0bd13 (diff)
parent3f8062a03dc1d1d5fa386e1f1ca59d56b86a85d1 (diff)
downloadmeta-amd-master.tar.gz
meta-amd-master.tar.bz2
meta-amd-master.zip
Merge pull request #661 from ArsalanHAwan/master-merge-warriorHEADmaster
master: merge warrior
Diffstat (limited to 'meta-amd-bsp/recipes-devtools/codexl/codexl/amdtPwrProf.rules')
-rw-r--r--meta-amd-bsp/recipes-devtools/codexl/codexl/amdtPwrProf.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-devtools/codexl/codexl/amdtPwrProf.rules b/meta-amd-bsp/recipes-devtools/codexl/codexl/amdtPwrProf.rules
new file mode 100644
index 00000000..f29c4829
--- /dev/null
+++ b/meta-amd-bsp/recipes-devtools/codexl/codexl/amdtPwrProf.rules
@@ -0,0 +1,5 @@
+# Create the device file when the module is inserted.
+SUBSYSTEM=="module", ACTION=="add", KERNEL=="amdtPwrProf", RUN+="/opt/codexl/amdtPwrProf_mknod.sh"
+
+# Remove the device file when the module is removed.
+SUBSYSTEM=="module", ACTION=="remove", KERNEL=="amdtPwrProf", RUN+="/bin/rm /dev/amdtPwrProf"