forked from lttng/lttng-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
311 changed files
with
60 additions
and
12 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
instrumentation/syscalls/3.10.0-rc7/x86-64-syscalls-3.10.0-rc7
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/arm-32-syscalls-3.4.25_integers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/arm-32-syscalls-3.4.25_integers_override.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/arm-32-syscalls-3.4.25_pointers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/arm-32-syscalls-3.4.25_pointers_override.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/arm-64-syscalls-4.4.0_integers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/arm-64-syscalls-4.4.0_integers_override.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/arm-64-syscalls-4.4.0_pointers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/arm-64-syscalls-4.4.0_pointers_override.h
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/mips-32-syscalls-3.13.0_integers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/mips-32-syscalls-3.13.0_integers_override.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/mips-32-syscalls-3.13.0_pointers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/mips-32-syscalls-3.13.0_pointers_override.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/mips-32-syscalls-3.18.0_integers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/mips-32-syscalls-3.18.0_integers_override.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/mips-32-syscalls-3.18.0_pointers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/mips-32-syscalls-3.18.0_pointers_override.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/mips-64-syscalls-3.5.0_integers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/mips-64-syscalls-3.5.0_integers_override.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/mips-64-syscalls-3.5.0_pointers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/mips-64-syscalls-3.5.0_pointers_override.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/powerpc-32-syscalls-3.0.34_integers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/powerpc-32-syscalls-3.0.34_integers_override.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/powerpc-32-syscalls-3.0.34_pointers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/powerpc-32-syscalls-3.0.34_pointers_override.h
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/x86-32-syscalls-3.1.0-rc6_integers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/x86-32-syscalls-3.1.0-rc6_integers_override.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/x86-32-syscalls-3.1.0-rc6_pointers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/x86-32-syscalls-3.1.0-rc6_pointers_override.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/x86-64-syscalls-3.10.0-rc7_integers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/x86-64-syscalls-3.10.0-rc7_integers_override.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/x86-64-syscalls-3.10.0-rc7_pointers.h
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/headers/x86-64-syscalls-3.10.0-rc7_pointers_override.h
100644 → 100755
Empty file.
Empty file.
Empty file modified
0
instrumentation/syscalls/lttng-syscalls-extractor/linux-link-trace-syscalls-as-data.patch
100644 → 100755
Empty file.
Empty file modified
0
instrumentation/syscalls/lttng-syscalls-extractor/lttng-syscalls-extractor.c
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
clang++ -std=c++11 -lopentracing -ljaegertracing -lssl -lz -lcrypto -luv -luWS /root/jaeger-client-cpp-0.3.0/build/libjaegertracing.a test.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,63 @@ | ||
#include "uWS/uWS.h" | ||
#include <cassert> | ||
#include <chrono> | ||
#include <iostream> | ||
#include <jaegertracing/Tracer.h> | ||
#include <opentracing/tracer.h> | ||
#include <sstream> | ||
#include <thread> | ||
#include <uWS/uWS.h> | ||
#include <unordered_map> | ||
|
||
using namespace opentracing; | ||
// using namespace opentracing::mocktracer; | ||
|
||
using namespace uWS; | ||
|
||
int main() { | ||
Hub h; | ||
std::string response = "Hello!"; | ||
void inject_jaeger(uint64_t jaeger_trace_id, uint64_t jaeger_parent_id) { | ||
printf("jaeger_trace_id: %llu, jaeger_parent_id: %llu\n", jaeger_trace_id, | ||
jaeger_parent_id); | ||
|
||
h.onHttpRequest([&](HttpResponse *res, HttpRequest req, char *data, size_t length, | ||
size_t remainingBytes) { | ||
res->end(response.data(), response.length()); | ||
}); | ||
FILE *procfile = fopen("/proc/lttng_jaeger", "w"); | ||
uint64_t *buf = (uint64_t *)malloc(sizeof(uint64_t) * 2); | ||
|
||
if (h.listen(3000)) { | ||
h.run(); | ||
} | ||
buf[0] = jaeger_trace_id; | ||
buf[1] = jaeger_parent_id; | ||
|
||
fwrite(buf, sizeof(uint64_t), 2, procfile); | ||
fclose(procfile); | ||
} | ||
|
||
int main() { | ||
auto config = jaegertracing::Config( | ||
false, | ||
jaegertracing::samplers::Config(jaegertracing::kSamplerTypeConst, 1), | ||
jaegertracing::reporters::Config( | ||
jaegertracing::reporters::Config::kDefaultQueueSize, | ||
std::chrono::seconds(1), true)); | ||
auto tracer = jaegertracing::Tracer::make("test", config); | ||
|
||
auto parent_span = tracer->StartSpan("parent"); | ||
assert(parent_span); | ||
|
||
Hub h; | ||
std::string response = "Hello!"; | ||
|
||
h.onHttpRequest([&](HttpResponse *res, HttpRequest req, char *data, | ||
size_t length, size_t remainingBytes) { | ||
std::cout << length << std::endl; | ||
auto parent_span = tracer->StartSpan("parent"); | ||
assert(parent_span); | ||
parent_span->Finish(); | ||
|
||
parent_span->Log({{"event", "simple log"}, {"abc", 123}}); | ||
|
||
res->end(response.data(), response.length()); | ||
parent_span->Finish(); | ||
tracer->Close(); | ||
// std::cout << oss.str() << "\n"; | ||
}); | ||
|
||
if (h.listen(3000)) { | ||
h.run(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Oops, something went wrong.