On 5/9/20 5:30 PM, Alexei Starovoitov wrote:
On Sat, May 09, 2020 at 10:59:04AM -0700, Yonghong Song wrote:
+
+ err = seq->op->show(seq, p);
+ if (err > 0) {
+ seq->count = offs;
as far as I can see this condition can never happen.
I underst
On Sat, May 09, 2020 at 10:59:04AM -0700, Yonghong Song wrote:
> +
> + err = seq->op->show(seq, p);
> + if (err > 0) {
> + seq->count = offs;
as far as I can see this condition can never happen.
I understand that seq_read() has this logic, but four itera
bpf iterator uses seq_file to provide a lossless
way to transfer data to user space. But we want to call
bpf program after all objects have been traversed, and
bpf program may write additional data to the
seq_file buffer. The current seq_read() does not work
for this use case.
Besides allowing sto