Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5387581pxj; Wed, 26 May 2021 09:20:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw20bXuZF3eko/205azZ90FY3jBkqNUmmy85gaXSmSasAWjwRxZhxMC7CQWjUgawg2oFMI5 X-Received: by 2002:a6b:630b:: with SMTP id p11mr27080615iog.133.1622046047615; Wed, 26 May 2021 09:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622046047; cv=none; d=google.com; s=arc-20160816; b=AqYwEVrHR2rnrawda7/bneuxPSI/MDnvMOwOoFjhgarJjh1VJq6/1ACzYAkgesn5U8 npGEtNBQ2lcY30E/SZVX//M+bVk/y2Osdrff9dMEeV8bwP/s1f+QvVuFEJn+7tJzJPCj HC6PqQOZmt5OLhi1Jhtwl/UcRIMHuiK/zoRP+3ZyVeDpaWylFPJLjvjJkjzL2a5KhS2T x+JKDruewoaadLSg8cp3LbG8IXC6r3A3juB8XLn4EFVss3wAHyTOwYinF5lKcUulJq5+ W1jS7OF4tluOfiQ5pjgdc5upNbzazZiPpm4ATsQRfHy6ibvnFGJP4DdhEc7qunI/lJCN cqdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:to:from:subject :message-id; bh=afgkWVzyURDn8TTAaCNL47StPWhk2CPOtT3yL8iFQWA=; b=rzep/wXQ+CvWjPb5rV9Xzhb5CFRZvGm/K4M8XqWqEcp76wUss6WImGsDF+iXOgS426 8L2iIKMFqv2frL9TKsF3FeNbJSeoB0bSZlqVlmmckrrp2Cr/4NsW0J0N6d5Bkv2Pu5NY tlc86i5JFBEYs7eC/hiXlvB+ibCOFGh2MkL+fiKcNcgkoD4M66FIG9aGtNYRAJTpVJ0I 95jKj1AYe6EDMhDnIEazm27i3PGyRBZ3kxgTMwMC5ilKZINlPVGs+NaWxe2ZwkqS9Cgi 5ojncZdJfKRMJn0sXiwpE1NnGrjNSMdxSVkBOv9T3Xo5/nwhB7bTgrRP+rAjN34ln6VY KkIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h17si8771118jas.28.2021.05.26.09.20.20; Wed, 26 May 2021 09:20:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233629AbhEZQUM (ORCPT + 99 others); Wed, 26 May 2021 12:20:12 -0400 Received: from cloud48395.mywhc.ca ([173.209.37.211]:48026 "EHLO cloud48395.mywhc.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231622AbhEZQUL (ORCPT ); Wed, 26 May 2021 12:20:11 -0400 Received: from modemcable064.203-130-66.mc.videotron.ca ([66.130.203.64]:53000 helo=[192.168.1.179]) by cloud48395.mywhc.ca with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1llwEw-0002vq-SZ; Wed, 26 May 2021 12:18:38 -0400 Message-ID: <9505850ae4c203f6b8f056265eddbffaae501806.camel@trillion01.com> Subject: Re: [PATCH] io_uring: Add to traces the req pointer when available From: Olivier Langlois To: Stefan Metzmacher , Pavel Begunkov , Jens Axboe , Steven Rostedt , Ingo Molnar , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 26 May 2021 12:18:37 -0400 In-Reply-To: <9a8abcc9-8f7a-8350-cf34-f86e4ac13f5c@samba.org> References: <60ac946e.1c69fb81.5efc2.65deSMTPIN_ADDED_MISSING@mx.google.com> <439a2ab8-765d-9a77-5dfd-dde2bd6884c4@gmail.com> <9a8abcc9-8f7a-8350-cf34-f86e4ac13f5c@samba.org> Organization: Trillion01 Inc Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud48395.mywhc.ca X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - trillion01.com X-Get-Message-Sender-Via: cloud48395.mywhc.ca: authenticated_id: olivier@trillion01.com X-Authenticated-Sender: cloud48395.mywhc.ca: olivier@trillion01.com X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-05-26 at 14:38 +0200, Stefan Metzmacher wrote: > Hi, > > > > @@ -333,13 +333,14 @@ TRACE_EVENT(io_uring_complete, > > > ? */ > > > ?TRACE_EVENT(io_uring_submit_sqe, > > > ? > > > -???????TP_PROTO(void *ctx, u8 opcode, u64 user_data, bool > > > force_nonblock, > > > -??????????????? bool sq_thread), > > > +???????TP_PROTO(void *ctx, void *req, u8 opcode, u64 user_data, > > > +??????????????? bool force_nonblock, bool sq_thread), > > > ? > > > -???????TP_ARGS(ctx, opcode, user_data, force_nonblock, > > > sq_thread), > > > +???????TP_ARGS(ctx, req, opcode, user_data, force_nonblock, > > > sq_thread), > > > ? > > > ????????TP_STRUCT__entry ( > > > ????????????????__field(? void *,???????ctx?????????????) > > > +???????????????__field(? void *,???????req?????????????) > > > ????????????????__field(? u8,???????????opcode??????????) > > > ????????????????__field(? u64,??????????user_data???????) > > > ????????????????__field(? bool,?????????force_nonblock??) > > > @@ -348,26 +349,42 @@ TRACE_EVENT(io_uring_submit_sqe, > > > ? > > > ????????TP_fast_assign( > > > ????????????????__entry->ctx????????????= ctx; > > > +???????????????__entry->req????????????= req; > > > ????????????????__entry->opcode?????????= opcode; > > > ????????????????__entry->user_data??????= user_data; > > > ????????????????__entry->force_nonblock?= force_nonblock; > > > ????????????????__entry->sq_thread??????= sq_thread; > > > ????????), > > > ? > > > -???????TP_printk("ring %p, op %d, data 0x%llx, non block %d, > > > sq_thread %d", > > > -???????????????????????? __entry->ctx, __entry->opcode, > > > -???????????????????????? (unsigned long long) __entry- > > > >user_data, > > > -???????????????????????? __entry->force_nonblock, __entry- > > > >sq_thread) > > > +???????TP_printk("ring %p, req %p, op %d, data 0x%llx, non block > > > %d, " > > > +???????????????? "sq_thread %d",? __entry->ctx, __entry->req, > > > +???????????????? __entry->opcode, (unsigned long long)__entry- > > > >user_data, > > > +???????????????? __entry->force_nonblock, __entry->sq_thread) > > > ?); > > If that gets changed, could be also include the personality id and > flags here, > and maybe also translated the opcode and flags to human readable > strings? > If Jens and Pavel agrees that they would like to see this info in the traces, I have no objection adding it. Still waiting input from Steven Rostedt which I believe is the trace system maintainer concerning the hash-ptr situation. I did receive an auto-respond from him saying that he was in vacation until May 28th... Greetings,