From patchwork Fri Jul 19 22:46:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 11050669 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2C40B112C for ; Fri, 19 Jul 2019 22:50:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 186BA289CD for ; Fri, 19 Jul 2019 22:50:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 044E1287B6; Fri, 19 Jul 2019 22:50:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A7B0287B6 for ; Fri, 19 Jul 2019 22:50:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732362AbfGSWuc (ORCPT ); Fri, 19 Jul 2019 18:50:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:41052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727344AbfGSWub (ORCPT ); Fri, 19 Jul 2019 18:50:31 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3754221873; Fri, 19 Jul 2019 22:50:31 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.92) (envelope-from ) id 1hobhu-0000LE-4I; Fri, 19 Jul 2019 18:50:30 -0400 Message-Id: <20190719224613.207069107@goodmis.org> User-Agent: quilt/0.65 Date: Fri, 19 Jul 2019 18:46:13 -0400 From: Steven Rostedt To: linux-trace-devel@vger.kernel.org Cc: Johannes Berg , Josef Bacik , Darren Hart , troyengel@gmail.com Subject: [PATCH 0/3] trace-cmd: Update python plugin for Python 3 Sender: linux-trace-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP As reported here: https://bugzilla.kernel.org/show_bug.cgi?id=204231 The trace-cmd python plugin doesn't build properly for Python 3. As Python 2 is going to be EOL soon, these should fix that. Note, I'm not strong in using python, and these changes basically came from googling how to handle these deprecations. Please have a look to see if I didn't break anything. Steven Rostedt (VMware) (3): trace-cmd: Replace PySting_FromString() with PyUnicode_FromString() trace-cmd: Use PyMemoryView_FromMemory() for Python 3 trace-cmd: Use PyLong_AsLong() for Python 3 ---- python/ctracecmd.i | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-)