[lkml]   [2008]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 1/3] Add prctl commands PR_GET_TSC and PR_SET_TSC
    Erik Bosman <> writes:
    > I'm using it for deterministic replay.

    Ok that should be in the changelog.

    BTW x86 CPUs are not fully deterministic. e.g. there are a few errata that
    can lead to differing EFLAGS (generally for instructions with undefined flags
    output) based on random internal pipe line conditions.

    In my experience even simulators claiming to be fully deterministic
    are not always. e.g. I remember trying to use instruction counts
    on Simics to reproduce an issue for a scripted boot setup (with no user input),
    but it never quite hit the same code at the same instruction count.

    > Without the timestamp counter, the only instruction leading
    > to non-determinism (that I'm aware of) is the CPUID instruction
    > that returns on which core it runs, but that doesn't seem to
    > be used that much.

    There's also RDPMC, but by default the kernel does not enable that
    for ring 3. And if you go for oddities there are the random number
    generator instructions on VIA CPUs which will obviously not
    be repeatable.


     \ /
      Last update: 2008-04-13 18:51    [W:0.034 / U:34.448 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site