Home
last modified time | relevance | path

Searched refs:event (Results 1 – 25 of 2775) sorted by relevance

12345678910>>...111

/external/perfetto/src/traced/probes/ftrace/
Devent_info.cc17 Event* event = &events.back(); in GetStaticEventInfo() local
18 event->name = "binder_transaction"; in GetStaticEventInfo()
19 event->group = "binder"; in GetStaticEventInfo()
20 event->proto_field_id = 50; in GetStaticEventInfo()
21 event->fields.push_back(MakeField("debug_id", 1, ProtoSchemaType::kInt32)); in GetStaticEventInfo()
22 event->fields.push_back( in GetStaticEventInfo()
24 event->fields.push_back(MakeField("to_proc", 3, ProtoSchemaType::kInt32)); in GetStaticEventInfo()
25 event->fields.push_back(MakeField("to_thread", 4, ProtoSchemaType::kInt32)); in GetStaticEventInfo()
26 event->fields.push_back(MakeField("reply", 5, ProtoSchemaType::kInt32)); in GetStaticEventInfo()
27 event->fields.push_back(MakeField("code", 6, ProtoSchemaType::kUint32)); in GetStaticEventInfo()
[all …]
Dproto_translation_table_unittest.cc78 for (const Event& event : table_->events()) { in TEST_P() local
79 if (!event.ftrace_event_id) in TEST_P()
81 EXPECT_TRUE(event.name); in TEST_P()
82 EXPECT_TRUE(event.group); in TEST_P()
83 EXPECT_TRUE(event.proto_field_id); in TEST_P()
84 for (const Field& field : event.fields) { in TEST_P()
96 auto event = table_->GetEvent(GroupAndName("ftrace", "print")); in TEST_P() local
97 EXPECT_TRUE(event); in TEST_P()
98 EXPECT_EQ(std::string(event->name), "print"); in TEST_P()
99 EXPECT_EQ(std::string(event->group), "ftrace"); in TEST_P()
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/
Devent_attributes_test.c17 struct event event, leader; in event_attributes() local
21 event_init(&event, 0x1001e); in event_attributes()
22 event_leader_ebb_init(&event); in event_attributes()
24 FAIL_IF(event_open(&event)); in event_attributes()
25 event_close(&event); in event_attributes()
28 event_init(&event, 0x001e); /* CYCLES - no PMC specified */ in event_attributes()
29 event_leader_ebb_init(&event); in event_attributes()
31 FAIL_IF(event_open(&event) == 0); in event_attributes()
34 event_init(&event, 0x2001e); in event_attributes()
35 event_leader_ebb_init(&event); in event_attributes()
[all …]
Dinstruction_count_test.c25 static int do_count_loop(struct event *event, uint64_t instructions, in do_count_loop() argument
45 event->result.value = ebb_state.stats.pmc_count[4-1]; in do_count_loop()
47 difference = event->result.value - expected; in do_count_loop()
48 percentage = (double)difference / event->result.value * 100; in do_count_loop()
53 printf("Actual %llu\n", event->result.value); in do_count_loop()
63 if (difference / event->result.value) in do_count_loop()
70 static uint64_t determine_overhead(struct event *event) in determine_overhead() argument
75 do_count_loop(event, 0, 0, false); in determine_overhead()
76 overhead = event->result.value; in determine_overhead()
79 do_count_loop(event, 0, 0, false); in determine_overhead()
[all …]
/external/mesa3d/src/gallium/drivers/swr/rasterizer/archrast/
Darchrast.cpp78 virtual void Handle(const Start& event) {} in Handle() argument
79 virtual void Handle(const End& event) {} in Handle() argument
81 virtual void Handle(const EarlyDepthStencilInfoSingleSample& event) in Handle() argument
84 mDSSingleSample.earlyZTestPassCount += _mm_popcnt_u32(event.data.depthPassMask); in Handle()
85 …mDSSingleSample.earlyZTestFailCount += _mm_popcnt_u32((!event.data.depthPassMask) & event.data.cov… in Handle()
88 mDSSingleSample.earlyStencilTestPassCount += _mm_popcnt_u32(event.data.stencilPassMask); in Handle()
89 …SingleSample.earlyStencilTestFailCount += _mm_popcnt_u32((!event.data.stencilPassMask) & event.dat… in Handle()
93 virtual void Handle(const EarlyDepthStencilInfoSampleRate& event) in Handle() argument
96 mDSSampleRate.earlyZTestPassCount += _mm_popcnt_u32(event.data.depthPassMask); in Handle()
97 …mDSSampleRate.earlyZTestFailCount += _mm_popcnt_u32((!event.data.depthPassMask) & event.data.cover… in Handle()
[all …]
Devents.proto88 event Start
94 event End
100 event ThreadStartApiEvent
104 event ThreadStartWorkerEvent
108 event DrawInstancedEvent
118 event DrawIndexedInstancedEvent
129 event DispatchEvent
137 event FrameEndEvent
143 ///@brief API Stat: Split draw event for DrawInstanced. In certain cases, Rasty can split draws up …
144 event DrawInstancedSplitEvent
[all …]
/external/v8/src/heap/
Dmemory-reducer.cc38 Event event; in RunInternal() local
50 event.type = kTimer; in RunInternal()
51 event.time_ms = time_ms; in RunInternal()
55 event.should_start_incremental_gc = in RunInternal()
57 event.can_start_incremental_gc = in RunInternal()
60 event.committed_memory = heap->CommittedOldGenerationMemory(); in RunInternal()
61 memory_reducer_->NotifyTimer(event); in RunInternal()
65 void MemoryReducer::NotifyTimer(const Event& event) { in NotifyTimer() argument
66 DCHECK_EQ(kTimer, event.type); in NotifyTimer()
68 state_ = Step(state_, event); in NotifyTimer()
[all …]
/external/grpc-grpc/src/php/tests/unit_tests/
DEndToEndTest.php45 $event = $call->startBatch([
50 $this->assertTrue($event->send_metadata);
51 $this->assertTrue($event->send_close);
53 $event = $this->server->requestCall();
54 $this->assertSame('dummy_method', $event->method);
55 $server_call = $event->call;
57 $event = $server_call->startBatch([
67 $this->assertTrue($event->send_metadata);
68 $this->assertTrue($event->send_status);
69 $this->assertFalse($event->cancelled);
[all …]
DSecureEndToEndTest.php60 $event = $call->startBatch([
65 $this->assertTrue($event->send_metadata);
66 $this->assertTrue($event->send_close);
68 $event = $this->server->requestCall();
69 $this->assertSame('dummy_method', $event->method);
70 $server_call = $event->call;
72 $event = $server_call->startBatch([
82 $this->assertTrue($event->send_metadata);
83 $this->assertTrue($event->send_status);
84 $this->assertFalse($event->cancelled);
[all …]
/external/apache-harmony/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/
DPropertyChangeEventTest.java40 PropertyChangeEvent event = new PropertyChangeEvent(src, "myPropName", in testConstructor_Normal() local
42 assertSame(src, event.getSource()); in testConstructor_Normal()
43 assertEquals("myPropName", event.getPropertyName()); in testConstructor_Normal()
44 assertSame(oldValue, event.getOldValue()); in testConstructor_Normal()
45 assertSame(newValue, event.getNewValue()); in testConstructor_Normal()
46 assertNull(event.getPropagationId()); in testConstructor_Normal()
54 PropertyChangeEvent event = new PropertyChangeEvent(src, null, null, in testConstructor_Null() local
56 assertSame(src, event.getSource()); in testConstructor_Null()
57 assertNull(event.getPropertyName()); in testConstructor_Null()
58 assertSame(null, event.getOldValue()); in testConstructor_Null()
[all …]
/external/wayland-protocols/flinger_headers/
DArcInputBridgeProtocol.h237 BridgeInputEvent event{timestamp, -1, InputEventType::KEY, {}}; in KeyEvent()
238 event.key = {scanCode, state, serial}; in KeyEvent()
239 return event; in KeyEvent()
243 BridgeInputEvent event{timestamp, -1, InputEventType::KEY_MODIFIERS, {}}; in KeyModifiersEvent()
244 event.meta = {modifiers}; in KeyModifiersEvent()
245 return event; in KeyModifiersEvent()
250 BridgeInputEvent event{timestamp, -1, type, {}};
251 event.pointer = {x, y, discrete};
252 return event;
256 BridgeInputEvent event{timestamp, -1, InputEventType::POINTER_BUTTON, {}}; in PointerButtonEvent()
[all …]
/external/bcc/tools/
Dzfsslower.py256 event = ct.cast(data, ct.POINTER(Data)).contents
259 if event.type == 1:
261 elif event.type == 2:
263 elif event.type == 3:
268 event.ts_us, event.task.decode('utf-8', 'replace'), event.pid,
269 type, event.size, event.offset, event.delta_us,
270 event.file.decode('utf-8', 'replace')))
273 event.task.decode('utf-8', 'replace'), event.pid, type, event.size,
274 event.offset / 1024, float(event.delta_us) / 1000,
275 event.file.decode('utf-8', 'replace')))
[all …]
Dmountsnoop.py336 event = ctypes.cast(data, ctypes.POINTER(Event)).contents
339 if event.type == EventType.EVENT_MOUNT:
340 mounts[event.pid] = {
341 'pid': event.pid,
342 'tgid': event.tgid,
343 'mnt_ns': event.union.enter.mnt_ns,
344 'comm': event.union.enter.comm,
345 'flags': event.union.enter.flags,
347 elif event.type == EventType.EVENT_MOUNT_SOURCE:
348 mounts[event.pid]['source'] = event.union.str
[all …]
Dtcptracer.py534 event = ctypes.cast(data, ctypes.POINTER(TCPIPV4Evt)).contents
539 start_ts = event.ts_ns
541 print("%-14d" % (event.ts_ns - start_ts), end="")
543 print("%-9.3f" % ((event.ts_ns - start_ts) / 1000000000.0), end="")
544 if event.type == 1:
546 elif event.type == 2:
548 elif event.type == 3:
559 (event.pid, event.comm.decode('utf-8', 'replace'),
560 event.ip,
561 inet_ntop(AF_INET, pack("I", event.saddr)),
[all …]
Dnfsslower.py266 event = ct.cast(data, ct.POINTER(Data)).contents
269 if event.type == 1:
271 elif event.type == 2:
273 elif event.type == 3:
278 event.ts_us, event.task, event.pid, type, event.size,
279 event.offset, event.delta_us, event.file))
283 event.task.decode('utf-8', 'replace'),
284 event.pid,
286 event.size,
287 event.offset / 1024,
[all …]
Dxfsslower.py260 event = ct.cast(data, ct.POINTER(Data)).contents
263 if event.type == 1:
265 elif event.type == 2:
267 elif event.type == 3:
272 event.ts_us, event.task, event.pid, type, event.size,
273 event.offset, event.delta_us, event.file))
276 event.task, event.pid, type, event.size, event.offset / 1024,
277 float(event.delta_us) / 1000, event.file))
283 b.attach_kprobe(event="xfs_file_read_iter", fn_name="trace_rw_entry")
284 b.attach_kprobe(event="xfs_file_write_iter", fn_name="trace_rw_entry")
[all …]
/external/perfetto/src/trace_processor/
Dproto_trace_parser_unittest.cc193 auto* event = bundle->add_event(); in TEST_F() local
194 event->set_timestamp(1000); in TEST_F()
195 event->set_pid(12); in TEST_F()
199 auto* sched_switch = event->set_sched_switch(); in TEST_F()
222 auto* event = bundle->add_event(); in TEST_F() local
223 event->set_timestamp(1000); in TEST_F()
224 event->set_pid(12); in TEST_F()
225 auto* task = event->set_task_newtask(); in TEST_F()
234 event = bundle->add_event(); in TEST_F()
235 event->set_timestamp(1001); in TEST_F()
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/
Ddtmf_buffer.cc72 DtmfEvent* event) { in ParseEvent() argument
74 RTC_CHECK(event); in ParseEvent()
80 event->event_no = payload[0]; in ParseEvent()
81 event->end_bit = ((payload[1] & 0x80) != 0); in ParseEvent()
82 event->volume = (payload[1] & 0x3F); in ParseEvent()
83 event->duration = payload[2] << 8 | payload[3]; in ParseEvent()
84 event->timestamp = rtp_timestamp; in ParseEvent()
100 int DtmfBuffer::InsertEvent(const DtmfEvent& event) { in InsertEvent() argument
101 if (event.event_no < 0 || event.event_no > 15 || in InsertEvent()
102 event.volume < 0 || event.volume > 36 || in InsertEvent()
[all …]
/external/autotest/client/site_tests/firmware_TouchMTB/
Dmtb.py54 for event in packet:
57 pretty_event.append('time %.6f,' % event[MTB.EV_TIME])
58 if event.get(MTB.SYN_REPORT):
61 ev_type = event[MTB.EV_TYPE]
63 ev_code = event[MTB.EV_CODE]
66 pretty_event.append('value %d' % event[MTB.EV_VALUE])
77 for event in packet:
78 if event.get(MTB.SYN_REPORT):
79 evemu_event = evemu_format_syn_report % event[MTB.EV_TIME]
81 evemu_event = evemu_format % (event[MTB.EV_TIME],
[all …]
/external/ltp/testcases/kernel/syscalls/inotify/
Dinotify02.c152 struct inotify_event *event; in verify_inotify() local
153 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
157 event->mask) in verify_inotify()
173 "name=\"%.*s\"", event->wd, event->mask, in verify_inotify()
174 event->cookie, event->len, event->len, in verify_inotify()
175 event->name); in verify_inotify()
177 } else if ((event_set[test_num].mask == event->mask) in verify_inotify()
180 (event_set[test_num].name, event->name, in verify_inotify()
181 event->len))) { in verify_inotify()
184 if (event->mask == IN_MOVED_FROM) { in verify_inotify()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAccessibilityEventTest.java21 private AccessibilityEvent event; field in ShadowAccessibilityEventTest
25 event = AccessibilityEvent.obtain(); in setUp()
31 event.setParcelableData(notification); in shouldRecordParcelables()
32 AccessibilityEvent anotherEvent = AccessibilityEvent.obtain(event); in shouldRecordParcelables()
40 event.setEventType(AccessibilityEvent.TYPE_ANNOUNCEMENT); in shouldBeEqualToClonedEvent()
41 AccessibilityEvent newEvent = AccessibilityEvent.obtain(event); in shouldBeEqualToClonedEvent()
42 assertThat(event.getEventType()).isEqualTo(newEvent.getEventType()); in shouldBeEqualToClonedEvent()
43 assertThat(event.isEnabled()).isEqualTo(newEvent.isEnabled()); in shouldBeEqualToClonedEvent()
44 assertThat(event.getContentDescription()).isEqualTo(newEvent.getContentDescription()); in shouldBeEqualToClonedEvent()
45 assertThat(event.getPackageName()).isEqualTo(newEvent.getPackageName()); in shouldBeEqualToClonedEvent()
[all …]
/external/mesa3d/src/gallium/state_trackers/clover/core/
Devent.cpp28 event::event(clover::context &ctx, const ref_vector<event> &deps, in event() function in event
36 event::~event() { in ~event()
39 std::vector<intrusive_ref<event>>
40 event::trigger_self() { in trigger_self()
42 std::vector<intrusive_ref<event>> evs; in trigger_self()
52 event::trigger() { in trigger()
56 for (event &ev : trigger_self()) in trigger()
60 std::vector<intrusive_ref<event>>
61 event::abort_self(cl_int status) { in abort_self()
63 std::vector<intrusive_ref<event>> evs; in abort_self()
[all …]
/external/grpc-grpc/src/core/tsi/alts/handshaker/
Dalts_tsi_event.cc34 alts_tsi_event** event) { in alts_tsi_event_create() argument
35 if (event == nullptr || handshaker == nullptr || cb == nullptr) { in alts_tsi_event_create()
47 *event = e; in alts_tsi_event_create()
51 void alts_tsi_event_dispatch_to_handshaker(alts_tsi_event* event, bool is_ok) { in alts_tsi_event_dispatch_to_handshaker() argument
52 if (event == nullptr) { in alts_tsi_event_dispatch_to_handshaker()
58 alts_tsi_handshaker_handle_response(event->handshaker, event->recv_buffer, in alts_tsi_event_dispatch_to_handshaker()
59 event->status, &event->details, event->cb, in alts_tsi_event_dispatch_to_handshaker()
60 event->user_data, is_ok); in alts_tsi_event_dispatch_to_handshaker()
63 void alts_tsi_event_destroy(alts_tsi_event* event) { in alts_tsi_event_destroy() argument
64 if (event == nullptr) { in alts_tsi_event_destroy()
[all …]
/external/perf_data_converter/src/quipper/
Dperf_data_utils.cc15 event_t* event = reinterpret_cast<event_t*>(calloc(1, size)); in CallocMemoryForEvent() local
16 CHECK(event); in CallocMemoryForEvent()
17 return event; in CallocMemoryForEvent()
20 event_t* ReallocMemoryForEvent(event_t* event, size_t new_size) { in ReallocMemoryForEvent() argument
21 event_t* new_event = reinterpret_cast<event_t*>(realloc(event, new_size)); in ReallocMemoryForEvent()
27 build_id_event* event = reinterpret_cast<build_id_event*>(calloc(1, size)); in CallocMemoryForBuildID() local
28 CHECK(event); in CallocMemoryForBuildID()
29 return event; in CallocMemoryForBuildID()
52 const PerfDataProto_PerfEvent& event) { in GetSampleInfoForEvent() argument
53 switch (event.header().type()) { in GetSampleInfoForEvent()
[all …]
/external/libchrome/base/synchronization/
Dwaitable_event_unittest.cc20 WaitableEvent event(WaitableEvent::ResetPolicy::MANUAL, in TEST() local
23 EXPECT_FALSE(event.IsSignaled()); in TEST()
25 event.Signal(); in TEST()
26 EXPECT_TRUE(event.IsSignaled()); in TEST()
27 EXPECT_TRUE(event.IsSignaled()); in TEST()
29 event.Reset(); in TEST()
30 EXPECT_FALSE(event.IsSignaled()); in TEST()
31 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
33 event.Signal(); in TEST()
34 event.Wait(); in TEST()
[all …]

12345678910>>...111