mirror of
https://github.com/linux-msm/hexagonrpc.git
synced 2026-10-07 15:29:50 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f46980dc9 | ||
|
|
30fa49eb20 | ||
|
|
b7ad1021a2 | ||
|
|
f23297f962 | ||
|
|
c4c469bd8a | ||
|
|
6840e1dcfa | ||
|
|
aaef8a1e28 |
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
executable('chrecd',
|
||||
'interfaces.c',
|
||||
'main.c',
|
||||
c_args : ['-Wall', '-Wextra', '-Wpedantic'],
|
||||
c_args : cflags,
|
||||
include_directories : include,
|
||||
install : true,
|
||||
link_with : libhexagonrpc,
|
||||
|
||||
@@ -11,7 +11,7 @@ executable('hexagonrpcd',
|
||||
'localctl.c',
|
||||
'rpcd.c',
|
||||
'rpcd_builder.c',
|
||||
c_args : ['-Wall', '-Wextra', '-Wpedantic', '-Wno-unused-parameter'],
|
||||
c_args : cflags,
|
||||
include_directories : include,
|
||||
install : true,
|
||||
link_with : libhexagonrpc,
|
||||
|
||||
+2
-2
@@ -132,7 +132,7 @@ static void print_usage(const char *argv0)
|
||||
printf("Usage: %s [options] -f DEVICE\n\n", argv0);
|
||||
printf("Server for FastRPC remote procedure calls from Qualcomm DSPs\n\n"
|
||||
"Options:\n"
|
||||
"\t-d DSP\t\tDSP name (default: adsp)\n"
|
||||
"\t-d DSP\t\tDSP name (default: "")\n"
|
||||
"\t-f DEVICE\tFastRPC device node to attach to\n"
|
||||
"\t-p PROGRAM\tRun client program with shared file descriptor\n"
|
||||
"\t-R DIR\t\tRoot directory of served files (default: /usr/share/qcom/)\n"
|
||||
@@ -237,7 +237,7 @@ int main(int argc, char* argv[])
|
||||
{
|
||||
char *fastrpc_node = NULL;
|
||||
const char *device_dir = "/usr/share/qcom/";
|
||||
const char *dsp;
|
||||
const char *dsp = "";
|
||||
const char **progs;
|
||||
pid_t *pids;
|
||||
size_t n_progs = 0;
|
||||
|
||||
@@ -3,6 +3,7 @@ libhexagonrpc = shared_library('hexagonrpc',
|
||||
'fastrpc.c',
|
||||
'interfaces.c',
|
||||
'session.c',
|
||||
c_args : cflags,
|
||||
include_directories : include,
|
||||
install : true
|
||||
)
|
||||
|
||||
@@ -3,6 +3,12 @@ project('fastrpc', 'c')
|
||||
include = include_directories('include')
|
||||
client_target = get_option('libexecdir') / 'hexagonrpc'
|
||||
|
||||
cflags = ['-Wall', '-Wextra', '-Wpedantic', '-Wno-unused-parameter']
|
||||
|
||||
if get_option('hexagonrpcd_verbose')
|
||||
cflags += '-DHEXAGONRPC_VERBOSE'
|
||||
endif
|
||||
|
||||
subdir('libhexagonrpc')
|
||||
subdir('hexagonrpcd')
|
||||
subdir('chrecd')
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
option('hexagonrpcd_verbose', type : 'boolean', value : true,
|
||||
description : 'Compile hexagonrpcd with extra logging for each remote method invocation')
|
||||
@@ -7,6 +7,7 @@ endif
|
||||
test_iobuffer = executable('test_iobuffer',
|
||||
'test_iobuffer.c',
|
||||
'../hexagonrpcd/iobuffer.c',
|
||||
c_args : cflags,
|
||||
include_directories : include,
|
||||
)
|
||||
|
||||
|
||||
+11
-9
@@ -24,7 +24,7 @@
|
||||
|
||||
#include "../hexagonrpcd/iobuffer.h"
|
||||
|
||||
static const char misaligned_iobufs[] = {
|
||||
static const unsigned char misaligned_iobufs[] = {
|
||||
/* inbuf 0 (4 bytes misaligned) */
|
||||
0x01, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00,
|
||||
@@ -58,16 +58,16 @@ static const char misaligned_iobufs[] = {
|
||||
':', 'D',
|
||||
};
|
||||
|
||||
static char misaligned_decoded0[] = { 0x12, };
|
||||
static char misaligned_decoded1[] = {
|
||||
static unsigned char misaligned_decoded0[] = { 0x12, };
|
||||
static unsigned char misaligned_decoded1[] = {
|
||||
0x02, 0x46, 0x8A, 0xCF, 0x13, 0x57, 0x9B, 0xDF, 0x04, 0x8C,
|
||||
};
|
||||
static char misaligned_decoded2[] = { 'A', 'B', 'C', };
|
||||
static char misaligned_decoded3[] = { 'F', 'a', 's', 't', };
|
||||
static char misaligned_decoded4[] = { 'S', 'l', 'o', 'w', '\0', };
|
||||
static char misaligned_decoded5[] = { 'f', 'a', 's', 't', 'e', 'r', };
|
||||
static char misaligned_decoded6[] = { 'F', 'a', 's', 't', 'R', 'P', 'C', };
|
||||
static char misaligned_decoded7[] = { ':', 'D', };
|
||||
static unsigned char misaligned_decoded2[] = { 'A', 'B', 'C', };
|
||||
static unsigned char misaligned_decoded3[] = { 'F', 'a', 's', 't', };
|
||||
static unsigned char misaligned_decoded4[] = { 'S', 'l', 'o', 'w', '\0', };
|
||||
static unsigned char misaligned_decoded5[] = { 'f', 'a', 's', 't', 'e', 'r', };
|
||||
static unsigned char misaligned_decoded6[] = { 'F', 'a', 's', 't', 'R', 'P', 'C', };
|
||||
static unsigned char misaligned_decoded7[] = { ':', 'D', };
|
||||
|
||||
static const struct fastrpc_io_buffer misaligned_decoded[] = {
|
||||
{ .s = 1, .p = misaligned_decoded0, },
|
||||
@@ -242,4 +242,6 @@ int main(int argc, const char **argv)
|
||||
ret = test_out_misaligned();
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user