Snippets for trace-cmd 3.4 from Nix x86_64-linux
Sourced from https://hydra.nixos.org/log/29h0hwqjvfbhzkx83nvgaibsihf07wba-trace-cmd-3.4.drv.
-
trace-input.c:4541:51: warning: 'offset' may be used uninitialized [-Wmaybe-uninitialized] 4541 | handle->cpu_data[cpu].file_offset = offset; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ -
trace-input.c:4543:20: warning: 'size' may be used uninitialized [-Wmaybe-uninitialized] 4543 | if (size && (offset + size > handle->total_file_size)) { | ^ -
trace-recorder.c:88:25: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 88 | ftruncate(recorder->fd1, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-recorder.c:424:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 424 | write(recorder->fd, buf, recorder->subbuf_size - wrote); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-recorder.c:337:9: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 337 | ftruncate(fd, 0); | ^~~~~~~~~~~~~~~~ -
trace-util.c:617:9: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 617 | asprintf(&str, "%ld %ld %ld %ld %ld %ld %ld %ld %d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 618 | ts.tv_sec, ts.tv_nsec, | ~~~~~~~~~~~~~~~~~~~~~~ 619 | sinfo.loads[0], sinfo.loads[1], sinfo.loads[2], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 620 | sinfo.freeram, sinfo.sharedram, sinfo.freeswap, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 621 | sinfo.procs); | ~~~~~~~~~~~~ -
trace-msg.c:1425:9: warning: '__builtin_strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 1425 | strncpy(msg.tsync.sync_protocol_name, sync_protocol, TRACECMD_TSYNC_PNAME_LENGTH); | ^ -
trace-timesync.c:84:9: warning: '__builtin_strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 84 | strncpy(proto->proto_name, proto_name, TRACECMD_TSYNC_PNAME_LENGTH); | ^ -
trace-timesync-ptp.c:415:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 415 | write(ctx->ptp->marker_fd, marker, sizeof(struct ptp_marker)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-timesync-kvm.c:557:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 557 | write(kvm->marker_fd, KVM_EVENT_MARKER, strlen(KVM_EVENT_MARKER) + 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-timesync-kvm.c:293:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 293 | asprintf(&vm_dir_str, "%s/%s", kvm_debug_dir(), entry->d_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-timesync-kvm.c:231:66: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 231 | snprintf(path, sizeof(path), "%s/%s", | ^~ -
trace-timesync-kvm.c:236:66: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 236 | snprintf(path, sizeof(path), "%s/%s", | ^~ -
trace-timesync-kvm.c:241:66: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 241 | snprintf(path, sizeof(path), "%s/%s", | ^~ -
trace-record.c:25:2: warning: #warning ptrace not supported. -c feature will not work [-Wcpp] 25 | #warning ptrace not supported. -c feature will not work | ^~~~~~~ -
trace-record.c:2633:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 2633 | write(fd, "1", 1); | ^~~~~~~~~~~~~~~~~ -
trace-record.c:1942:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1942 | write(fd, &zero, 1); | ^~~~~~~~~~~~~~~~~~~ -
trace-record.c:1026:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1026 | write(fd, " ", 1); | ^~~~~~~~~~~~~~~~~ -
trace-record.c:5155:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 5155 | write(tfd, STAMP, 5); | ^~~~~~~~~~~~~~~~~~~~ -
trace-record.c:4994:9: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 4994 | read(fd, buf, 1); | ^~~~~~~~~~~~~~~~ -
trace-record.c:2970:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 2970 | write(fd, instance->cpumask, strlen(instance->cpumask)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-record.c:3806:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 3806 | write(fd, V3_CPU, sizeof(V3_CPU)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-record.c:3821:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 3821 | write(fd, V3_MAGIC, sizeof(V3_MAGIC)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-record.c:3702:9: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 3702 | read(msg_handle->fd, buf, 8); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-record.c:3723:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 3723 | write(msg_handle->fd, buf, strlen(buf)+1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-record.c:3729:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 3729 | write(msg_handle->fd, buf, strlen(buf)+1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-record.c:3745:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 3745 | write(msg_handle->fd, "1", 2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-record.c:3747:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 3747 | write(msg_handle->fd, "4", 2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-record.c:3749:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 3749 | write(msg_handle->fd, "TCP", 4); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-record.c:3752:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 3752 | write(msg_handle->fd, "0", 2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-record.c:1163:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 1163 | asprintf(&filter, "(%s)&&(%s)", curr_filter, filter); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-read.c:1962:13: warning: 'handle' may be used uninitialized [-Wmaybe-uninitialized] 1962 | if (tracecmd_get_flags(handle) & TRACECMD_FL_RAW_TS) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-read.c:1204:47: warning: 'first_ts' may be used uninitialized [-Wmaybe-uninitialized] 1204 | if (first || first_ts > ts) | ~~~~~~~~~^~~~ -
trace-read.c:1212:20: warning: 'ret' may be used uninitialized [-Wmaybe-uninitialized] 1212 | if (ret > 0) { | ^ -
trace-record.c:2425:17: warning: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-truncation] 2425 | strncpy(trigger + 1, line, len); | ^ -
trace-record.c:2495:17: warning: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-truncation] 2495 | strncpy(filter + 1, line, len); | ^ -
trace-split.c:282:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 282 | write(cpu_data->fd, cpu_data->page, page_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-split.c:793:61: warning: 'prev_arg_idx' may be used uninitialized [-Wmaybe-uninitialized] 793 | if (prev_arg_type != PREV_IS_BUFFER && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 794 | (prev_arg_idx != optind - 2)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-split.c:570:25: warning: 'count' may be used uninitialized [-Wmaybe-uninitialized] 570 | parse_cpu(curr_handle, cpu_data, start, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 571 | end, count, percpu, -1, type, &curr_end_reached); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-listen.c:1012:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1012 | write(fd, buf, strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-listen.c:356:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 356 | write(fd, "tracecmd", 8); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
trace-listen.c:390:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 390 | write(fd, "V3", 3); | ^~~~~~~~~~~~~~~~~~ -
trace-listen.c:395:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 395 | write(fd, "V3", 3); | ^~~~~~~~~~~~~~~~~~ -
trace-listen.c:403:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 403 | write(fd, "OK", 2); | ^~~~~~~~~~~~~~~~~~ -
trace-listen.c:578:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 578 | write(msg_handle->fd, buf, strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-listen.c:581:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 581 | write(msg_handle->fd, "\0", 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-record.c:1834:17: warning: '__builtin_strncpy' specified bound 4352 equals destination size [-Wstringop-truncation] 1834 | strncpy(buf, argv[0], sizeof(buf)); | ^ -
trace-listen.c:559:32: warning: 'pid' may be used uninitialized [-Wmaybe-uninitialized] 559 | pid_array[cpu] = pid; | ~~~~~~~~~~~~~~~^~~~~ -
trace-record.c:4220:31: warning: 'nr_fifos' may be used uninitialized [-Wmaybe-uninitialized] 4220 | for (i = 0; i < nr_fifos; i++) | ~~^~~~~~~~~~ -
trace-profile.c:22:3: warning: #warning "lib audit not found, using raw syscalls " "(install audit-libs-devel(for fedora) or libaudit-dev(for debian/ubuntu) and try again)" [-Wcpp] 22 | # warning "lib audit not found, using raw syscalls " \ | ^~~~~~~ -
trace-profile.c:1709:41: warning: 'ts_max' may be used uninitialized [-Wmaybe-uninitialized] 1709 | chain[x].ts_max = ts_max; | ~~~~~~~~~~~~~~~~^~~~~~~~ -
trace-profile.c:1707:41: warning: 'ts_min' may be used uninitialized [-Wmaybe-uninitialized] 1707 | chain[x].ts_min = ts_min; | ~~~~~~~~~~~~~~~~^~~~~~~~ -
trace-dump.c:70:25: warning: 'trace_id' may be used uninitialized [-Wmaybe-uninitialized] 70 | tracecmd_plog(fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-dump.c:70:25: warning: 'flags' may be used uninitialized [-Wmaybe-uninitialized] 70 | tracecmd_plog(fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-dump.c:70:25: warning: 'cpus' may be used uninitialized [-Wmaybe-uninitialized] 70 | tracecmd_plog(fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-vm.c:364:9: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 364 | asprintf(&cmd, "%s %s", VM_CID_CMD, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-vm.c:487:36: warning: 'guest' may be used uninitialized [-Wmaybe-uninitialized] 487 | pid = guest->cpu_pid[i]; | ~~~~~^~~~~~~~~ -
trace-dump.c:1110:25: warning: 'rsize' may be used uninitialized [-Wmaybe-uninitialized] 1110 | read_metadata_strings(fd, rsize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-setup-guest.c:108:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 108 | fscanf(f, "%d", &nr_cpus); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
trace-setup-guest.c:135:17: warning: ignoring return value of 'pwrite' declared with attribute 'warn_unused_result' [-Wunused-result] 135 | pwrite(fd, xml, strlen(xml), 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~