> To go further, we could also group the write syscalls : pfm_write_regs(int > fd, int type, void *arg, size_t arg_sz) with type > indicating either config or data registers. > > What do you think?
What about encoding control/data in the register number? E.g. negative numbers for config, and positive numbers for data? Added benefit ... this would allow you to make a single syscall to set config and data registers using one vector. -Tony ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel