Skip to content

Commit d688889

Browse files
committed
7.1.1
increased default for QF_TIMEEVT_CTR_SIZE to 4
1 parent 0c6f17f commit d688889

File tree

3 files changed

+25
-14
lines changed

3 files changed

+25
-14
lines changed

doxygen/history.dox

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
/**
22
@page history Revision History
33

4-
@section qtools_7_1_1 Version 7.1.1, 2022-08-30
4+
@section qtools_7_1_1 Version 7.1.1, 2022-09-03
55
Slightly restructured QSPY source code to better integrate directly with QP applications. Specifically, moved QSPY_cleanup() to qspy.c, so it is available to the applications.
66

7+
__QSPY host application:__
8+
- Added pre-defined "Scheduler" records:
9+
+ `QS_SCHED_PREEMPT` replaces deprecated `QS_MUTEX_LOCK`
10+
+ `QS_SCHED_RESTORE` replaces deprecated `QS_MUTEX_UNLOCK`
11+
- Increased the default version for backwards compatibility from 6.6 to 7.0
12+
(@ref qspy_command "command-line option -v", now defaults to 7.0)
13+
- Increased the default for QTimeEvt counter size from 2 to 4
14+
(@ref qspy_command "command-line option -C", now defaults to 4).
15+
This corresponds to the change of the default value
16+
of `QF_TIMEEVT_CTR_SIZE` to 4 in QP/C and QP/C.
17+
718

819
@section qtools_7_1_0 Version 7.1.0, 2022-08-22
920

@@ -32,8 +43,8 @@ QS_MUTEX_UNLOCK, /*!< @deprecated */
3243
@endcode
3344
Also, the following new groups for QS global filter have been added:
3445
@code{.c}
35-
QS_SEM_RECORDS, /*!< Semaphore QS records */
36-
QS_MTX_RECORDS, /*!< Mutex QS records */
46+
QS_SEM_RECORDS, /*!< Semaphore QS records */
47+
QS_MTX_RECORDS, /*!< Mutex QS records */
3748
@endcode
3849

3950
__Changes in QUTest__

doxygen/qspy.dox

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Usage: qspy [options] <arg> = required, [arg] = optional
3737
<tr><td>-h <td>-h <td>(key-h) <td> <td>Help. Prints the summary of options
3838
<tr><td>-q [num] <td>-q 99 <td>(key-q) <td> <td>Quiet mode (reduced stdout output)
3939
<tr><td>-u [UDP_port|0] <td>-u <td>7701 <td> <td>UDP socket for "Front-Ends".<br>`-u0` suppresses opening the UDP socket
40-
<tr><td>-v &lt;QS_version&gt; <td>-v 6.2 <td>6.6 <td> <td>Enforce backwards-compatibility with the specific QS version
40+
<tr><td>-v &lt;QS_version&gt; <td>-v 6.2 <td>7.0 <td> <td>Enforce backwards-compatibility with the specific QS version
4141
<tr><td>-r &lt;c0|c1|c2&gt; <td>-r c2 <td>c1 <td> <td>Rendering options (c0=no-color|c1-color1|c2-color2)
4242
<tr><td>-k <td>-k <td> <td> <td>suppress keyboard input
4343
<tr><td>-o <td>-o <td>(key-o) <td> <td>Produce output to the specified file
@@ -62,7 +62,7 @@ The Target can **report** its configuration to QSPY, which means that you don't
6262
<tr><td>-P &lt;size&gt; <td>-P 4 <td>2 <td>`QF_MPOOL_CTR_SIZE` <td>Pool counter size in bytes. Valid values: 1, 2, 4
6363
<tr><td>-B &lt;size&gt; <td>-B 1 <td>2 <td>`QF_MPOOL_SIZ_SIZE` <td>Block size size in bytes. (i.e., the size of variables that hold
6464
memory block size). Valid values 1, 2, 4
65-
<tr><td>-C &lt;size&gt; <td>-C 4 <td>2 <td>`QF_TIMEEVT_CTR_SIZE` <td>Time event counter size. Valid values: 1, 2, 4
65+
<tr><td>-C &lt;size&gt; <td>-C 2 <td>4 <td>`QF_TIMEEVT_CTR_SIZE` <td>Time event counter size. Valid values: 1, 2, 4
6666
</table>
6767

6868

qspy/source/qspy_main.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
2424
============================================================================*/
2525
/*!
26-
* @date Last updated on: 2022-08-22
27-
* @version Last updated for version: 7.1.0
26+
* @date Last updated on: 2022-09-05
27+
* @version Last updated for version: 7.1.1
2828
*
2929
* @file
3030
* @brief main for QSPY host utility
@@ -36,11 +36,11 @@
3636
#include <stdbool.h>
3737
#include <time.h>
3838

39-
#include "safe_std.h" /* "safe" <stdio.h> and <string.h> facilities */
40-
#include "qspy.h" /* QSPY data parser */
41-
#include "be.h" /* Back-End interface */
42-
#include "pal.h" /* Platform Abstraction Layer */
43-
#include "getopt.h" /* command-line option processor */
39+
#include "safe_std.h" /* "safe" <stdio.h> and <string.h> facilities */
40+
#include "qspy.h" /* QSPY data parser */
41+
#include "be.h" /* Back-End interface */
42+
#include "pal.h" /* Platform Abstraction Layer */
43+
#include "getopt.h" /* command-line option processor */
4444

4545
#define Q_SPY 1 /* this is QP implementation */
4646
#define QP_IMPL 1 /* this is QP implementation */
@@ -122,7 +122,7 @@ static char const l_helpStr[] =
122122
"-Q <counter_size> 1 queue counter size (bytes)\n"
123123
"-P <counter_size> 2 pool counter size (bytes)\n"
124124
"-B <block_size> 2 pool block-size size (bytes)\n"
125-
"-C <counter_size> 2 QTimeEvt counter size (bytes)\n";
125+
"-C <counter_size> 4 QTimeEvt counter size (bytes)\n";
126126

127127
static char const l_kbdHelpStr[] =
128128
"Keyboard shortcuts (valid when -k option is absent):\n"
@@ -305,7 +305,7 @@ static QSpyStatus configure(int argc, char *argv[]) {
305305
.queueCtrSize = 1U,
306306
.poolCtrSize = 2U,
307307
.poolBlkSize = 2U,
308-
.tevtCtrSize = 2U,
308+
.tevtCtrSize = 4U,
309309
};
310310
int optChar;
311311

0 commit comments

Comments
 (0)