Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1217703
| From | Vince Weaver <vincent.weaver@maine.edu> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: perf: possible bug in perf_event__read_size |
| Date | 2015-09-02 17:40 +0200 |
| Message-ID | <q4iiK-JG-3@gated-at.bofh.it> (permalink) |
| References | <q4i96-yB-69@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, 2 Sep 2015, Vince Weaver wrote: > Shouldn't that be > > if (event->attr.read_format & PERF_FORMAT_ID) > size += sizeof(u64); never mind, after a lot of further thought I can see this is a "clever" hack to allow group events to have an ID for each value. It's a shame the perf_event code doesn't more comments in the code, especially when the code is being clever like this. Vince -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
perf: possible bug in perf_event__read_size Vince Weaver <vincent.weaver@maine.edu> - 2015-09-02 17:30 +0200 Re: perf: possible bug in perf_event__read_size Vince Weaver <vincent.weaver@maine.edu> - 2015-09-02 17:40 +0200
csiph-web