remote.h - systemtap
Functions defined
Macros defined
Source code
#ifndef REMOTE_H
#define REMOTE_H
#include <string>
#include <vector>
extern "C" {
#include <poll.h>
}
#include "session.h"
class remote {
private:
virtual int prepare() { return 0; }
virtual int start() = 0;
virtual int finish() = 0;
virtual void prepare_poll(std::vector<pollfd>&) {}
virtual void handle_poll(std::vector<pollfd>&) {}
protected:
systemtap_session* s;
std::string prefix; std::string staprun_r_arg;
remote(systemtap_session& s): s(&s) {}
public:
static remote* create(systemtap_session& s, const std::string& uri, int idx);
static int run(const std::vector<remote*>& remotes);
systemtap_session* get_session() { return s; }
virtual ~remote() {}
};
#endif