On Mon, Sep 18, 2017 at 11:55 AM, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote: > On Mon, Sep 18, 2017 at 11:28:32AM -0400, Cliff Brake wrote: >> On Thu, Sep 14, 2017 at 12:37 PM, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote: >> > On Thu, Sep 14, 2017 at 08:20:09AM -0400, Cliff Brake wrote: >> >> Hi, >> >> >> >> I'm trying to better understand the kernel module loading mechanism >> >> (for example when you plug in a USB device and a kernel module >> >> autoloads). It appears that depmod creates a module.alias map that >> >> maps USB info to modules. Is there any way to instrument or observe >> >> the actual loading process? >> > >> > Why do you need to "observe" it? You can always use kprobes or some >> > tracing tool to see the filesystem accesses if you really care about >> > this. >> > >> > But it should all "just work", right? Is something failing for you? >> >> Its working great -- more just a point of curiosity -- would like to >> understand what user-space tool is actually getting called to do the >> module loading. Especially since the /sbin/hotplug location/mechanism >> seems to have changed -- seems we should get some of the documentation >> updated (unless I'm missing something). Thanks for the kprobes idea >> -- will look into that and kernel source ... >> >> (BTW, this curiosity was motivated by a Eudyptula Challenge exercise) > > Not good, that's against the rules, last time I checked... Sigh -- this is very demotivating. I thought a simple dmesg would good enough "proof" for the Eudyptula Challenge. The intent here was NOT to cheat on the Eudyptula Challenge, but to go beyond what I thought the Eudyptula Challenge required and hopefully fix up some kernel documentation (Documentation/usb/hotplug.txt) -- perhaps its all correct and up to date and I'm just missing something ... I'm not a profilic kernel guy, but I have made several contributions in the past, and have been helping companies implement various products using Linux + OpenEmbedded over the past 15 years. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/?qt=author&q=Cliff+Brake So my intent was simply honest discussion. Sorry this was clear -- I will go my way and not bother you busy folks any more. Cliff -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html