[rtems commit] capture: Compact rtems_capture_record_t

Sebastian Huber sebh at rtems.org
Thu May 12 11:35:56 UTC 2016


Module:    rtems
Branch:    master
Commit:    7bd18697f80af648d6ce8affe75227d070954fbf
Changeset: http://git.rtems.org/rtems/commit/?id=7bd18697f80af648d6ce8affe75227d070954fbf

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu May 12 11:14:38 2016 +0200

capture: Compact rtems_capture_record_t

Order fields according to alignment to reduce structure internal
padding.

---

 cpukit/libmisc/capture/capture.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libmisc/capture/capture.h b/cpukit/libmisc/capture/capture.h
index 99c8540..ab461a9 100644
--- a/cpukit/libmisc/capture/capture.h
+++ b/cpukit/libmisc/capture/capture.h
@@ -153,9 +153,9 @@ typedef struct rtems_capture_control_s
  */
 typedef struct rtems_capture_record_s
 {
-  uint32_t              events;
   rtems_capture_time_t  time;
   size_t                size;
+  uint32_t              events;
   rtems_id              task_id;
 } rtems_capture_record_t;
 



More information about the vc mailing list