linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] kernel-shark-qt: Change the type of the fields in struct kshark_entry
@ 2018-08-03 13:07 Yordan Karadzhov (VMware)
  2018-08-03 13:07 ` [PATCH 2/3] kernel-shark-qt: Change the input argument of kshark_dump_entry() to const Yordan Karadzhov (VMware)
  2018-08-03 13:07 ` [PATCH 3/3] kernel-shark-qt: In the Doxygen doc. add spacing after @brief and @param Yordan Karadzhov (VMware)
  0 siblings, 2 replies; 4+ messages in thread
From: Yordan Karadzhov (VMware) @ 2018-08-03 13:07 UTC (permalink / raw)
  To: rostedt; +Cc: linux-trace-devel, Yordan Karadzhov (VMware)

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) <y.karadz@gmail.com>
---
 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;
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-03 20:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-03 13:07 [PATCH 1/3] kernel-shark-qt: Change the type of the fields in struct kshark_entry Yordan Karadzhov (VMware)
2018-08-03 13:07 ` [PATCH 2/3] kernel-shark-qt: Change the input argument of kshark_dump_entry() to const Yordan Karadzhov (VMware)
2018-08-03 13:07 ` [PATCH 3/3] kernel-shark-qt: In the Doxygen doc. add spacing after @brief and @param Yordan Karadzhov (VMware)
2018-08-03 18:33   ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).