New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A couple of fixes for the Trace2 documentation #1172
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
/submit |
Submitted as pull.1172.git.1646919331.gitgitgadget@gmail.com To fetch this version into
To fetch this version to local tag
|
On the Git mailing list, Jeff Hostetler wrote (reply to this):
|
User |
@@ -24,7 +24,7 @@ for example. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Ævar Arnfjörð Bjarmason wrote (reply to this):
On Thu, Mar 10 2022, Johannes Schindelin via GitGitGadget wrote:
> From: Johannes Schindelin <johannes.schindelin@gmx.de>
>
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> ---
> Documentation/technical/api-trace2.txt | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/technical/api-trace2.txt b/Documentation/technical/api-trace2.txt
> index 285f713ed84..91985512867 100644
> --- a/Documentation/technical/api-trace2.txt
> +++ b/Documentation/technical/api-trace2.txt
> @@ -170,7 +170,7 @@ Some functions have a `_va_fl()` suffix to indicate that they also
> take a `va_list` argument.
>
> Some functions have a `_printf_fl()` suffix to indicate that they also
> -take a varargs argument.
> +take a `printf()` style format with a variable number of arguments.
This is correct, but I think better would be to explicitly describe the
_printf_va_fl() suffix in this list, i.e. now that implicitly falls
under _va_fl(), so it's *technically* redundant.
But either describing it explicitly, or saying that `_printf_*_fl()` are
function that take a printf format before either a "va_args" or "..."
would make the end-state a bit more obvious.
I wonder if the pre-image wanted to describe `_printf_va_fl()` (which
would make it correct), and we just omitted a `printf_fl()` description.
User |
@@ -24,7 +24,7 @@ for example. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Ævar Arnfjörð Bjarmason wrote (reply to this):
On Thu, Mar 10 2022, Johannes Schindelin via GitGitGadget wrote:
> From: Johannes Schindelin <johannes.schindelin@gmx.de>
>
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> ---
> Documentation/technical/api-trace2.txt | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/Documentation/technical/api-trace2.txt b/Documentation/technical/api-trace2.txt
> index bb13ca3db8b..77216eff622 100644
> --- a/Documentation/technical/api-trace2.txt
> +++ b/Documentation/technical/api-trace2.txt
> @@ -24,7 +24,7 @@ for example.
>
> Trace2 is controlled using `trace2.*` config values in the system and
> global config files and `GIT_TRACE2*` environment variables. Trace2 does
> -not read from repo local or worktree config files or respect `-c`
> +not read from repo local or worktree config files nor does it respect `-c`
Perhaps adding a comma before "nor" would also be a good addition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Junio C Hamano wrote (reply to this):
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> On Thu, Mar 10 2022, Johannes Schindelin via GitGitGadget wrote:
>
>> From: Johannes Schindelin <johannes.schindelin@gmx.de>
>>
>> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
>> ---
>> Documentation/technical/api-trace2.txt | 14 +++++++-------
>> 1 file changed, 7 insertions(+), 7 deletions(-)
>>
>> diff --git a/Documentation/technical/api-trace2.txt b/Documentation/technical/api-trace2.txt
>> index bb13ca3db8b..77216eff622 100644
>> --- a/Documentation/technical/api-trace2.txt
>> +++ b/Documentation/technical/api-trace2.txt
>> @@ -24,7 +24,7 @@ for example.
>>
>> Trace2 is controlled using `trace2.*` config values in the system and
>> global config files and `GIT_TRACE2*` environment variables. Trace2 does
>> -not read from repo local or worktree config files or respect `-c`
>> +not read from repo local or worktree config files nor does it respect `-c`
>
> Perhaps adding a comma before "nor" would also be a good addition.
Yup, that sounds sensible. All other hunks looked good, too.
Thanks, both.
@@ -24,7 +24,7 @@ for example. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Junio C Hamano wrote (reply to this):
"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com>
writes:
> From: Johannes Schindelin <johannes.schindelin@gmx.de>
>
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> ---
> Documentation/technical/api-trace2.txt | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/technical/api-trace2.txt b/Documentation/technical/api-trace2.txt
> index 77216eff622..8ef921a4e4d 100644
> --- a/Documentation/technical/api-trace2.txt
> +++ b/Documentation/technical/api-trace2.txt
> @@ -70,7 +70,7 @@ $ cat ~/log.normal
>
> The performance format target (PERF) is a column-based format to
> replace GIT_TRACE_PERFORMANCE and is suitable for development and
`GIT_TRACE_PERFORMANCE` to match `GIT_TRACE2_PERF` we see below.
> -testing, possibly to complement tools like gprof. This format is
> +testing, possibly to complement tools like `gprof`. This format is
> enabled with the `GIT_TRACE2_PERF` environment variable or the
> `trace2.perfTarget` system or global config setting.
>
> @@ -172,7 +172,7 @@ take a `va_list` argument.
> Some functions have a `_printf_fl()` suffix to indicate that they also
> take a varargs argument.
>
> -There are CPP wrapper macros and ifdefs to hide most of these details.
> +There are CPP wrapper macros and `#ifdef`s to hide most of these details.
> See `trace2.h` for more details. The following discussion will only
> describe the simplified forms.
@@ -24,7 +24,7 @@ for example. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Junio C Hamano wrote (reply to this):
"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com>
writes:
> @@ -34,8 +34,8 @@ Format details are given in a later section.
>
> === The Normal Format Target
>
> -The normal format target is a tradition printf format and similar
> -to GIT_TRACE format. This format is enabled with the `GIT_TRACE2`
> +The normal format target is a traditional printf format and similar
> +to the GIT_TRACE format. This format is enabled with the `GIT_TRACE2`
In the same spirit as [2/4] and match the part that [4/4] touches,
this probably is better:
The normal format target is a traditional `printf()` format and similar
to the `GIT_TRACE` format. This format is enabled with the `GIT_TRACE2`
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
We append an ellipsis and enclose it in backticks to indicate that it is a function elsewhere, let's also use that here. While at it, ensure the same for `waitpid()`. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The example was not in valid JSON format due to a duplicate key "sid". Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
/submit |
Submitted as pull.1172.v2.git.1651573607.gitgitgadget@gmail.com To fetch this version into
To fetch this version to local tag
|
On the Git mailing list, Jeff Hostetler wrote (reply to this):
|
This branch is now known as |
This patch series was integrated into seen via git@e81c54a. |
There was a status update in the "New Topics" section about the branch source: <pull.1172.v2.git.1651573607.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@f89ea98. |
This patch series was integrated into seen via git@6d88c24. |
This patch series was integrated into seen via git@82547d2. |
There was a status update in the "Cooking" section about the branch Trace2 documentation updates. Will merge to 'next'. source: <pull.1172.v2.git.1651573607.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@b2cec84. |
This patch series was integrated into seen via git@9a08352. |
This patch series was integrated into seen via git@e7ee378. |
This patch series was integrated into next via git@b37c6a8. |
There was a status update in the "Cooking" section about the branch Trace2 documentation updates. Will merge to 'master'. source: <pull.1172.v2.git.1651573607.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@18d6068. |
This patch series was integrated into seen via git@d7f713e. |
There was a status update in the "Cooking" section about the branch Trace2 documentation updates. Will merge to 'master'. source: <pull.1172.v2.git.1651573607.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@102d719. |
This patch series was integrated into seen via git@e9b5669. |
This patch series was integrated into seen via git@a9ce611. |
This patch series was integrated into seen via git@722948d. |
This patch series was integrated into seen via git@3ab7328. |
This patch series was integrated into master via git@3ab7328. |
This patch series was integrated into next via git@3ab7328. |
Closed via 3ab7328. |
While verifying a suggestion for a contributor before sending it, I noticed that the Trace2 documentation contained an incorrect example. Looking around, I found a couple other things I wanted to fix, so here are the patches.
Note: This patch series is not intended to be perfectionist. I just want the result to be good enough, and move on to more important things.
Changes since v1:
Cc: Jeff Hostetler jeffhost@microsoft.com
cc: Jeff Hostetler git@jeffhostetler.com
cc: Ævar Arnfjörð Bjarmason avarab@gmail.com