diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2025-05-30 06:59:52 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-05-30 06:59:52 +0300 |
commit | 472c5f736b54c476c9bfaa0258c4c07fc6ddeea4 (patch) | |
tree | 2186f6e68b7ffd790b2eb2fa25a2fa4e0ffddc03 /tools/tracing/rtla/src/utils.h | |
parent | e0797d3b91de75b6c95b4a0e0649ebd4aac1d9d1 (diff) | |
parent | 8020361d51eea5145402e450d91b083bccdcd874 (diff) | |
download | linux-472c5f736b54c476c9bfaa0258c4c07fc6ddeea4.tar.xz |
Merge tag 'trace-tools-v6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
Pull tracing tools updates from Steven Rostedt:
- Set distinctive value for failed tests
When running "make check" that performs tests on rtla the failure is
checked by examining the output. Instead have the tool return an
error status if it exceeds the threadhold.
- Define __NR_sched_setattr for LoongArch
Define __NR_sched_setattr to allow this to build for LoongArch.
- Define _GNU_SOURCE for timerlat_bpf.c
Due to modifications of struct sched_attr in utils.h when _GNU_SOURCE
is not defined, this can cause errors for timerlat_bpf_init() and
breakage in BPF sample collection mode.
* tag 'trace-tools-v6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
rtla: Define _GNU_SOURCE in timerlat_bpf.c
rtla: Define __NR_sched_setattr for LoongArch
rtla: Set distinctive exit value for failed tests
Diffstat (limited to 'tools/tracing/rtla/src/utils.h')
-rw-r--r-- | tools/tracing/rtla/src/utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/tracing/rtla/src/utils.h b/tools/tracing/rtla/src/utils.h index 101d4799a009..a2a6f89f342d 100644 --- a/tools/tracing/rtla/src/utils.h +++ b/tools/tracing/rtla/src/utils.h @@ -83,3 +83,9 @@ int auto_house_keeping(cpu_set_t *monitored_cpus); #define ns_to_usf(x) (((double)x/1000)) #define ns_to_per(total, part) ((part * 100) / (double)total) + +enum result { + PASSED = 0, /* same as EXIT_SUCCESS */ + ERROR = 1, /* same as EXIT_FAILURE, an error in arguments */ + FAILED = 2, /* test hit the stop tracing condition */ +}; |