I don't think I need a clone thing, once agreed I can use the read+write
transaction model on the perfctl device.
Question. Should I force the payloads to be strings, or should I use binary?
Example:
struct req1 {
uint32_t size;
uint32_t req;
uint32_t cnt;
uint64_t something[NMAX];
};
write(fd, &req, sizeof(req));
read(fd, result_buffer, ...);
Or:
write(fd, "req=2 something={2, 5, 7}", len_of_string);
read(fd, result_buffer, ...);
If string, simple stuff like above, or JSON (we don't have a parser in
kernel)?
Strings are clearly more flexible, but there is a cost in generating and
parsing them.
--
You received this message because you are subscribed to the Google Groups
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.