Skip to content

trace2: load trace2 settings from system config

Jeff Hostetler via GitGitGadget git 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest11 patches 2 repliesIn review
  2. v410 patches 2 repliesSuperseded
  3. v310 patches 4 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v27 patches10 repliesSuperseded
v14 patches3 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11config: initialize opts structure in repo_read_config()config.c+1 -10 replies
2/11trace2: refactor setting process starting timeDocumentation/technical/api-trace2.txt common-main.c compat/mingw.c +4 more+67 -190 replies
3/11trace2: add absolute elapsed time to start eventDocumentation/technical/api-trace2.txt t/t0211-trace2-perf.sh trace2.c +4 more+30 -170 replies
4/11trace2: find exec-dir before trace2 initializationcommon-main.c+2 -20 replies
5/11config: add read_very_early_config()config.c config.h+24 -30 replies
6/11trace2: use system/global config for default trace2 settingsMakefile t/t0210-trace2-normal.sh t/t0211-trace2-perf.sh +11 more+340 -760 replies
7/11trace2: report peak memory usage of the processcommon-main.c compat/win32/trace2_win32_process_info.c trace2.c +1 more+60 -80 replies
8/11trace2: clarify UTC datetime formattingDocumentation/technical/api-trace2.txt trace2/tr2_tbuf.c trace2/tr2_tbuf.h +1 more+11 -110 replies
9/11trace2: make SIDs more uniqueDocumentation/technical/api-trace2.txt trace2/tr2_sid.c trace2/tr2_tbuf.c +1 more+73 -120 replies
10/11trace2: update docs to describe system/global config settingsDocumentation/config.txt Documentation/config/trace2.txt Documentation/technical/api-trace2.txt +1 more+152 -670 replies
11/11trace2: fixup access problem on /etc/gitconfig in read_very_early_configconfig.c config.h+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 00/11] trace2: load trace2 settings from system config

Version 4 fixes a few clang-format warnings and simplifies the PID field in the SID.

Jeff Hostetler (11):
config: initialize opts structure in repo_read_config()
trace2: refactor setting process starting time
trace2: add absolute elapsed time to start event
trace2: find exec-dir before trace2 initialization
config: add read_very_early_config()
trace2: use system/global config for default trace2 settings
trace2: report peak memory usage of the process
trace2: clarify UTC datetime formatting
trace2: make SIDs more unique
trace2: update docs to describe system/global config settings
trace2: fixup access problem on /etc/gitconfig in
read_very_early_config

 Documentation/config.txt                 |   2 +
 Documentation/config/trace2.txt          |  56 ++++++++
 Documentation/technical/api-trace2.txt   | 176 +++++++++++++----------
 Documentation/trace2-target-values.txt   |  10 ++
 Makefile                                 |   1 +
 common-main.c                            |   8 +-
 compat/mingw.c                           |   2 +
 compat/win32/trace2_win32_process_info.c |  50 ++++++-
 config.c                                 |  30 +++-
 config.h                                 |   5 +
 t/t0210-trace2-normal.sh                 |  49 ++++++-
 t/t0211-trace2-perf.sh                   |  43 ++++--
 t/t0212-trace2-event.sh                  |  42 +++++-
 trace2.c                                 |  21 ++-
 trace2.h                                 |  43 ++++--
 trace2/tr2_cfg.c                         |   7 +-
 trace2/tr2_dst.c                         |  26 ++--
 trace2/tr2_dst.h                         |   3 +-
 trace2/tr2_sid.c                         |  53 ++++++-
 trace2/tr2_sysenv.c                      | 127 ++++++++++++++++
 trace2/tr2_sysenv.h                      |  36 +++++
 trace2/tr2_tbuf.c                        |  19 ++-
 trace2/tr2_tbuf.h                        |   5 +-
 trace2/tr2_tgt.h                         |   1 +
 trace2/tr2_tgt_event.c                   |  53 +++----
 trace2/tr2_tgt_normal.c                  |  19 +--
 trace2/tr2_tgt_perf.c                    |  23 +--
 trace2/tr2_tls.c                         |  38 +++--
 trace2/tr2_tls.h                         |   8 +-
 29 files changed, 752 insertions(+), 204 deletions(-)
 create mode 100644 Documentation/config/trace2.txt
 create mode 100644 Documentation/trace2-target-values.txt
 create mode 100644 trace2/tr2_sysenv.c
 create mode 100644 trace2/tr2_sysenv.h

base-commit: 041f5ea1cf987a4068ef5f39ba0a09be85952064
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-169%2Fjeffhostetler%2Fcore-tr2-startup-and-sysenv-v5
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-169/jeffhostetler/core-tr2-startup-and-sysenv-v5
Pull-Request: https://github.com/gitgitgadget/git/pull/169

Range-diff vs v4:

  1:  f6653f1c59 =  1:  f6653f1c59 config: initialize opts structure in repo_read_config()
  2:  48e34834b6 =  2:  48e34834b6 trace2: refactor setting process starting time
  3:  175371fb54 =  3:  175371fb54 trace2: add absolute elapsed time to start event
  4:  94729b284c =  4:  94729b284c trace2: find exec-dir before trace2 initialization
  5:  b0fe1385f1 =  5:  b0fe1385f1 config: add read_very_early_config()
  6:  550cad6189 =  6:  550cad6189 trace2: use system/global config for default trace2 settings
  7:  56d8ce3fd6 =  7:  56d8ce3fd6 trace2: report peak memory usage of the process
  8:  196a9d2c85 =  8:  196a9d2c85 trace2: clarify UTC datetime formatting
  9:  9fdcb50140 =  9:  9fdcb50140 trace2: make SIDs more unique
 10:  3414016d04 = 10:  3414016d04 trace2: update docs to describe system/global config settings
  -:  ---------- > 11:  18ce795360 trace2: fixup access problem on /etc/gitconfig in read_very_early_config
Signature · 1 line
gitgitgadget