This is a test program for gadgetfs from linux-usb.org. Please see http://www.linux-usb.org/gadget/ for more information. I've just grabbed the three source files from that page, added a Makefile and put everything in a tarball.
gadgetfs-test.tar.bz2: Gadgetfs test program + Makefile