Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf cs-etm: Use bool type for boolean values

Using u8 for boolean values makes the code a bit more difficult to read
so be more explicit by using bool.

Signed-off-by: James Clark <james.clark@arm.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Denis Nikitin <denik@google.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Yang Shi <shy828301@gmail.com>
Cc: coresight@lists.linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20230424134748.228137-7-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

James Clark and committed by
Arnaldo Carvalho de Melo
1764ce06 7bfc1544

+10 -10
+4 -4
tools/perf/util/cs-etm-decoder/cs-etm-decoder.h
··· 60 60 int operation; 61 61 void (*packet_printer)(const char *msg); 62 62 cs_etm_mem_cb_type mem_acc_cb; 63 - u8 formatted; 64 - u8 fsyncs; 65 - u8 hsyncs; 66 - u8 frame_aligned; 63 + bool formatted; 64 + bool fsyncs; 65 + bool hsyncs; 66 + bool frame_aligned; 67 67 void *data; 68 68 }; 69 69
+4 -4
tools/perf/util/cs-etm.c
··· 50 50 struct thread *unknown_thread; 51 51 struct perf_tsc_conversion tc; 52 52 53 - u8 timeless_decoding; 54 - u8 snapshot_mode; 55 - u8 data_queued; 56 - u8 has_virtual_ts; /* Virtual/Kernel timestamps in the trace. */ 53 + bool timeless_decoding; 54 + bool snapshot_mode; 55 + bool data_queued; 56 + bool has_virtual_ts; /* Virtual/Kernel timestamps in the trace. */ 57 57 58 58 int num_cpu; 59 59 u64 latest_kernel_timestamp;
+2 -2
tools/perf/util/cs-etm.h
··· 179 179 u32 last_instr_subtype; 180 180 u32 flags; 181 181 u32 exception_number; 182 - u8 last_instr_cond; 183 - u8 last_instr_taken_branch; 182 + bool last_instr_cond; 183 + bool last_instr_taken_branch; 184 184 u8 last_instr_size; 185 185 u8 trace_chan_id; 186 186 int cpu;