| /linux/kernel/livepatch/ |
| H A D | core.c | 106 static struct klp_object *klp_find_object(struct klp_patch *patch, in klp_find_object() argument 111 klp_for_each_object(patch, obj) { in klp_find_object() 359 static int __klp_disable_patch(struct klp_patch *patch); 364 struct klp_patch *patch; in enabled_store() local 372 patch = container_of(kobj, struct klp_patch, kobj); in enabled_store() 376 if (patch->enabled == enabled) { in enabled_store() 389 if (patch == klp_transition_patch) in enabled_store() 392 ret = __klp_disable_patch(patch); in enabled_store() 407 struct klp_patch *patch; in enabled_show() local 409 patch = container_of(kobj, struct klp_patch, kobj); in enabled_show() [all …]
|
| H A D | state.c | 15 #define klp_for_each_state(patch, state) \ argument 16 for (state = patch->states; state && state->id; state++) 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() 66 struct klp_patch *patch; in klp_get_prev_state() local 72 klp_for_each_patch(patch) { in klp_get_prev_state() 73 if (patch == klp_transition_patch) in klp_get_prev_state() 76 state = klp_get_state(patch, id); in klp_get_prev_state() 87 static bool klp_is_state_compatible(struct klp_patch *patch, in klp_is_state_compatible() argument 92 state = klp_get_state(patch, old_state->id); in klp_is_state_compatible() [all …]
|
| H A D | transition.c | 14 #include "patch.h" 65 * We allow to patch also functions where RCU is not watching, 78 * The transition to the target patch state is complete. Clean up the data 106 * from this patch on the ops->func_stack. Otherwise, after in klp_complete_transition() 170 * patch state. in klp_cancel_transition() 251 * Determine whether it's safe to transition the task to the target patch state in klp_check_stack_func() 301 * Try to safely switch a task to the target patch state. If it's currently in klp_check_and_switch_task() 323 * functions. If all goes well, switch the task to the target patch in klp_try_switch_task() 423 * Try to switch all remaining tasks to the target patch state by walking the in klp_send_signals() 428 * If any tasks are still stuck in the initial patch stat in klp_send_signals() 455 struct klp_patch *patch; klp_try_complete_transition() local 573 klp_init_transition(struct klp_patch * patch,int state) klp_init_transition() argument 729 struct klp_patch *patch; klp_force_transition() local [all...] |
| H A D | core.h | 10 #define klp_for_each_patch_safe(patch, tmp_patch) \ argument 11 list_for_each_entry_safe(patch, tmp_patch, &klp_patches, list) 13 #define klp_for_each_patch(patch) \ argument 14 list_for_each_entry(patch, &klp_patches, list) 16 void klp_free_patch_async(struct klp_patch *patch);
|
| /linux/scripts/ |
| H A D | patch-kernel | 62 PNAME=patch-kernel 73 patch directory defaults to the current directory, 92 echo "cannot find patch file: ${patch}" 149 if $uncomp ${patchdir}/$1${ext} | patch -p1 -s -N -E -d $sourcedir 171 if $uncomp ${patchdir}/"$1"${ext} | patch -p1 -Rs -N -E -d $sourcedir 242 patch="patch-${CURRENTFULLVERSION}" 243 findFile $patchdir/${patch} || noFile ${patch} 244 reversePatch ${patch} || exit 1 272 patch=patch-$FULLVERSION 274 findFile $patchdir/${patch} || noFile ${patch} [all …]
|
| /linux/Documentation/process/ |
| H A D | applying-patches.rst | 11 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 D | submitting-patches.rst | 48 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 description and put that into the patch. 90 I.e., the patch (series) and its description should be self-contained. [all …]
|
| /linux/sound/drivers/opl3/ |
| H A D | opl3_synth.c | 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() 258 patch->inst.op[i].sustain_release = data[SUSTAIN_RELEASE + i]; in snd_opl3_load_patch() 259 patch->inst.op[i].wave_select = data[WAVE_SELECT + i]; in snd_opl3_load_patch() 261 patch->inst.feedback_connection[0] = data[CONNECTION]; in snd_opl3_load_patch() [all …]
|
| /linux/Documentation/translations/pt_BR/process/ |
| H A D | applying-patches.rst | 11 Este documento está obsoleto. Na maioria dos casos, em vez de usar ``patch`` 15 an patch ao kernel ou, mais especificamente, a qual kernel base um patch para 27 Um patch é um pequeno documento de texto que contém uma diferença (delta) de 31 Para aplicar um patch corretamente, você precisa saber de qual base ele foi 32 gerado e em qual nova versão o patch transformará a árvore de código-fonte. 33 Ambas as informações devem estar presentes nos metadados do arquivo de patch 37 Como eu aplico ou reverto um patch? 40 Você aplica um patch com o programa ``patch``. O programa patch lê um arquivo 41 de diff (ou patch) e faz as alterações descritas nele na árvore de 47 Isso significa que os caminhos para os arquivos dentro do arquivo de patch [all …]
|
| H A D | 5.Posting.rst | 58 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 …]
|
| /linux/arch/xtensa/kernel/ |
| H A D | jump_label.c | 26 struct patch { struct 41 struct patch *patch = data; in patch_text_stop_machine() local 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()
|
| /linux/scripts/livepatch/ |
| H A D | klp-build | 34 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...] |
| H A D | init.c | 12 static struct klp_patch *patch; variable 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() 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() 86 kfree(patch); in livepatch_mod_init() 95 klp_for_each_object_static(patch, obj) in livepatch_mod_exit() [all …]
|
| /linux/scripts/coccinelle/api/ |
| H A D | string_choices.cocci | 6 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/sound/synth/emux/ |
| H A D | emux_hwdep.c | 23 struct soundfont_patch_info patch; in snd_emux_hwdep_load_patch() local 25 if (copy_from_user(&patch, arg, sizeof(patch))) in snd_emux_hwdep_load_patch() 28 if (patch.key == GUS_PATCH) in snd_emux_hwdep_load_patch() 30 patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch() 32 if (patch.type >= SNDRV_SFNT_LOAD_INFO && in snd_emux_hwdep_load_patch() 33 patch.type <= SNDRV_SFNT_PROBE_DATA) { in snd_emux_hwdep_load_patch() 35 patch.len + sizeof(patch), in snd_emux_hwdep_load_patch() 41 return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch()
|
| H A D | soundfont.c | 90 struct soundfont_patch_info patch; in snd_soundfont_load() local 93 if (count < (long)sizeof(patch)) { in snd_soundfont_load() 97 if (copy_from_user(&patch, data, sizeof(patch))) in snd_soundfont_load() 100 count -= sizeof(patch); in snd_soundfont_load() 101 data += sizeof(patch); in snd_soundfont_load() 103 if (patch.key != SNDRV_OSS_SOUNDFONT_PATCH) { in snd_soundfont_load() 104 dev_err(card->dev, "The wrong kind of patch %x\n", patch.key); in snd_soundfont_load() 107 if (count < patch.len) { in snd_soundfont_load() 109 count, patch.len); in snd_soundfont_load() 112 if (patch.len < 0) { in snd_soundfont_load() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-kernel-livepatch | 9 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/Documentation/livepatch/ |
| H A D | callbacks.rst | 5 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 …]
|
| /linux/Documentation/translations/zh_CN/ |
| H A D | how-to.rst | 278 git format-patch -1 282 0001-docs-zh_CN-add-xxxxxxxx.patch 286 git format-patch -N 291 0001-docs-zh_CN-add-xxxxxxxx.patch 292 0002-docs-zh_CN-add-xxxxxxxx.patch 300 ./scripts/checkpatch.pl *.patch 311 git am 0001-xxxxx.patch 312 ./scripts/checkpatch.pl 0001-xxxxx.patch 331 git format-patch -N --cover-letter --thread=shallow 336 0000-cover-letter.patch [all …]
|
| /linux/Documentation/translations/it_IT/process/ |
| H A D | stable-kernel-rules.rst | 11 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 …]
|
| /linux/scripts/coccinelle/misc/ |
| H A D | secs_to_jiffies.cocci | 12 virtual patch 16 @pconst depends on patch@ constant C; @@ 21 @pconstms depends on patch@ constant C; @@ 26 @pexpr depends on patch@ expression E; @@ 31 @pexprms depends on patch@ expression E; @@ 36 @r depends on report && !patch@ 52 @c depends on context && !patch@
|
| /linux/tools/testing/selftests/livepatch/test_modules/ |
| H A D | test_klp_state.c | 32 static struct klp_patch patch; variable 38 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in allocate_loglevel_state() 55 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in fix_console_loglevel() 68 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in restore_console_loglevel() 80 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in free_loglevel_state() 141 static struct klp_patch patch = { variable 150 return klp_enable_patch(&patch); in test_klp_callbacks_demo_init()
|
| H A D | test_klp_state2.c | 32 static struct klp_patch patch; variable 45 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in allocate_loglevel_state() 62 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in fix_console_loglevel() 90 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in restore_console_loglevel() 109 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in free_loglevel_state() 170 static struct klp_patch patch = { variable 179 return klp_enable_patch(&patch); in test_klp_callbacks_demo_init()
|
| /linux/Documentation/translations/it_IT/arch/riscv/ |
| H A D | patch-acceptance.rst | 3 :Original: :doc:`../../../../arch/riscv/patch-acceptance` 28 RISC-V ha un'istanza di patchwork dov'è possibile controllare lo stato delle patch: 32 Se la vostra patch non appare nella vista predefinita, i manutentori di RISC-V 37 e collaudando le patch man mano che arrivano. Il processo applica le patch al 39 questo a seconda che la patch sia stata o meno individuata come correzione. In 41 stata applicata una serie di patch sarà annotato su patchwork. È improbabile che 42 vengano applicate Le patch che non passano i controlli, nella maggior parte dei 45 In aggiunta alla lista delle verifiche da fare prima di inviare una patch 48 Accetteremo le patch per un nuovo modulo o estensione se la fondazione 57 prestazioni, accetteremo patch solo per quelle estensioni che sono
|
| /linux/arch/riscv/kernel/ |
| H A D | patch.c | 254 struct patch_insn *patch = data; in patch_text_cb() local 257 if (atomic_inc_return(&patch->cpu_count) == num_online_cpus()) { in patch_text_cb() 258 ret = patch_insn_write(patch->addr, patch->insns, patch->len); in patch_text_cb() 266 atomic_inc_return_release(&patch->cpu_count); in patch_text_cb() 268 while (atomic_read(&patch->cpu_count) <= num_online_cpus()) in patch_text_cb() 281 struct patch_insn patch = { in patch_text() local 298 ret = stop_machine_cpuslocked(patch_text_cb, &patch, cpu_online_mask); in patch_text()
|