Lines Matching refs:b
27 static void server(sd_bus *b, size_t *result) { in server() argument
33 r = sd_bus_process(b, &m); in server()
37 assert_se(sd_bus_wait(b, USEC_INFINITY) >= 0); in server()
64 static void transaction(sd_bus *b, size_t sz, const char *server_name) { in transaction() argument
68 …assert_se(sd_bus_message_new_method_call(b, &m, server_name, "/", "benchmark.server", "Work") >= 0… in transaction()
73 assert_se(sd_bus_call(b, m, 0, NULL, &reply) >= 0); in transaction()
79 sd_bus *b; in client_bisect() local
82 r = sd_bus_new(&b); in client_bisect()
85 r = sd_bus_set_address(b, address); in client_bisect()
88 r = sd_bus_start(b); in client_bisect()
91 r = sd_bus_call_method(b, server_name, "/", "benchmark.server", "Ping", NULL, NULL, NULL); in client_bisect()
113 b->use_memfd = 0; in client_bisect()
117 transaction(b, csize, server_name); in client_bisect()
123 b->use_memfd = -1; in client_bisect()
127 transaction(b, csize, server_name); in client_bisect()
142 b->use_memfd = 1; in client_bisect()
143 …assert_se(sd_bus_message_new_method_call(b, &x, server_name, "/", "benchmark.server", "Exit") >= 0… in client_bisect()
145 assert_se(sd_bus_send(b, x, NULL) >= 0); in client_bisect()
147 sd_bus_unref(b); in client_bisect()
153 sd_bus *b; in client_chart() local
156 r = sd_bus_new(&b); in client_chart()
160 r = sd_bus_set_fd(b, fd, fd); in client_chart()
163 r = sd_bus_set_address(b, address); in client_chart()
166 r = sd_bus_set_bus_client(b, true); in client_chart()
170 r = sd_bus_start(b); in client_chart()
173 r = sd_bus_call_method(b, server_name, "/", "benchmark.server", "Ping", NULL, NULL, NULL); in client_chart()
193 transaction(b, csize, server_name); in client_chart()
201 b->use_memfd = 1; in client_chart()
202 …assert_se(sd_bus_message_new_method_call(b, &x, server_name, "/", "benchmark.server", "Exit") >= 0… in client_chart()
204 assert_se(sd_bus_send(b, x, NULL) >= 0); in client_chart()
206 sd_bus_unref(b); in client_chart()
221 sd_bus *b; in main() local
252 r = sd_bus_new(&b); in main()
258 r = sd_bus_set_fd(b, pair[0], pair[0]); in main()
261 r = sd_bus_set_server(b, true, SD_ID128_NULL); in main()
264 r = sd_bus_set_address(b, address); in main()
267 r = sd_bus_set_bus_client(b, true); in main()
271 r = sd_bus_start(b); in main()
275 r = sd_bus_get_unique_name(b, &unique); in main()
294 sd_bus_unref(b); in main()
313 server(b, &result); in main()
321 sd_bus_unref(b); in main()