The content of trace.txt should be:
```
-[21:45:34.940246019] (+?.?????????) osiris gydle_om:alignQuery: { cpu_id = 2 }, { queryName = "moleculeX" }
-[21:45:34.940263188] (+0.000017169) osiris gydle_om:testAlignment: { cpu_id = 2 }, { alignment = "my-alignment" }
+[21:45:34.940246019] (+?.?????????) osiris gydle_om:align_query: { cpu_id = 2 }, { query_name = "moleculeX" }
+[21:45:34.940263188] (+0.000017169) osiris gydle_om:test_alignment: { cpu_id = 2 }, { alignment = "my-alignment" }
```
#include "aligner-lib.h"
#include "tracepoint-provider.h"
-void alignQuery(const std::string & queryName)
+void align_query(const std::string &query_name)
{
- tracepoint(gydle_om, alignQuery, queryName.c_str());
+ tracepoint(gydle_om, align_query, query_name.c_str());
/* Do the actual alignment */
/* ... */
#include <string>
-void alignQuery(const std::string & queryName);
+void align_query(const std::string &queryName);
#endif
int main(int argc, char **argv)
{
- alignQuery("molecule-foo");
+ align_query("molecule-foo");
return 0;
}
#include "tester-lib.h"
#include "tracepoint-provider.h"
-void testAlignment(const std::string & alignment)
+void test_alignment(const std::string &alignment)
{
- tracepoint(gydle_om, testAlignment, alignment.c_str());
+ tracepoint(gydle_om, test_alignment, alignment.c_str());
}
#include <string>
-void testAlignment(const std::string & alignment);
+void test_alignment(const std::string &alignment);
#endif
int main(int argc, char **argv)
{
/* Generate alignment */
- alignQuery("moleculeX");
+ align_query("moleculeX");
/* Test alignment */
- testAlignment("my-alignment");
+ test_alignment("my-alignment");
return 0;
}
TRACEPOINT_EVENT(
TRACEPOINT_PROVIDER,
- alignQuery,
+ align_query,
TP_ARGS(
- const char*, queryName
+ const char *, query_name
),
TP_FIELDS(
- ctf_string(queryName, queryName)
+ ctf_string(query_name, query_name)
)
)
TRACEPOINT_EVENT(
TRACEPOINT_PROVIDER,
- testAlignment,
+ test_alignment,
TP_ARGS(
- const char*, alignment
+ const char *, alignment
),
TP_FIELDS(
ctf_string(alignment, alignment)
)
)
-
-
#endif /* MY_TRACEPOINT_PROVIDER_H */
#include <lttng/tracepoint-event.h>