Home
last modified time | relevance | path

Searched full:patch (Results 1 – 25 of 826) sorted by relevance

12345678910>>...34

/linux/Documentation/process/
H A Dapplying-patches.rst11 This document is obsolete. In most cases, rather than using ``patch``
15 a patch to the kernel or, more specifically, what base kernel a patch for
24 What is a patch?
27 A patch is a small text document containing a delta of changes between two
31 To correctly apply a patch you need to know what base it was generated from
32 and what new version the patch will change the source tree into. These
33 should both be present in the patch file metadata or be possible to deduce
37 How do I apply or revert a patch?
40 You apply a patch with the ``patch`` program. The patch program reads a diff
41 (or patch) file and makes the changes to the source tree described in it.
[all …]
H A Dsubmitting-patches.rst48 Describe your problem. Whether your patch is a one-line bug fix or
77 The maintainer will thank you if you write your patch description in a
81 Solve only one problem per patch. If your description starts to get
82 long, that's a sign that you probably need to split up your patch.
85 When you submit or resubmit a patch or patch series, include the
86 complete patch description and justification for it. Don't just
87 say that this is version N of the patch (series). Don't expect the
88 subsystem maintainer to refer back to earlier patch versions or referenced
89 URLs to find the patch descriptio
[all...]
H A D5.Posting.rst45 of your series (see the next section for more about patch series).
55 summary of the results should be included with the patch.
65 Patch preparation
73 general rule, a patch should be based on the current mainline as found in
80 on the area of your patch and what is going on elsewhere, basing a patch
84 Only the most simple changes should be formatted as a single patch;
90 - The patch series you post will almost certainly not be the series of
98 patch. These changes can be small ("add a field to this structure") or
100 conceptually small and amenable to a one-line description. Each patch
105 changes in the same patch. If a single patch fixes a critical security
[all …]
H A Dbackporting.rst27 Applying the patch to a tree
30 Sometimes the patch you are backporting already exists as a git commit,
32 ``git cherry-pick``. However, if the patch comes from an email, as it
37 quite picky about the patch applying perfectly to your source tree. In
39 edit the patch to make it apply.
42 where the patch applies cleanly and *then* cherry-pick it over to your
46 apply a patch that just arrived on LKML to an older stable kernel, you
50 It's generally better to use the exact same base as the one the patch
53 problem with applying the patch to the "wrong" base is that it may pull
60 it less likely to apply the patch to the wrong place (which can result
[all …]
/linux/Documentation/translations/pt_BR/process/
H A Dapplying-patches.rst13 Este documento está obsoleto. Na maioria dos casos, em vez de usar ``patch``
17 um patch ao kernel ou, mais especificamente, a qual kernel base um patch para
26 O que é um Patch?
29 Um patch é um pequeno documento de texto que contém uma diferença (delta) de
33 Para aplicar um patch corretamente, você precisa saber de qual base ele foi
34 gerado e em qual nova versão o patch transformará a árvore de código-fonte.
35 Ambas as informações devem estar presentes nos metadados do arquivo de patch
39 Como eu aplico ou reverto um patch?
42 Você aplica um patch com o programa ``patch``. O programa patch lê um arquivo
43 de diff (ou patch) e faz as alterações descritas nele na árvore de
[all …]
H A Dsubmitting-patches.rst51 Descreva o seu problema. Seja o seu patch uma correção de bug de uma linha ou
80 O mantenedor agradecerá se você escrever a descrição do seu patch em uma forma
85 Resolva apenas um problema por patch. Se a sua descrição começar a ficar longa,
86 isso é um sinal de que você provavelmente precisa dividir o seu patch.
89 Quando você enviar ou reenviar um patch ou uma série de patches, inclua a
90 descrição completa do patch e a justificativa para ele. Não diga apenas
91 que esta é a versão N do patch (ou série). Não espere que o mantenedor
92 do subsistema consulte versões anteriores do patch ou URLs de referência
93 para encontrar a descrição do patch e colocá-la no patch.
94 Ou seja, o patch (ou a série) e sua descrição devem ser autossuficientes.
[all …]
H A D5.Posting.rst58 resumo dos resultados deve ser incluído junto ao patch.
76 regra geral, um patch deve ser baseado no mainline atual encontrado na árvore
83 amplos. Dependendo da área do seu patch e do que está acontecendo em outros
84 lugares, basear um patch contra essas outras árvores pode exigir uma quantidade
87 Apenas as alterações mais simples devem ser formatadas como um único patch; tudo
100 - Cada alteração logicamente independente deve ser formatada como um patch separado.
104 patch deve fazer uma alteração específica que possa ser revisada por si só e
108 alterações no mesmo patch. Se um único patch corrige uma falha crítica de
112 - Cada patch deve resultar em um kernel que compile e funcione corretamente; se
122 tornou a pessoa mais popular na lista de discussão do kernel. Um único patch
[all …]
H A Dbackporting.rst27 Aplicando o patch a uma árvore
30 Às vezes, o patch que você está fazendo backport já existe como um commit do
32 ``git cherry-pick``. No entanto, se o patch vier de um e-mail, como costuma
37 sobre o patch ser aplicado perfeitamente à sua árvore de código-fonte. Na
39 editar o patch para fazê-lo ser aplicado.
42 o patch se aplique de forma limpa e *então* fazer o cherry-pick dele para a sua
46 quiser aplicar um patch que acabou de chegar na LKML a um kernel estável mais
50 Geralmente é melhor usar exatamente a mesma base a partir da qual o patch foi
52 não esteja muito longe da base original. O único problema ao aplicar o patch na
59 por sua vez, torna menos provável que o patch seja aplicado no lugar errado (o
[all …]
/linux/Documentation/translations/zh_CN/process/
H A Dapplying-patches.rst20 手工运行 ``patch``。
44 使用 ``patch`` 程序应用补丁。patch 程序读取 diff 文件(也称补丁
54 源码目录,再去掉补丁文件所列路径中的第一个组成部分(``patch`` 的
57 要撤销先前应用的补丁,请给 patch 加上 -R 参数。也就是说,如果应用
60 patch -p1 < ../patch-x.y.z
64 patch -R -p1 < ../patch-x.y.z
67 如何把补丁或 diff 文件交给 ``patch``?
74 交给 patch::
76 patch -p1 < path/to/patch-x.y.z
78 如果你只想照着下文的示例操作,无意了解 patch 的其他用法,那么读到
[all …]
/linux/Documentation/translations/it_IT/process/
H A D5.Posting.rst15 e di procedure per la pubblicazione delle patch; seguirle renderà la vita
26 C'è sempre una certa resistenza nel pubblicare patch finché non sono
27 veramente "pronte". Per semplici patch questo non è un problema.
37 Poche persone guarderanno delle patch che si sa essere fatte a metà,
42 Prima di creare patch
46 l'invio delle patch alla comunità di sviluppo. Queste cose includono:
54 maggiori informazioni sulle serie di patch, vedere la sezione successiva).
63 - La vostra patch ha delle conseguenze in termini di prestazioni?
66 incluso nella patch.
77 Preparazione di una patch
[all …]
H A Dsubmitting-patches.rst8 Inviare patch: la guida essenziale per vedere il vostro codice nel kernel
11 Una persona o un'azienda che volesse inviare una patch al kernel potrebbe
15 vostre patch accettate.
22 Per delle patch relative alle associazioni per Device Tree leggete
25 Questa documentazione assume che sappiate usare ``git`` per preparare le patch.
44 sorgenti e desiderano che le patch siano preparate basandosi su di essi.
66 singolarmente le patch dai sorgenti principali; quindi, includete tutte
87 I manutentori vi saranno grati se scrivete la descrizione della patch in un
91 Risolvete solo un problema per patch. Se la vostra descrizione inizia ad
92 essere lunga, potrebbe essere un segno che la vostra patch necessita d'essere
[all …]
H A Dstable-kernel-rules.rst11 Regole sul tipo di patch che vengono o non vengono accettate nei sorgenti
14 - Questa patch o una equivalente deve esistere già nei sorgenti principali di
40 Procedura per sottomettere patch per i sorgenti -stable
44 Una patch di sicurezza non dovrebbe essere gestita (solamente) dal processo
50 1. Aggiungi un'etichetta 'stable' alla descrizione della patch al momento della
52 2. Chiedere alla squadra "stable" di prendere una patch già applicata sui
54 3. Sottomettere una patch alla squadra "stable" equivalente ad una modifica già
62 L':ref:`it_option_3` è un'alternativa ai due metodi precedenti quando la patch
79 Aggiungete la seguente etichetta nell'area delle firme per far sì che una patch
91 Una volta che la patch è stata inclusa, verrà applicata anche sui sorgenti
[all …]
H A Demail-clients.rst17 per applicare le patch.
19 Se siete dei novelli utilizzatori di ``git`` allora inviate la patch a voi
23 la patch alla lista di discussione più appropriata.
28 Le patch per il kernel vengono inviate per posta elettronica, preferibilmente
32 ben apprezzati perché rende più difficile citare porzioni di patch durante il
36 messaggio, sia per la patch che per qualsiasi altro messaggio. Il sito
40 I programmi di posta elettronica che vengono usati per inviare le patch per il
45 Non inviate patch con ``format=flowed``. Questo potrebbe introdurre
49 Questo può corrompere le patch.
52 testo. Le patch inviate per posta elettronica dovrebbero essere codificate in
[all …]
H A D2.Process.rst39 patch di ogni rilascio. All'inizio di ogni ciclo di sviluppo, la
43 patch per un nuovo ciclo di sviluppo (e tutte le più importanti modifiche)
45 1000 modifiche ("patch" o "gruppo di modifiche") al giorno.
149 Il ciclo di vita di una patch
152 Le patch non passano direttamente dalla tastiera dello sviluppatori
154 per assicurare che ogni patch sia di buona qualità e desiderata nel
156 meno importanti, o, nel caso di patch ampie e controverse, va avanti per anni.
161 come una patch viene inserita nel kernel. Ciò che segue è un'introduzione
165 Una patch attraversa, generalmente, le seguenti fasi:
173 - Prima revisione. Le patch vengono pubblicate sulle liste di discussione
[all …]
/linux/scripts/
H A Dpatch-kernel4 # usage: patch-kernel [ sourcedir [ patchdir [ stopversion ] [ -acxx ] ] ]
5 # The source directory defaults to /usr/src/linux, and the patch
8 # scripts/patch-kernel . ..
11 # scripts/patch-kernel . .. -ac
12 # Get the latest Linux kernel and patch it with the latest ac patch
13 # scripts/patch-kernel . .. 2.4.9
15 # scripts/patch-kernel . .. 2.4.9 -ac
17 # scripts/patch-kernel . .. 2.4.9 -ac11
18 # Gets 2.4.9 with ac patch ac11
23 # It then looks for patches for the next sublevel in the patch directory.
[all …]
/linux/Documentation/livepatch/
H A Dcallbacks.rst5 Livepatch (un)patch-callbacks provide a mechanism for livepatch modules
16 In most cases, (un)patch callbacks will need to be used in conjunction
26 patch.
39 * Pre-patch
42 * Post-patch
48 active), used to clean up post-patch callback
54 used to cleanup pre-patch callback resources
61 symmetry: pre-patch callbacks have a post-unpatch counterpart and
62 post-patch callbacks have a pre-unpatch counterpart. An unpatch
63 callback will only be executed if its corresponding patch callback was
[all …]
H A Dlivepatch.rst46 a live patch is called with the help of a custom ftrace handler. But there are
64 But there are more complex fixes. For example, a patch might change
65 ordering of locking in multiple functions at the same time. Or a patch
84 switch over. When a patch is enabled, livepatch enters into a
87 sequence occurs when a patch is disabled, except the tasks converge from
95 safe to patch tasks:
99 the task is patched. In most cases this will patch most or all of
128 Unless we can come up with another way to patch kthreads, architectures
132 The /sys/kernel/livepatch/<patch>/transition file shows whether a patch
133 is in transition. Only a single patch can be in transition at a given
[all …]
/linux/scripts/coccinelle/api/
H A Dstring_choices.cocci6 virtual patch
10 @str_plural depends on patch@
21 @str_plural_r depends on !patch@
38 @str_up_down depends on patch disable neg_if_exp@
44 @str_up_down_r depends on !patch disable neg_if_exp@
57 @str_down_up depends on patch disable neg_if_exp@
63 @str_down_up_r depends on !patch disable neg_if_exp@
76 @str_true_false depends on patch disable neg_if_exp@
82 @str_true_false_r depends on !patch disable neg_if_exp@
95 @str_false_true depends on patch disable neg_if_exp@
[all …]
/linux/kernel/livepatch/
H A Dstate.c15 #define klp_for_each_state(patch, state) \ argument
16 for (state = patch->states; state && state->id; state++)
20 * the given patch
21 * @patch: livepatch that modifies the given system state
24 * Checks whether the given patch modifies the given system state.
26 * The function can be called either from pre/post (un)patch
31 struct klp_state *klp_get_state(struct klp_patch *patch, unsigned long id) in klp_get_state() argument
35 klp_for_each_state(patch, state) { in klp_get_state()
58 * It is typically called only from pre/post (un)patch
66 struct klp_patch *patch; in klp_get_prev_state() local
[all …]
/linux/tools/testing/selftests/livepatch/
H A Dtest-callbacks.sh20 # pre-patch callbacks are executed for vmlinux and $MOD_TARGET (those
22 # according to the klp_patch, their post-patch callbacks run and the
25 # - Similarly, on livepatch disable, pre-patch callbacks run before the
26 # unpatching transition starts. klp_objects are reverted, post-patch
40 livepatch: enabling patch '$MOD_LIVEPATCH'
67 # - On livepatch enable, only pre/post-patch callbacks are executed for
71 # pre/post-patch callbacks are executed.
85 livepatch: enabling patch '$MOD_LIVEPATCH'
93 livepatch: applying patch '$MOD_LIVEPATCH' to loading module '$MOD_TARGET'
135 livepatch: enabling patch '$MOD_LIVEPATCH'
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-kernel-livepatch9 each loaded live patch module.
11 What: /sys/kernel/livepatch/<patch>
16 The patch directory contains subdirectories for each kernel
19 What: /sys/kernel/livepatch/<patch>/enabled
25 code is currently applied. Writing 0 will disable the patch
26 while writing 1 will re-enable the patch.
28 What: /sys/kernel/livepatch/<patch>/transition
33 An attribute which indicates whether the patch is currently in
36 What: /sys/kernel/livepatch/<patch>/force
45 use this feature without a clearance from a patch
[all …]
/linux/sound/drivers/opl3/
H A Dopl3_synth.c214 * Patch management
229 * load a patch, obviously.
234 * name is the name string of the patch.
245 struct fm_patch *patch; in snd_opl3_load_patch() local
248 patch = snd_opl3_find_patch(opl3, prog, bank, 1); in snd_opl3_load_patch()
249 if (!patch) in snd_opl3_load_patch()
252 patch->type = type; in snd_opl3_load_patch()
255 patch->inst.op[i].am_vib = data[AM_VIB + i]; in snd_opl3_load_patch()
256 patch->inst.op[i].ksl_level = data[KSL_LEVEL + i]; in snd_opl3_load_patch()
257 patch->inst.op[i].attack_decay = data[ATTACK_DECAY + i]; in snd_opl3_load_patch()
[all …]
/linux/scripts/livepatch/
H A Dinit.c12 static struct klp_patch *patch; variable
26 pr_err("nothing to patch!\n"); in livepatch_mod_init()
31 patch = kzalloc_obj(*patch); in livepatch_mod_init()
32 if (!patch) { in livepatch_mod_init()
70 patch->mod = THIS_MODULE; in livepatch_mod_init()
71 patch->objs = objs; in livepatch_mod_init()
73 /* TODO patch->states */ in livepatch_mod_init()
76 patch->replace = false; in livepatch_mod_init()
78 patch->replace = true; in livepatch_mod_init()
81 return klp_enable_patch(patch); in livepatch_mod_init()
[all …]
H A Dklp-build34 FIX_PATCH_LINES="$SCRIPT_DIR/fix-patch-lines"
134 -o, --output=<file.ko> Output file [default: livepatch-<patch-name>.ko]
145 5|kmod Build patch module
160 local patch
241 for patch in "${PATCHES[@]}"; do
242 [[ -f "$patch" ]] || die "$patch doesn't exist"
295 # name based on the patch name.
303 NAME="patch"
312 # Hardcode the value printed by the localversion script to prevent patch
[all...]
/linux/arch/xtensa/kernel/
H A Djump_label.c26 struct patch { struct
41 struct patch *patch = data; in patch_text_stop_machine() argument
43 if (atomic_inc_return(&patch->cpu_count) == num_online_cpus()) { in patch_text_stop_machine()
44 local_patch_text(patch->addr, patch->data, patch->sz); in patch_text_stop_machine()
45 atomic_inc(&patch->cpu_count); in patch_text_stop_machine()
47 while (atomic_read(&patch->cpu_count) <= num_online_cpus()) in patch_text_stop_machine()
49 __invalidate_icache_range(patch->addr, patch->sz); in patch_text_stop_machine()
57 struct patch patch = { in patch_text() local
64 &patch, cpu_online_mask); in patch_text()

12345678910>>...34