Commit 3c67c2fa authored by yonghong-song's avatar yonghong-song Committed by GitHub

Merge pull request #1386 from sandip4n/set-sdt-constraint

Update SDT argument constraints
parents 8b8e16b7 9ab1cee4
...@@ -34,10 +34,8 @@ namespace USDT { ...@@ -34,10 +34,8 @@ namespace USDT {
Location::Location(uint64_t addr, const char *arg_fmt) : address_(addr) { Location::Location(uint64_t addr, const char *arg_fmt) : address_(addr) {
#ifdef __powerpc64__ #ifdef __powerpc64__
ArgumentParser_powerpc64 parser(arg_fmt); ArgumentParser_powerpc64 parser(arg_fmt);
#elif defined(__x86_64__)
ArgumentParser_x64 parser(arg_fmt);
#else #else
#error "bcc does not support this platform yet" ArgumentParser_x64 parser(arg_fmt);
#endif #endif
while (!parser.done()) { while (!parser.done()) {
Argument arg; Argument arg;
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
// Default constraint for the probe arguments as operands. // Default constraint for the probe arguments as operands.
#ifndef FOLLY_SDT_ARG_CONSTRAINT #ifndef FOLLY_SDT_ARG_CONSTRAINT
#if defined(__powerpc64__) || defined(__powerpc__) #if defined(__powerpc64__) || defined(__powerpc__)
#define FOLLY_SDT_ARG_CONSTRAINT "nQr" #define FOLLY_SDT_ARG_CONSTRAINT "nZr"
#elif defined(__x86_64__) || defined(__i386__) #else
#define FOLLY_SDT_ARG_CONSTRAINT "nor" #define FOLLY_SDT_ARG_CONSTRAINT "nor"
#endif #endif
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment