mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 17:10:35 +08:00
bmi055 remove cdev read (accel_reads) perf counter
This commit is contained in:
committed by
Lorenz Meier
parent
cd07e756b9
commit
7bc364207e
@@ -53,7 +53,6 @@ BMI055_accel::BMI055_accel(int bus, const char *path_accel, uint32_t device, enu
|
||||
_bad_registers(perf_alloc(PC_COUNT, "bmi055_accel_bad_registers")),
|
||||
_reset_retries(perf_alloc(PC_COUNT, "bmi055_accel_reset_retries")),
|
||||
_duplicates(perf_alloc(PC_COUNT, "bmi055_accel_duplicates")),
|
||||
_accel_reads(perf_alloc(PC_COUNT, "bmi055_accel_read")),
|
||||
_accel_reports(nullptr),
|
||||
_accel_scale{},
|
||||
_accel_range_scale(0.0f),
|
||||
@@ -102,7 +101,6 @@ BMI055_accel::~BMI055_accel()
|
||||
perf_free(_bad_registers);
|
||||
perf_free(_reset_retries);
|
||||
perf_free(_duplicates);
|
||||
perf_free(_accel_reads);
|
||||
}
|
||||
|
||||
int
|
||||
@@ -190,8 +188,6 @@ int BMI055_accel::reset()
|
||||
}
|
||||
}
|
||||
|
||||
_accel_reads = 0;
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -284,8 +280,6 @@ BMI055_accel::read(struct file *filp, char *buffer, size_t buflen)
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
perf_count(_accel_reads);
|
||||
|
||||
/* copy reports out of our buffer to the caller */
|
||||
accel_report *arp = reinterpret_cast<accel_report *>(buffer);
|
||||
int transferred = 0;
|
||||
@@ -813,7 +807,6 @@ BMI055_accel::print_info()
|
||||
PX4_INFO("Accel");
|
||||
|
||||
perf_print_counter(_sample_perf);
|
||||
perf_print_counter(_accel_reads);
|
||||
perf_print_counter(_bad_transfers);
|
||||
perf_print_counter(_bad_registers);
|
||||
perf_print_counter(_reset_retries);
|
||||
|
||||
@@ -180,7 +180,6 @@ private:
|
||||
perf_counter_t _bad_registers;
|
||||
perf_counter_t _reset_retries;
|
||||
perf_counter_t _duplicates;
|
||||
perf_counter_t _accel_reads;
|
||||
|
||||
ringbuffer::RingBuffer *_accel_reports;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user