From patchwork Fri Aug 3 13:07:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yordan Karadzhov X-Patchwork-Id: 10758791 Return-Path: Received: from mail-wm0-f65.google.com ([74.125.82.65]:34225 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731997AbeHCPEr (ORCPT ); Fri, 3 Aug 2018 11:04:47 -0400 Received: by mail-wm0-f65.google.com with SMTP id l2-v6so4973345wme.1 for ; Fri, 03 Aug 2018 06:08:30 -0700 (PDT) From: "Yordan Karadzhov (VMware)" To: rostedt@goodmis.org Cc: linux-trace-devel@vger.kernel.org, "Yordan Karadzhov (VMware)" Subject: [PATCH 1/3] kernel-shark-qt: Change the type of the fields in struct kshark_entry Date: Fri, 3 Aug 2018 16:07:57 +0300 Message-Id: <20180803130759.31858-1-y.karadz@gmail.com> Sender: linux-trace-devel-owner@vger.kernel.org List-ID: Content-Length: 1073 This patch aims to increase the max value limits of the "pid" and "cpu" fields of struct kshark_entry. The type of the field "visible" is changed as well, but this is done just to provide optimal packing. Signed-off-by: Yordan Karadzhov (VMware) --- kernel-shark-qt/src/libkshark.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel-shark-qt/src/libkshark.h b/kernel-shark-qt/src/libkshark.h index 2e26552..0ad31c0 100644 --- a/kernel-shark-qt/src/libkshark.h +++ b/kernel-shark-qt/src/libkshark.h @@ -42,16 +42,16 @@ struct kshark_entry { * kshark_filter_masks to check the level of visibility/invisibility * of the entry. */ - uint8_t visible; + uint16_t visible; /** The CPU core of the record. */ - uint8_t cpu; + int16_t cpu; /** The PID of the task the record was generated. */ - int16_t pid; + int32_t pid; /** Unique Id ot the trace event type. */ - int event_id; + int32_t event_id; /** The offset into the trace file, used to find the record. */ uint64_t offset;