Tony, On Wed, Jul 2, 2008 at 7:23 PM, Luck, Tony <[EMAIL PROTECTED]> wrote: >> 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. > Except that the data passed for one or the other may not be the same. However, it is true that as of today the PMC information is a subset of the PMD's.
Are you also suggestion we merge the two syscalls to write the registers? ------------------------------------------------------------------------- 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