On Fri, 2006-24-03 at 20:24 +0530, Balbir Singh wrote: > Hmm... Would it be ok to send one message with the following format > > 1. TLV=TASKSTATS_TYPE_PID > 2. TLV=TASKSTATS_TYPE_STATS > 3. TLV=TASKSTATS_TYPE_TGID > 4. TLV=TASKSTATS_TYPE_STATS > > It would still be one message, except that 3 and 4 would be optional. > What do you think? > No, that wont work since #2 and #4 are basically the same TLV. [Recall that "T" is used to index an array]. Your other alternative is to have #4 perhaps called TASKSTATS_TGID_STATS and #2 TASKSTATS_PID_STATS although that would smell a little. Dont be afraid to do the nest, it will be a little painful initially but i am sure once you figure it out you will appreciate it. cheers, jamal - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- [Patch 0/9] Per-task delay accounting
- From: Shailabh Nagar <[email protected]>
- [Patch 9/9] Generic netlink interface for delay accounting
- From: Shailabh Nagar <[email protected]>
- Re: [Patch 9/9] Generic netlink interface for delay accounting
- From: Matt Helsley <[email protected]>
- Re: [Patch 9/9] Generic netlink interface for delay accounting
- From: jamal <[email protected]>
- [RFC][UPDATED PATCH 2.6.16] [Patch 9/9] Generic netlink interface for delay accounting
- From: Balbir Singh <[email protected]>
- Re: [RFC][UPDATED PATCH 2.6.16] [Patch 9/9] Generic netlink interface for delay accounting
- From: jamal <[email protected]>
- Re: [RFC][UPDATED PATCH 2.6.16] [Patch 9/9] Generic netlink interface for delay accounting
- From: Balbir Singh <[email protected]>
- Re: [RFC][UPDATED PATCH 2.6.16] [Patch 9/9] Generic netlink interface for delay accounting
- From: jamal <[email protected]>
- Re: [RFC][UPDATED PATCH 2.6.16] [Patch 9/9] Generic netlink interface for delay accounting
- From: Balbir Singh <[email protected]>
- [Patch 0/9] Per-task delay accounting
- Prev by Date: Re: [uml-devel] Re: [PATCH 12/16] UML - Memory hotplug
- Next by Date: RE: 2.6.16 hugetlbfs problem - DEBUG_PAGEALLOC
- Previous by thread: Re: [RFC][UPDATED PATCH 2.6.16] [Patch 9/9] Generic netlink interface for delay accounting
- Next by thread: Re: [RFC][UPDATED PATCH 2.6.16] [Patch 9/9] Generic netlink interface for delay accounting
- Index(es):