Searched refs:attr (Results 1 - 25 of 63) sorted by relevance

123

/system/extras/simpleperf/
H A Devent_attr.cpp78 perf_event_attr attr; local
79 memset(&attr, 0, sizeof(attr));
80 attr.size = sizeof(perf_event_attr);
81 attr.type = event_type.type;
82 attr.config = event_type.config;
83 attr.mmap = 1;
84 attr.comm = 1;
85 attr.disabled = 0;
88 attr
102 DumpPerfEventAttr(const perf_event_attr& attr, size_t indent) argument
[all...]
H A Devent_attr.h27 void DumpPerfEventAttr(const perf_event_attr& attr, size_t indent = 0);
H A Devent_selection_set.cpp34 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); local
35 attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
36 attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY;
37 return IsEventAttrSupportedByKernel(attr);
45 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); local
46 attr.sample_type |= PERF_SAMPLE_CALLCHAIN | PERF_SAMPLE_REGS_USER | PERF_SAMPLE_STACK_USER;
47 attr.exclude_callchain_user = 1;
48 attr.sample_regs_user = GetSupportedRegMask(GetBuildArch());
49 attr.sample_stack_user = 8192;
50 return IsEventAttrSupportedByKernel(attr);
117 perf_event_attr& attr = selection.event_attr; local
125 perf_event_attr& attr = selection.event_attr; local
143 perf_event_attr& attr = selection.event_attr; local
[all...]
H A Drecord.h119 // Create the content of sample_id. It depends on the attr we use.
120 size_t CreateContent(const perf_event_attr& attr);
123 void ReadFromBinaryFormat(const perf_event_attr& attr, const char* p, const char* end);
175 MmapRecord(const perf_event_attr& attr, const perf_event_header* pheader);
200 Mmap2Record(const perf_event_attr& attr, const perf_event_header* pheader);
217 CommRecord(const perf_event_attr& attr, const perf_event_header* pheader);
233 ExitOrForkRecord(const perf_event_attr& attr, const perf_event_header* pheader);
241 ExitRecord(const perf_event_attr& attr, const perf_event_header* pheader) argument
242 : ExitOrForkRecord(attr, pheader) {
249 ForkRecord(const perf_event_attr& attr, cons argument
[all...]
H A Drecord_file_reader.cpp78 LOG(DEBUG) << "attr size (" << header_.attr_size << ") in " << filename_
82 LOG(ERROR) << "no attr in file " << filename_;
97 FileAttr attr; local
98 memset(&attr, 0, sizeof(attr));
99 size_t section_desc_size = sizeof(attr.ids);
101 memcpy(&attr.attr, &buf[0], std::min(sizeof(attr.attr), perf_event_attr_siz
133 ReadIdsForAttr(const FileAttr& attr, std::vector<uint64_t>* ids) argument
[all...]
H A Dcmd_list.cpp35 perf_event_attr attr = CreateDefaultPerfEventAttr(event_type); local
38 attr.exclude_kernel = 1;
39 if (IsEventAttrSupportedByKernel(attr)) {
H A Drecord.cpp72 size_t SampleId::CreateContent(const perf_event_attr& attr) { argument
73 sample_id_all = attr.sample_id_all;
74 sample_type = attr.sample_type;
79 void SampleId::ReadFromBinaryFormat(const perf_event_attr& attr, const char* p, const char* end) { argument
80 sample_id_all = attr.sample_id_all;
81 sample_type = attr.sample_type;
187 MmapRecord::MmapRecord(const perf_event_attr& attr, const perf_event_header* pheader) argument
195 sample_id.ReadFromBinaryFormat(attr, p, end);
219 Mmap2Record::Mmap2Record(const perf_event_attr& attr, const perf_event_header* pheader) argument
227 sample_id.ReadFromBinaryFormat(attr,
255 CommRecord(const perf_event_attr& attr, const perf_event_header* pheader) argument
281 ExitOrForkRecord(const perf_event_attr& attr, const perf_event_header* pheader) argument
304 SampleRecord(const perf_event_attr& attr, const perf_event_header* pheader) argument
580 ReadRecordFromBuffer(const perf_event_attr& attr, const perf_event_header* pheader) argument
600 ReadRecordsFromBuffer(const perf_event_attr& attr, const char* buf, size_t buf_size) argument
615 ReadRecordFromFile(const perf_event_attr& attr, FILE* fp) argument
631 CreateMmapRecord(const perf_event_attr& attr, bool in_kernel, uint32_t pid, uint32_t tid, uint64_t addr, uint64_t len, uint64_t pgoff, const std::string& filename) argument
649 CreateCommRecord(const perf_event_attr& attr, uint32_t pid, uint32_t tid, const std::string& comm) argument
663 CreateForkRecord(const perf_event_attr& attr, uint32_t pid, uint32_t tid, uint32_t ppid, uint32_t ptid) argument
714 RecordCache(const perf_event_attr& attr, size_t min_cache_size, uint64_t min_time_diff_in_ns) argument
[all...]
H A Devent_fd.cpp40 static int perf_event_open(perf_event_attr* attr, pid_t pid, int cpu, int group_fd, argument
42 return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags);
45 std::unique_ptr<EventFd> EventFd::OpenEventFile(const perf_event_attr& attr, pid_t tid, int cpu, argument
47 perf_event_attr perf_attr = attr;
186 bool IsEventAttrSupportedByKernel(perf_event_attr attr) { argument
187 auto event_fd = EventFd::OpenEventFile(attr, getpid(), -1, false);
H A Drecord_file_format.h25 // attr section
79 perf_event_attr attr; member in struct:PerfFileFormat::FileAttr
H A Drecord_file_test.cpp40 perf_event_attr attr = CreateDefaultPerfEventAttr(event_type_modifier->event_type); local
41 attrs_.push_back(std::unique_ptr<perf_event_attr>(new perf_event_attr(attr)));
43 attr_id.attr = attrs_.back().get();
58 // Write attr section.
63 MmapRecord mmap_record = CreateMmapRecord(*(attr_ids_[0].attr), true, 1, 1, 0x1000, 0x2000,
83 ASSERT_EQ(0, memcmp(&file_attrs[0].attr, attr_ids_[0].attr, sizeof(perf_event_attr)));
106 // Write attr section.
114 CreateMmapRecord(*(attr_ids_[0].attr), true, 1, 1, 0x100, 0x2000, 0x3000, "mmap_record1");
142 // Write attr sectio
[all...]
H A Devent_fd.h42 static std::unique_ptr<EventFd> OpenEventFile(const perf_event_attr& attr, pid_t tid, int cpu,
109 bool IsEventAttrSupportedByKernel(perf_event_attr attr);
/system/bt/osi/src/
H A Dmutex.c28 pthread_mutexattr_t attr; local
29 pthread_mutexattr_init(&attr);
30 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
31 pthread_mutex_init(&global_lock, &attr);
/system/sepolicy/tools/sepolicy-analyze/
H A Dattribute.c9 struct type_datum *attr; local
13 attr = hashtab_search(policydb->p_types.table, name);
14 if (!attr) {
19 if (attr->flavor != TYPE_ATTRIB) {
24 ebitmap_for_each_bit(&policydb->attr_type_map[attr->s.value - 1], n, bit) {
/system/connectivity/shill/net/
H A Dnetlink_attribute_unittest.cc39 NetlinkStringAttribute attr(0, "string id");
42 EXPECT_TRUE(attr.InitFromValue(ByteString()));
44 EXPECT_TRUE(attr.GetStringValue(&value));
50 EXPECT_TRUE(attr.InitFromValue(unterminated));
51 EXPECT_TRUE(attr.GetStringValue(&value));
58 EXPECT_TRUE(attr.InitFromValue(terminated));
59 EXPECT_TRUE(attr.GetStringValue(&value));
66 EXPECT_TRUE(attr.InitFromValue(terminated));
67 EXPECT_TRUE(attr.GetStringValue(&value));
H A Dnetlink_attribute.cc54 unique_ptr<NetlinkAttribute> attr; local
57 attr.reset(new Nl80211AttributeBss());
60 attr.reset(new Nl80211AttributeCipherSuites());
63 attr.reset(new Nl80211AttributeControlPortEthertype());
66 attr.reset(new Nl80211AttributeCookie());
69 attr.reset(new Nl80211AttributeCqm());
72 attr.reset(new Nl80211AttributeDeviceApSme());
75 attr.reset(new Nl80211AttributeDfsRegion());
78 attr.reset(new Nl80211AttributeDisconnectedByAp());
81 attr
265 unique_ptr<NetlinkAttribute> attr; local
[all...]
/system/core/init/
H A Ddevices.h24 extern int add_dev_perms(const char *name, const char *attr,
/system/core/include/utils/
H A DCondition.h93 pthread_condattr_t attr; local
94 pthread_condattr_init(&attr);
95 pthread_condattr_setpshared(&attr, PTHREAD_PROCESS_SHARED);
96 pthread_cond_init(&mCond, &attr);
97 pthread_condattr_destroy(&attr);
H A DMutex.h114 pthread_mutexattr_t attr; local
115 pthread_mutexattr_init(&attr);
116 pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED);
117 pthread_mutex_init(&mMutex, &attr);
118 pthread_mutexattr_destroy(&attr);
H A DRWLock.h92 pthread_rwlockattr_t attr; local
93 pthread_rwlockattr_init(&attr);
94 pthread_rwlockattr_setpshared(&attr, PTHREAD_PROCESS_SHARED);
95 pthread_rwlock_init(&mRWLock, &attr);
96 pthread_rwlockattr_destroy(&attr);
/system/extras/taskstats/
H A Dtaskstats.c26 #include <netlink/attr.h>
51 void parse_aggregate_task_stats(struct nlattr* attr, int attr_size, argument
53 nla_for_each_attr(attr, attr, attr_size, attr_size) {
54 switch (attr->nla_type) {
56 stats->pid = nla_get_u32(attr);
59 stats->tgid = nla_get_u32(attr);
62 nla_memcpy(&stats->stats, attr, sizeof(stats->stats));
73 struct nlattr* attr = genlmsg_attrdata(gnlh, 0); local
76 nla_for_each_attr(attr, att
[all...]
/system/extras/iotop/
H A Dtaskstats.cpp63 static pid_t ParseAggregateTaskStats(nlattr* attr, int attr_size, argument
66 nla_for_each_attr(attr, attr, attr_size, attr_size) {
67 switch (nla_type(attr)) {
70 received_pid = nla_get_u32(attr);
75 len = std::min(len, nla_len(attr));
76 nla_memcpy(stats, attr, len);
91 nlattr* attr = genlmsg_attrdata(gnlh, 0); local
94 nla_for_each_attr(attr, attr, remainin
[all...]
/system/core/debuggerd/
H A Dcrasher.c86 pthread_attr_t attr; local
87 pthread_attr_init(&attr);
88 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
89 pthread_create(&thr, &attr, noisy, (void*) 'A');
90 pthread_create(&thr, &attr, noisy, (void*) 'B');
91 pthread_create(&thr, &attr, noisy, (void*) 'C');
/system/bt/stack/avrc/
H A Davrc_utils.c140 BOOLEAN AVRC_IsValidPlayerAttr(UINT8 attr) argument
144 if ( (attr >= AVRC_PLAYER_SETTING_EQUALIZER && attr <= AVRC_PLAYER_SETTING_SCAN) ||
145 (attr >= AVRC_PLAYER_SETTING_LOW_MENU_EXT) )
/system/core/libbacktrace/
H A DThreadEntry.cpp37 pthread_condattr_t attr; local
38 pthread_condattr_init(&attr);
39 pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
40 pthread_cond_init(&wait_cond_, &attr);
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/
H A Dperf.h155 void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu,
159 sys_perf_event_open(struct perf_event_attr *attr, argument
165 fd = syscall(__NR_perf_event_open, attr, pid, cpu,
169 test_attr__open(attr, pid, cpu, fd, group_fd, flags);

Completed in 4782 milliseconds

123