Fix: add ustctl_has_perf_counters
[lttng-ust.git] / liblttng-ust-ctl / ustctl.c
index 195f29c03cd211eac3a3fc354e56cd88a574dc4a..b44d9e34020a5cbe61d547c4b8ba7d01e723bc83 100644 (file)
@@ -1639,6 +1639,22 @@ int ustctl_get_current_timestamp(struct ustctl_consumer_stream *stream,
        return client_cb->current_timestamp(buf, handle, ts);
 }
 
+#if defined(__x86_64__) || defined(__i386__)
+
+int ustctl_has_perf_counters(void)
+{
+       return 1;
+}
+
+#else
+
+int ustctl_has_perf_counters(void)
+{
+       return 0;
+}
+
+#endif
+
 /*
  * Returns 0 on success, negative error value on error.
  */
This page took 0.022601 seconds and 4 git commands to generate.