Skip to content

Commit

Permalink
compile fix for C binding
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredo-gimenez committed Apr 3, 2015
1 parent f2fbb3f commit f002679
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/Mitos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ void Mitos_set_end_fn(end_fn_t h, void* args)
m_perfsmpl.set_end_fn(h,args);
}

void Mitos_prepare()
{
m_perfsmpl.prepare();
}

void Mitos_prepare(pid_t pid)
{
m_perfsmpl.prepare(pid);
Expand Down
3 changes: 1 addition & 2 deletions src/Mitos.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ extern "C" {
void Mitos_set_handler_fn(sample_handler_fn_t h, void *args=NULL);
void Mitos_set_end_fn(end_fn_t h, void *args=NULL);

void Mitos_prepare();
void Mitos_prepare(pid_t pid);
void Mitos_prepare(pid_t pid=0);
void Mitos_begin_sampler();
void Mitos_end_sampler();

Expand Down
4 changes: 3 additions & 1 deletion src/perfsmpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ int perfsmpl::init_perf()
return 0;
}

int perfsmpl::prepare()
int perfsmpl::prepare(pid_t p)
{
mPID = p;

init_attr();

ret = init_perf();
Expand Down
3 changes: 1 addition & 2 deletions src/perfsmpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ class perfsmpl
perfsmpl();
~perfsmpl();

int prepare();
void prepare(pid_t PID) { mPID=PID; prepare(); }
int prepare(pid_t PID);

int begin_sampler();
void end_sampler();
Expand Down

0 comments on commit f002679

Please sign in to comment.