This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [pcp] suitability of PCP for event tracing
- From: Max Matveev <makc at gmx dot co dot uk>
- To: nathans at aconex dot com
- Cc: kenj at internode dot on dot net, pcp at oss dot sgi dot com, systemtap at sources dot redhat dot com
- Date: Thu, 11 Nov 2010 12:46:29 +1100
- Subject: Re: [pcp] suitability of PCP for event tracing
- References: <1565492777.26861289432902163.JavaMail.root@acxmail-au2.aconex.com> <148598811.26881289432947445.JavaMail.root@acxmail-au2.aconex.com>
On Thu, 11 Nov 2010 10:49:07 +1100 (EST), nathans wrote:
>> There may be just one PMID and an associated PM_TYPE_STRING value
>> in cases where the event subsystem produces event records as
>> structured strings, e.g. XML or JSON encodings.
nathans> I think we should introduce PM_TYPE_JSON and PM_TYPE_XML so that the
nathans> clients can differentiate these from unstructured strings...
It we're going to do that can we also agree who owns memory allocated
to hold the string and who is responsible for freeing it? Current idea
what pmda callback owns the memory makes life harder for dynamically
allocated strings. In fact, I think adding something
PM_TYPE_YOUFREE_STRING would make like easier for PMDA writers.
max