+ /*
+ * Currently support only tracing of application which share the
+ * same bitness as the consumer. Eventually implement dispatch
+ * to specific compat32 consumer.
+ */
+ if (msg->bits_per_long != CAA_BITS_PER_LONG) {
+ ERR("Registration failed: application %s (pid: %d) has "
+ "%d-bit long, but only "
+ "%d-bit lttng-consumerd is available.\n",
+ msg->name, msg->pid, msg->bits_per_long,
+ CAA_BITS_PER_LONG);
+ return -EINVAL;
+ }
+