Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756912AbcCCRLB (ORCPT ); Thu, 3 Mar 2016 12:11:01 -0500 Received: from eu-smtp-delivery-143.mimecast.com ([207.82.80.143]:33199 "EHLO eu-smtp-delivery-143.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752052AbcCCRK7 convert rfc822-to-8bit (ORCPT ); Thu, 3 Mar 2016 12:10:59 -0500 From: Michele DiGiorgio To: Steven Rostedt CC: , Ingo Molnar , Javi Merino , , Punit Agrawal , Eduardo Valentin Subject: Re: [PATCH] thermal: trace: migrating thermal traces to use TRACE_DEFINE_ENUM() macros References: <1456853934-24715-1-git-send-email-michele.digiorgio@arm.com> <20160301132006.1cda539c@gandalf.local.home> Message-ID: <56D87016.5030903@arm.com> Date: Thu, 3 Mar 2016 17:10:46 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160301132006.1cda539c@gandalf.local.home> X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: DB5PR09CA0029.eurprd09.prod.outlook.com (25.161.191.39) To HE1PR08MB0315.eurprd08.prod.outlook.com (25.161.116.14) X-Microsoft-Exchange-Diagnostics: 1;HE1PR08MB0315;2:6uMYKbR/kWwoUzWegLhi8atknR+h79teH/i2s9zMTU1tt/8tkOhAoPO1WIAxU2Z2R5OCrfByJEiOVfkWXB3lY9A6UGNaZhQBPBAhUQQzMvml8ApXTT7iemWIcviJwXxgf7fNQAAH/4lqTBXM3VJUAw==;3:oGnORghk+OpDqtdrM7ZPOpgeflmamOadcRqRwlXmu2jqzKf9poWkXDT7ptiiKd9mojOpA7VTAYFXUxgO/IDPEp4d38vBoPR3fOQRjklug2QLhOTWAKn7raWUcixoLZP1;25:aSXmAHDTFE+ehUNnFFsye2ZQE8PhDoF5t+8KNnOAuvJJ+PAcWP0Rk2k9ifvB1iVFydh6ByMGAEaEraL3q36w6lNiUGK5YMhtuFcnag7XfCXh5oBjtsl9VIKg2sKrKMgT04zdbNYeF2ZHZs+EnpHoJVcZVLMSfcig2INcNhGxpQm6w6XhmClr8o2mLINMDysqxIQM+AFuLNlRDi4mX78lVMZcIvXqPIifTY8DJyJkCXUCDeVK3g+UabfH2UUsJTbn51N6pOoJyw8sTwLU9jXv4Tw8CEVwOsz4DxPmZeGcTyftF/PIZtjLvdfhpX6/UmThnUrrQaOYTkfGDAay+Y4ucA==;20:+kOkAmQNCXmmlciRlezyDj2Br/HpdtmIbldHhR39xM/YdDA4oWCv8a9cM7EsyMKkzzn8sc3kKPxtCxy/k+PcsiinTE8vwsJyzTat/goHACnJFcajTaU1252cZntLln406DeRcBO2dflj9kxEY8Esu1+vlcR7deeyPWSTXurSgCTy3+DQzoLOknEmPnnaqxK0BjFAvvh56ZAF4lEk6XHmQUcpDbb/Dz55m/s0gaXDixp9MtDVVIeofDhYDZSsO15q X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HE1PR08MB0315; X-MS-Office365-Filtering-Correlation-Id: cccd40f1-e1ff-403f-21e3-08d34386c68d X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001);SRVR:HE1PR08MB0315;BCL:0;PCL:0;RULEID:;SRVR:HE1PR08MB0315; X-Microsoft-Exchange-Diagnostics: 1;HE1PR08MB0315;4:gWdsr+tX9NNeCevNwRsx2ivlgAiBHI3XF/bHgakyH0T39UBI9fP5lafcjhPm7rMQsRVE9mbYNY7+LqnyG2xP4rrdXWZ5KPy6EgxCcIuZkSA0Dk6bgyFP0vQzQc2B+B2b9tgcTJgId+ubFPHJnTKnPV830FHi537fnadyiLs7jaY6yb8s8rwY5moFxUGPjBJ33kVzjEUO8yC1fvXiLCsLY8tInbTZdhUE3ZWpCXtpeQBpQZvN/bmQ7abXVyZ2/y2g05yYAJpI9a8xjhnxpnqcPyEaxIVTiqyNp1Lu95EgKNQzD4Oeg4Pti5mQzYYSWCopydY/DQvp7Hl2z9qtzNM171VaxSPm7abcQ4TWKIq3iUfcahACrF703cXIlb8MwUta X-Forefront-PRVS: 0870212862 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6049001)(71364002)(479174004)(52604005)(40434004)(24454002)(19580405001)(80316001)(33656002)(77096005)(19580395003)(87976001)(76176999)(23676002)(50986999)(87266999)(65816999)(54356999)(4001350100001)(4326007)(6116002)(5004730100002)(2906002)(1096002)(40100003)(5890100001)(50466002)(92566002)(122386002)(64126003)(42186005)(86362001)(5008740100001)(36756003)(586003)(110136002)(2950100001)(189998001)(66066001)(65806001)(47776003)(81166005);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR08MB0315;H:[10.1.205.133];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA4TUIwMzE1OzIzOjBvdnlXc0RYOGZYbzJNd0pwV292blJvY0dP?= =?utf-8?B?ZEQzQU1QWmdDSlM0YXNqeDFlL0tDR2pEa2ZLRXhrMUhSVktEVnYwRktmNGFw?= =?utf-8?B?WU9XWU13NE1GWTRHQW9ES0k2UFduVnhsenE1dkQ0dFJwV3lya1k2SERFOVU2?= =?utf-8?B?b0s5ZDhONGwvVVQ4Kzl1REYxazFOU0NYN0ZsTTZNNXRSajhXV3kya1ZidVRv?= =?utf-8?B?am9FalVseDlxRXVVSXRXanhxNFhHUUFBblc0TU4wai9ibG5BaVpReU5XQ2p2?= =?utf-8?B?RmRaOVV0RytIQ0VXeC9EQnh3TVNGbG1wQUZ0TVlad2svTndydUJrU2lvU0pq?= =?utf-8?B?OUVhYXpwS01iZk1vWTZhY0ZuVFd1RUxybGpmQ2ZuRkxPWlFUZmx0YTFOU3Rp?= =?utf-8?B?R0hCcDMwZWNncTZXVmNOR28xL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HVoNE5XU1AxY2NzUUd5Z1JKSi8ybnA0eXdkaHJRYmZ3UzBlMHlLckUr?= =?utf-8?B?NlZXclNWWjRBajJmcXdOSW5USVRMK1VnOHJuYm1RQUlmdzhVc2hFVkhhb1V2?= =?utf-8?B?NmNEcGd3WWVvRDkrWHZmSENlam1UNUdsSVJFUUhHK2JPRTBZdXJ4aFk1aUZw?= =?utf-8?B?d0NiUTd5REN2S3hVY2ZBK04rYzVkWE9ZeHF4WHVJSTBUT3BiQWZoTktaTGIy?= =?utf-8?B?aUNWKy95UFJxVDN6RnFTaHVPOGROWFE9PQ==?= X-Microsoft-Exchange-Diagnostics: 1;HE1PR08MB0315;5:3CiNXXoFqtzaxxJcZ+42QB2kj+9CXrcWBpfnwFi/Lalt5FwzXo7bDoWmjropKjWRe0FBjyIFuxjaoARbPysI12Dg8WTHePhWgMmfZ+bqoiOWvDVkcVNMLvcxtkPSjd4ybKcPyuLIY8cXAEnmU606Rg==;24:wDrPPhGGKwQyJWWiFZxomf+oElcpOCXzIyADGxLjJ57iyMEsntoW34T3/sF4hQd/yzow152QB3YbAkSdDtW0pSfB9yZuEBNErDuNznQmVMw=;20:lyBUn+35pC1Zo+g23MVXRlZn4FNTmVJ9KR5QpwRBgCKNJGsnJcQ5MzQ0WVCZhuiDl57ZenIBFpeyNSxlMe+8O4IYyn/9j7sKHKc1/PsG/YhDqxGV+cYflJ01w3T+dhM0I7CyZaQ6x7mKs34s+V1OoWtL2UvHqk+6LH+hlEy+lRk= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2016 17:10:51.8938 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR08MB0315 X-MC-Unique: _JcHXMpqSdaHDLEVxnQaOw-1 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1710 Lines: 43 Hello Steven, Thanks for acknowledging the patch. Will you be merging it or should I refer to somebody else? Kind regards, Michele On 01/03/16 18:20, Steven Rostedt wrote: > On Tue, 1 Mar 2016 17:38:54 +0000 > Michele Di Giorgio wrote: > > > Userspace tools are not aware of how to convert the enums provided by > > the tracepoints to their corresponding strings. > > > > Adding TRACE_DEFINE_ENUM() macros allows to make the enums available > > to userspace to let the tools know what those enum values represent. > > > > In particular, for thermal zone trip types what we obtained before was > > something like: > > > > kworker/1:1-460 [001] 320.372732: thermal_zone_trip: thermal_zone=soc > > id=0 trip=1 trip_type=1 > > > > Unfortunately, userspace tools do not know how to convert enum values to > > strings and as a consequence they can only forward the enum value to the > > output. By using TRACE_DEFINE_ENUM() macros for thermal traces we get the > > following trace line: > > > > kworker/1:1-460 [001] 320.372732: thermal_zone_trip: thermal_zone=soc > > id=0 trip=1 trip_type=PASSIVE > > > > Userspace tools are now able to better understand the meaning of the trip_type > > and provide the user with more readable information. > > > > Acked-by: Steven Rostedt > > -- Steve > IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.