blob: 234865e7b88bf7719754b0231f44a85a844dbfa6 [file] [log] [blame]
Martijn Coenencbe590c2016-08-30 11:27:56 -07001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Hridya Valsarajud8333792016-08-09 10:05:20 -070017package android.hardware.benchmarks.msgq@1.0;
18
19interface IBenchmarkMsgQ {
20
21 struct shm_t {
22 uint32_t fdIndex;
23 uint32_t offset;
24 uint32_t extent;
25 };
26 struct WireGrantorDescriptor {
27 uint32_t flags;
28 shm_t shm;
29 };
30
31 struct WireMQDescriptor {
32 vec<WireGrantorDescriptor> grantors;
33 handle mq_handle;
34 uint32_t quantum;
35 uint32_t nQuanta;
36 uint32_t flags;
37 };
38
39 ConfigureClientInbox() generates ( WireMQDescriptor mq_desc_in );
40 ConfigureClientOutbox() generates ( WireMQDescriptor mq_desc_out );
41 RequestWrite (int32_t count) generates (int32_t ret);
42 RequestRead(int32_t count) generates (int32_t ret);
43 BenchmarkPingPong(uint32_t numIter);
44 BenchmarkServiceWriteClientRead(uint32_t numIter);
45 SendTimeData(vec<int64_t> time_data);
46};