Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 618FDC433EF for ; Tue, 26 Apr 2022 06:37:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245193AbiDZGkP (ORCPT ); Tue, 26 Apr 2022 02:40:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245445AbiDZGkM (ORCPT ); Tue, 26 Apr 2022 02:40:12 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2C8E11AD8D for ; Mon, 25 Apr 2022 23:36:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650955017; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9i0LRPyNEJc6bvUmFcC0BsQd2Cd/7OUqQ7P+EjHdKXY=; b=WhbaJIJ2MML+zAhNHNEElb2Lt3TdnNdK2pIJ5C8s4SzKWl0CmxkI+fw/Kr/li2fMnrQwI/ Nv8eF45ZB09WrUtEgB57M0aQmxR6faPp8X94dp0MEBArXhTKVRawCA24jN07yVwVBdG2NQ XXOLmviaTCpojzDhLT48oYvRfBz9ANM= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-93-yrzZfVbXNi2NAWm473Qfow-1; Tue, 26 Apr 2022 02:36:55 -0400 X-MC-Unique: yrzZfVbXNi2NAWm473Qfow-1 Received: by mail-wr1-f69.google.com with SMTP id e21-20020adfa455000000b0020ae075cf35so1094882wra.11 for ; Mon, 25 Apr 2022 23:36:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=9i0LRPyNEJc6bvUmFcC0BsQd2Cd/7OUqQ7P+EjHdKXY=; b=eM7ts6f5ZNWmEnqg3vGNP7JpwEyUx7RioXNjQAmdgmDd4F6htw7DR4Vi7NrnKNFvSO 8P97+dup4IGkPDq04ba7yNFC492mC6Ln/ZvAUOc9GCSQwyKRWPoaKsM+j1yilQ0FQ9OG 2yJWvq29DDWu9i+nF2cKevkAwvQ/O037BcjVhoX58duQkqblO0XAnhJUtg5GBtWzW3uC gH49uNNy0f0ZltbuNxr+4/rswB0ONrjS6b3ww46MImF1+GSSC+KHuB9CtO6QuMeRDKan XGR8q1ZYfZ7+zrm3KnFsJS2Lftje/be7OYJumda5ukzCmsLaC9M3yaxlz8zT7x4/90uR HRyg== X-Gm-Message-State: AOAM530320ZGcNsgTsDeDY5J00nbQ28HsyqtOjDopmGs5xHXU6gHndFe XyjQSqs4p0SY+LkG1zGgTzo9vH9dh0bsEn0jiJQ0lV17sMpuMMjBzhil4a6H4d6crXNiZMsZ2RS 4r9o5CzO1uO2n X-Received: by 2002:a05:600c:410c:b0:38e:d2b5:ef2a with SMTP id j12-20020a05600c410c00b0038ed2b5ef2amr19376759wmi.91.1650955014160; Mon, 25 Apr 2022 23:36:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5bs431vMW7b0fsHaky/7iiODeCAXOCFJOhJPStoFps+KoTnjB2J/kUa3Bzs0oKUjj6aDEBg== X-Received: by 2002:a05:600c:410c:b0:38e:d2b5:ef2a with SMTP id j12-20020a05600c410c00b0038ed2b5ef2amr19376748wmi.91.1650955013955; Mon, 25 Apr 2022 23:36:53 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.googlemail.com with ESMTPSA id f4-20020a7bc8c4000000b0038ebbe10c5esm12942575wml.25.2022.04.25.23.36.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Apr 2022 23:36:53 -0700 (PDT) Message-ID: <18ffeaf2-cb4c-ad6f-51eb-a4cdd5cd3c31@redhat.com> Date: Tue, 26 Apr 2022 08:36:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: Unexport of kvm_x86_ops vs tracer modules Content-Language: en-US To: Mathieu Desnoyers , Steven Rostedt Cc: Sean Christopherson , KVM list , lttng-dev , Michael Jeanson References: <1218866473.10909.1649432186473.JavaMail.zimbra@efficios.com> <3c11308e-006a-a7e9-8482-c6b341690530@redhat.com> <1622857974.11247.1649441213797.JavaMail.zimbra@efficios.com> <20220425100434.2f5d18bb@gandalf.local.home> <892959086.34940.1650902572304.JavaMail.zimbra@efficios.com> From: Paolo Bonzini In-Reply-To: <892959086.34940.1650902572304.JavaMail.zimbra@efficios.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 4/25/22 18:02, Mathieu Desnoyers wrote: >> Now another solution is to make the fast assigns available to anyone, and >> to allow you to simply pass in a pointer and size to have the data written >> into it. That is, you get the results of the TRACE_EVENT and not have to >> depend on internal data from the tracepoint. > If the fast assign can then be used on a field-per-field basis, maybe this > could work, but AFAIK the fast-assign macro is open-coded C, which makes this > not straightforward. > > If it's a all-or-nothing approach where the fast-assign needs to serialize all > fields, this would require that lttng copies the data into a temporary area, > which is something I want to avoid for filtering and event notification per-field > payload capture purposes. It wouldn't be great; but it wouldn't be any worse than doing any complex calculations inside an "if (trace_xyz_enabled())", and passing them as arguments to the tracepoint function, which is what you suggested earlier. Paolo