Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compare the generated devices #22

Open
lu-zero opened this issue Dec 19, 2021 · 2 comments
Open

Compare the generated devices #22

lu-zero opened this issue Dec 19, 2021 · 2 comments

Comments

@lu-zero
Copy link
Collaborator

lu-zero commented Dec 19, 2021

generate a /dev using:

target/debug/mdev -s --devpath /tmp/mdev-dev/

use mdevd

mkdir /tmp/mdevd-dev
sudo mdevd -d /tmp/mdevd-dev & 
sleep 2
# triggers the add events for /sys
sudo mdevd-coldplug
@lu-zero
Copy link
Collaborator Author

lu-zero commented Jul 3, 2022

Tested and produces the same output.

@lu-zero
Copy link
Collaborator Author

lu-zero commented Jul 3, 2022

lu_zero on honey-g in mdevd on  master took 5s
❯ ls /tmp/mdevd-dev
autofs              i2c-2         loop6         nvme0n1p1  ptypd  ram9    tty19  tty35  tty51    ttyAMA1  ttypc     vcs9    vcsu12
btrfs-control       i2c-3         loop7         port       ptype  random  tty2   tty36  tty52    ttyS0    ttypd     vcsa    vcsu2
bus                 i2c-4         mem           pps0       ptypf  rfkill  tty20  tty37  tty53    ttyS1    ttype     vcsa1   vcsu3
console             i2c-5         mmcblk0       ptmx       ram0   rtc0    tty21  tty38  tty54    ttyS2    ttypf     vcsa10  vcsu4
cpu_dma_latency     i2c-6         mmcblk0boot0  ptp0       ram1   rtc1    tty22  tty39  tty55    ttyS3    ubi_ctrl  vcsa11  vcsu5
dpaa2_aiop_console  i2c-7         mmcblk0boot1  ptyp0      ram10  snd     tty23  tty4   tty56    ttyUSB0  urandom   vcsa12  vcsu6
dpaa2_mc_console    i2c-8         mmcblk0p1     ptyp1      ram11  tty     tty24  tty40  tty57    ttyp0    vcs       vcsa2   vcsu7
dprc.1              i2c-9         mmcblk0rpmb   ptyp2      ram12  tty0    tty25  tty41  tty58    ttyp1    vcs1      vcsa3   vcsu8
full                input         mmcblk1       ptyp3      ram13  tty1    tty26  tty42  tty59    ttyp2    vcs10     vcsa4   vcsu9
fuse                kmsg          mmcblk1p1     ptyp4      ram14  tty10   tty27  tty43  tty6     ttyp3    vcs11     vcsa5   vfio
gpiochip0           kvm           mtd0          ptyp5      ram15  tty11   tty28  tty44  tty60    ttyp4    vcs12     vcsa6   vga_arbiter
gpiochip1           loop-control  mtd0ro        ptyp6      ram2   tty12   tty29  tty45  tty61    ttyp5    vcs2      vcsa7   vhost-net
gpiochip2           loop0         mtdblock0     ptyp7      ram3   tty13   tty3   tty46  tty62    ttyp6    vcs3      vcsa8   watchdog
gpiochip3           loop1         net           ptyp8      ram4   tty14   tty30  tty47  tty63    ttyp7    vcs4      vcsa9   watchdog0
hwrng               loop2         ng0n1         ptyp9      ram5   tty15   tty31  tty48  tty7     ttyp8    vcs5      vcsu    zero
i2c-0               loop3         null          ptypa      ram6   tty16   tty32  tty49  tty8     ttyp9    vcs6      vcsu1
i2c-1               loop4         nvme0         ptypb      ram7   tty17   tty33  tty5   tty9     ttypa    vcs7      vcsu10
i2c-10              loop5         nvme0n1       ptypc      ram8   tty18   tty34  tty50  ttyAMA0  ttypb    vcs8      vcsu11

lu_zero on honey-g in mdevd on  master
❯ ls /tmp/mdev-dev
autofs              i2c-2         loop6         nvme0n1p1  ptypd  ram9    tty19  tty35  tty51    ttyAMA1  ttypc     vcs9    vcsu12
btrfs-control       i2c-3         loop7         port       ptype  random  tty2   tty36  tty52    ttyS0    ttypd     vcsa    vcsu2
bus                 i2c-4         mem           pps0       ptypf  rfkill  tty20  tty37  tty53    ttyS1    ttype     vcsa1   vcsu3
console             i2c-5         mmcblk0       ptmx       ram0   rtc0    tty21  tty38  tty54    ttyS2    ttypf     vcsa10  vcsu4
cpu_dma_latency     i2c-6         mmcblk0boot0  ptp0       ram1   rtc1    tty22  tty39  tty55    ttyS3    ubi_ctrl  vcsa11  vcsu5
dpaa2_aiop_console  i2c-7         mmcblk0boot1  ptyp0      ram10  snd     tty23  tty4   tty56    ttyUSB0  urandom   vcsa12  vcsu6
dpaa2_mc_console    i2c-8         mmcblk0p1     ptyp1      ram11  tty     tty24  tty40  tty57    ttyp0    vcs       vcsa2   vcsu7
dprc.1              i2c-9         mmcblk0rpmb   ptyp2      ram12  tty0    tty25  tty41  tty58    ttyp1    vcs1      vcsa3   vcsu8
full                input         mmcblk1       ptyp3      ram13  tty1    tty26  tty42  tty59    ttyp2    vcs10     vcsa4   vcsu9
fuse                kmsg          mmcblk1p1     ptyp4      ram14  tty10   tty27  tty43  tty6     ttyp3    vcs11     vcsa5   vfio
gpiochip0           kvm           mtd0          ptyp5      ram15  tty11   tty28  tty44  tty60    ttyp4    vcs12     vcsa6   vga_arbiter
gpiochip1           loop-control  mtd0ro        ptyp6      ram2   tty12   tty29  tty45  tty61    ttyp5    vcs2      vcsa7   vhost-net
gpiochip2           loop0         mtdblock0     ptyp7      ram3   tty13   tty3   tty46  tty62    ttyp6    vcs3      vcsa8   watchdog
gpiochip3           loop1         net           ptyp8      ram4   tty14   tty30  tty47  tty63    ttyp7    vcs4      vcsa9   watchdog0
hwrng               loop2         ng0n1         ptyp9      ram5   tty15   tty31  tty48  tty7     ttyp8    vcs5      vcsu    zero
i2c-0               loop3         null          ptypa      ram6   tty16   tty32  tty49  tty8     ttyp9    vcs6      vcsu1
i2c-1               loop4         nvme0         ptypb      ram7   tty17   tty33  tty5   tty9     ttypa    vcs7      vcsu10
i2c-10              loop5         nvme0n1       ptypc      ram8   tty18   tty34  tty50  ttyAMA0  ttypb    vcs8      vcsu11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant