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 {
Location::Location(uint64_t addr, const char *arg_fmt) : address_(addr) {
#ifdef __powerpc64__
ArgumentParser_powerpc64 parser(arg_fmt);
#elif defined(__x86_64__)
ArgumentParser_x64 parser(arg_fmt);
#else
#error "bcc does not support this platform yet"
ArgumentParser_x64 parser(arg_fmt);
#endif
while (!parser.done()) {
Argument arg;
......
......@@ -19,8 +19,8 @@
// Default constraint for the probe arguments as operands.
#ifndef FOLLY_SDT_ARG_CONSTRAINT
#if defined(__powerpc64__) || defined(__powerpc__)
#define FOLLY_SDT_ARG_CONSTRAINT "nQr"
#elif defined(__x86_64__) || defined(__i386__)
#define FOLLY_SDT_ARG_CONSTRAINT "nZr"
#else
#define FOLLY_SDT_ARG_CONSTRAINT "nor"
#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