]>
sourceware.org Git - systemtap.git/blob - remote.h
1 // systemtap remote execution
2 // Copyright (C) 2010-2011 Red Hat Inc.
4 // This file is part of systemtap, and is free software. You can
5 // redistribute it and/or modify it under the terms of the GNU General
6 // Public License (GPL); either version 2, or (at your option) any
23 virtual int prepare() { return 0; }
24 virtual int start() = 0;
25 virtual int finish() = 0;
27 virtual void prepare_poll(std::vector
<pollfd
>&) {}
28 virtual void handle_poll(std::vector
<pollfd
>&) {}
32 std::string prefix
; // stap --remote-prefix
33 std::string staprun_r_arg
; // PR13354 data: remote_uri()/remote_idx()
35 remote(systemtap_session
& s
): s(&s
) {}
38 static remote
* create(systemtap_session
& s
, const std::string
& uri
, int idx
);
39 static int run(const std::vector
<remote
*>& remotes
);
41 systemtap_session
* get_session() { return s
; }
48 /* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
This page took 0.037414 seconds and 5 git commands to generate.