Re: Custom logging user client tool from GMAC?
On Sep 10, 2003, at 6:53 AM, chuck remes wrote:
Take a look at the sample code from DTS, for starters.
Devices_and_Hardware/IOKit/SimpleUserClient.htm
Yes, I have been and am working with this. I just hoped I could find the actual source for the userland tool that Apple "Writing Device Drivers" doc clearly used and claims are available.
Then you can find the code for GMAC's usertool at:
http://www.opendarwin.org/cgi-bin/cvsweb.cgi/src/AppleGMACEthernet/
It's embedded into the source file UniNEnet.cpp at the bottom of the
file. The class definitions are in the associated header file.
I must be confused here. I checked the specified file at opendarwin.org and in Apple's tar ball for 10.2.6 and in both cases this file ends with the method "UniNEnetUserClient::writeMII". This class is necessary but not sufficient. Unless I'm completely lost, the class is the in-kernel portion of the user client. That's fine but I need the matching out-of-kernel code. Apple's docs refer to a user-land tool (a CLI app I'd expect) that connects to this user client subclass and pulls the log info from it. I do not see this code anywhere in the AppleGMACEthernet project. You are correct that the SimpleUserClient has some examples of this sort of CLI (ie: main()) tool but it's only painfully basic sample code. It's has no relation to the AppleGMACEthernet user client and has no idea about its log format. Lacking the tool that Apple refers to I'm presently rolling my own userland tool, but it's seems a great waste of time given that Apple must have already done this. Thanks again, -Mike
On Tuesday, September 9, 2003, at 09:15 AM, Michael Cashwell wrote:
Greetings,
Sorry if this should go to Darwin-drivers. (Some questions span these
lists' domains.)
I'm trying to make use of the custom logging code (ELG) from Apple's
GMAC driver in my own code. It's discussed at
http://developer.apple.com/documentation/DeviceDrivers/Conceptual/
WritingDeviceDriver/DebuggingDrivers/chapter_8_section_5.html
which says:
This driver implements a kernel-resident logging infrastructure as
well as a user-space tool to print the formatted contents of a log
buffer. The tool used by AppleGMACEthernet prints a report to the
standard output that begins with header information followed by
time-stamped log entries.
However, the AppleGMACEthernet-124.2.3.tar archive does not appear to
contain any source for the mentioned userland tool. Does anyone know
where I might find this source?
Thanks,
-Mike
_______________________________________________
darwin-kernel mailing list | darwin-kernel@lists.apple.com
Help/Unsubscribe/Archives:
Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-kernel mailing list | darwin-kernel@lists.apple.com
Help/Unsubscribe/Archives:
Do not post admin requests to the list. They will be ignored.
_______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Michael Cashwell