(self, sample_type)
| 670 | # self.trace.close() |
| 671 | |
| 672 | def _SampleEventBodyDesc(self, sample_type): |
| 673 | assert (sample_type & PERF_SAMPLE_READ) == 0, \ |
| 674 | "Can't hande read format in samples" |
| 675 | fields = [(field, format) |
| 676 | for (field, format, bit) in PERF_SAMPLE_EVENT_BODY_FIELDS |
| 677 | if (bit & sample_type) != 0] |
| 678 | return Descriptor(fields) |
| 679 | |
| 680 | |
| 681 | OBJDUMP_SECTION_HEADER_RE = re.compile( |