OPARCHIVE(1)
β¨ OPARCHIVE(1) β¨
okay bestie, so this is oparchive β the Unix manual page that literally saves your whole profile vibe for later π
πΈ NAME πΈ
oparchive β make an archive of your oprofile data so you can analyze it offline later π
π¦ SYNOPSIS π¦
oparchive [ options ] [profile specification] -o [directory]
π DESCRIPTION π
okay so the oparchive utility is that girl for collecting profile data on a "target" system so you can do offline analysis later on a totally different ("host") machine. lowkey iconic π«Ά
oparchive creates a directory all stocked up with executables, libraries, debuginfo files, and oprofile sample files. then you can just tar it up and move it to another machine to analyze it there β no further use of the target machine needed, periodt β¨
when you wanna use opreport and other post-profiling tools against archived data, you have to use the archive:<archived-dir> specification. see oprofile(1) for the whole how-to on writing profile specifications, iykyk π
there's a complete description of offline analysis in the chapter called Analyzing profile data on another system (oparchive) of the OProfile user manual. (the user manual URL is in the "SEE ALSO" section down below π)
π OPTIONS π
--help/-?/--usageβ shows the help message. the classic "wait what does this do" moment π--version/-vβ shows the version. gotta know what you're working with β¨--verbose/-V [options]β gives you verbose debugging output. very "tell me everything" energy π--session-dir=dir_pathβ uses the sample database from the specified directorydir_pathinstead of the default location. if--session-dirisn't specified, thenoparchivesearches for samples in<current_dir>/oprofile_datafirst. and if that directory doesn't exist, the standard session-dir of/var/lib/oprofileis used π--image-path/-p [paths]β a comma-separated list of additional paths to search for binaries. this is needed to find modules in kernels 2.6 and upwards π§--root/-R [path]β a path to a filesystem to search for additional binaries π--output-directory/-o [directory]β output to the given directory. there is no default β this one must be specified, no pressure or anything π
bestie fr fr: -o has no default, so if you forget it, you're not going anywhere π
--exclude-dependent/-xβ do not include application-specific images for libraries, kernel modules and the kernel. this option only makes sense if the profile session used--separateπ--list-files/-lβ only lists the files that would be archived, doesn't copy them. very "look but don't touch" vibes π
β ENVIRONMENT β
no special environment variables are recognized by oparchive. that's it, that's the whole section π
π§ FILES π§
<session_dir>/samplesβ the location of the generated sample files π
π₯ VERSION π₯
this man page is current for oprofile-1.4.0 β
π SEE ALSO π
file:///usr/share/doc/oprofile/oprofile.html#oparchiveopimport(1)oprofile(1)
π real talk: this page is from the 4th Berkeley Distribution, dated Thu 28 September 2023, and it's current for oprofile-1.4.0 β so go forth and archive responsibly, bestie π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: oprofile 1.4.0-bp160.1.14 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: oprofile 1.4.0-bp160.1.14 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: oprofile 1.4.0-bp160.1.14 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: oprofile 1.4.0-bp160.1.14 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms