Received: by 10.223.164.202 with SMTP id h10csp1753762wrb; Fri, 24 Nov 2017 00:39:26 -0800 (PST) X-Google-Smtp-Source: AGs4zMZMzbx9mSrUfyRzcsTqViX7Pr+g+MY2XrrLZk5inQ46CoEOvn/FaG1TztiB/NlideZ1bXO9 X-Received: by 10.101.74.73 with SMTP id a9mr16556180pgu.444.1511512766719; Fri, 24 Nov 2017 00:39:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511512766; cv=none; d=google.com; s=arc-20160816; b=0XcscC9hE1cXgsEex77QZzZWm7G82TDPhvlgC3x6POpCcFnYHG1fAiZvcg/Hl0zl0e NbvFmnAJS98bqg0E1Am7g8e1Qf7K6iYCHg75P5B1EI9rH+y+OzItdvGe8uHRN4isiAz8 cnhlbv76ImoUmeXlcT3hDNUTE45CefZysa8oYEMSdhZU38UACacEGIRf+TxhmbtIIcXc COrCdUvt+/mESPs/j8aDTq8JPeCTJ6PH5h8ZLAty2bO8Kis/7bg7rAXVFm+ZW56w9V7p QPWa1a86U6/pgNZQ5GhbavBl80vbK7Xi9nB3Mx1ZBzoDOUrVexFcNw3Vcx6n07zM9/qD H4XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=7vnB7Xmi/SyO5Mx2VhpFt99evvKFiSwK3wioGBDnXp4=; b=Uprb9PdjcdvpJDVJZE+mpzTD8VwZAnUR6wUoA8t0faTemnyWfGY4p4JUcqdLGeTGbc FIrEaN0Sv6m6feUcuo4Q8pjlWbxJiiuWQMNLoKrXerzzpBjST+IKtsBMd/B7gfqCfMNm 9/p9jg339AIMg3dChdfhrbQr1fn7ai3XdO0Kyxqm4P+dbV+feffLdTGJngekD3glH5V8 uQNRyEN9jOCXEDdvFkdPmZKSMjeZF1/gRBbmriXubL8LF3M9zPauuf05sSRIYq3czMK+ uWBVXEovgNjTHMIyIYBFID9Z5jspiqBm9gvsDZR5ipXhPkVJynkC/UF3n8lzXErAeOOY LAZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d92si1940737pld.367.2017.11.24.00.39.15; Fri, 24 Nov 2017 00:39:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752344AbdKXIif convert rfc822-to-8bit (ORCPT + 76 others); Fri, 24 Nov 2017 03:38:35 -0500 Received: from seldsegrel01.sonyericsson.com ([37.139.156.29]:6923 "EHLO SELDSEGREL01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751631AbdKXIie (ORCPT ); Fri, 24 Nov 2017 03:38:34 -0500 Subject: Re: [PATCH] Add slowpath enter/exit trace events To: Michal Hocko , Mel Gorman CC: , , Steven Rostedt , Ingo Molnar , Alex Deucher , "David S . Miller" , Harry Wentland , Greg Kroah-Hartman , Tony Cheng , Andrew Morton , Vlastimil Babka , Johannes Weiner , Pavel Tatashin References: <20171123104336.25855-1-peter.enderborg@sony.com> <20171123122530.ktsxgeakebfp3yep@dhcp22.suse.cz> <20171123133629.5sgmapfg7gix7pu3@techsingularity.net> <20171123140127.7z5z6awj2ti6lozh@dhcp22.suse.cz> From: peter enderborg Message-ID: Date: Fri, 24 Nov 2017 09:38:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171123140127.7z5z6awj2ti6lozh@dhcp22.suse.cz> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/23/2017 03:01 PM, Michal Hocko wrote: > I am not sure adding a probe on a production system will fly in many > cases. A static tracepoint would be much easier in that case. But I > agree there are other means to accomplish the same thing. My main point > was to have an easy out-of-the-box way to check latencies. But that is > not something I would really insist on. > In android tracefs (or part of it) is the way for the system to control to what developers can access to the linux system on commercial devices.  So it is very much used on production systems, it is even  a requirement from google to be certified as android.  Things like dmesg is not.  However, this probe is at the moment not in that scope.  My point is that you need to condense the information as much as possible but still be useful before making the effort to copy it to userspace.  And  for this the trace-event are very useful for small systems since the cost is very low for events where no one is listening. From 1584932562330720241@xxx Fri Nov 24 07:44:37 +0000 2017 X-GM-THRID: 1584853363124088746 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread