Re: perf_counters issue with PERF_SAMPLE_GROUP

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: stephane eranian
Date: Tuesday, August 11, 2009 - 12:40 pm

On Tue, Aug 11, 2009 at 6:05 PM, Peter Zijlstra<a.p.zijlstra@chello.nl> wrote:
Can't send you the program because it uses extra bits and pieces
which are hard to remove. Otherwise I would have send it already.
But I think it boils down to the following piece of code in
perf_counter_output():
                leader = counter->group_leader;
                list_for_each_entry(sub, &leader->sibling_list, list_entry) {
                        if (sub != counter)
                                sub->pmu->read(sub);

                        group_entry.id = primary_counter_id(sub);
                        group_entry.counter = atomic64_read(&sub->count);

                        perf_output_put(&handle, group_entry);
                }


Yes, but don't you have a namespace issue between PERF_FORMAT_* and
PERF_SAMPLE_* in the patch below? I would think you want to keep them separate.

I am also wondering about why one would want one timing value and not the other.
In other words, why not group them under a single name. But maybe it is harder
to return more than one u64 per PERF_FORMAT?

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
perf_counters issue with PERF_SAMPLE_GROUP, stephane eranian, (Tue Aug 11, 8:41 am)
Re: perf_counters issue with PERF_SAMPLE_GROUP, Peter Zijlstra, (Tue Aug 11, 9:05 am)
Re: perf_counters issue with PERF_SAMPLE_GROUP, stephane eranian, (Tue Aug 11, 12:40 pm)
Re: perf_counters issue with PERF_SAMPLE_GROUP, Peter Zijlstra, (Tue Aug 11, 1:55 pm)
Re: perf_counters issue with PERF_SAMPLE_GROUP, stephane eranian, (Tue Aug 11, 2:08 pm)
Re: perf_counters issue with PERF_SAMPLE_GROUP, Peter Zijlstra, (Wed Aug 12, 1:32 am)
Re: perf_counters issue with PERF_SAMPLE_GROUP, Ingo Molnar, (Wed Aug 12, 2:02 am)
Re: perf_counters issue with PERF_SAMPLE_GROUP, stephane eranian, (Wed Aug 12, 5:22 am)
Re: perf_counters issue with PERF_SAMPLE_GROUP, stephane eranian, (Wed Aug 12, 1:54 pm)
Re: perf_counters issue with PERF_SAMPLE_GROUP, Ingo Molnar, (Thu Aug 13, 2:46 am)
Re: perf_counters issue with PERF_SAMPLE_GROUP, stephane eranian, (Thu Aug 13, 12:15 pm)
Re: perf_counters issue with PERF_SAMPLE_GROUP, Corey Ashford, (Thu Aug 13, 4:13 pm)
Re: perf_counters issue with PERF_SAMPLE_GROUP, Paul Mackerras, (Thu Aug 13, 4:49 pm)